Market Data

Prices, market-level trades, depth, candles, etc.

Get market summaries

get

Statistics and throttled market data for all markets. Recalculated every 0.5s

Responses
200

List of market summaries

application/json
get
GET /v2/markets/summary HTTP/1.1
Host: api.reya.xyz
Accept: */*
[
  {
    "symbol": "BTCRUSDPERP",
    "updatedAt": 1747927089946,
    "longOiQty": "154.741",
    "shortOiQty": "154.706",
    "oiQty": "154.741",
    "fundingRate": "-0.000509373441021089",
    "longFundingValue": "412142.26",
    "shortFundingValue": "412142.26",
    "fundingRateVelocity": "-0.00000006243",
    "volume24h": "917833.49891",
    "pxChange24h": "92.6272285500004",
    "throttledOraclePrice": "2666.48162040777",
    "throttledPoolPrice": "2666.48166680625",
    "pricesUpdatedAt": 1747927089597
  }
]

Get market summary

get

Statistics and throttled data for a specific market. Recalculated every 0.5s

Path parameters
symbolstringRequired

Trading symbol (e.g., BTCRUSDPERP)

Example: BTCRUSDPERPPattern: ^[A-Za-z0-9]+$
Responses
200

Market summary

application/json
get
GET /v2/market/{symbol}/summary HTTP/1.1
Host: api.reya.xyz
Accept: */*
{
  "symbol": "BTCRUSDPERP",
  "updatedAt": 1747927089946,
  "longOiQty": "154.741",
  "shortOiQty": "154.706",
  "oiQty": "154.741",
  "fundingRate": "-0.000509373441021089",
  "longFundingValue": "412142.26",
  "shortFundingValue": "412142.26",
  "fundingRateVelocity": "-0.00000006243",
  "volume24h": "917833.49891",
  "pxChange24h": "92.6272285500004",
  "throttledOraclePrice": "2666.48162040777",
  "throttledPoolPrice": "2666.48166680625",
  "pricesUpdatedAt": 1747927089597
}

Get all prices

get
Responses
200

List of prices

application/json
get
GET /v2/prices HTTP/1.1
Host: api.reya.xyz
Accept: */*
[
  {
    "symbol": "BTCRUSDPERP",
    "oraclePrice": "43000.00",
    "poolPrice": "42999.50",
    "updatedAt": 1747927089946
  }
]

Get price by symbol

get
Path parameters
symbolstringRequired

Trading symbol (e.g., BTCRUSDPERP)

Example: BTCRUSDPERPPattern: ^[A-Za-z0-9]+$
Responses
200

Price information

application/json
get
GET /v2/prices/{symbol} HTTP/1.1
Host: api.reya.xyz
Accept: */*
{
  "symbol": "BTCRUSDPERP",
  "oraclePrice": "43000.00",
  "poolPrice": "42999.50",
  "updatedAt": 1747927089946
}

Get perp executions for market

get

Returns up to 100 perp executions for a given market.

Path parameters
symbolstringRequired

Trading symbol (e.g., BTCRUSDPERP)

Example: BTCRUSDPERPPattern: ^[A-Za-z0-9]+$
Query parameters
startTimeinteger · int64Optional

Return results after this sequence number (for pagination)

Example: 1756733379000
endTimeinteger · int64Optional

Return results before this sequence number (for pagination)

Example: 1756733679000
Responses
200

List of perp executions

application/json
get
GET /v2/market/{symbol}/perpExecutions HTTP/1.1
Host: api.reya.xyz
Accept: */*
{
  "data": [
    {
      "exchangeId": 1,
      "symbol": "BTCRUSDPERP",
      "accountId": 12345,
      "qty": "1.0",
      "side": "B",
      "price": "43000.00",
      "fee": "0.50",
      "type": "ORDER_MATCH",
      "timestamp": 1747927089946,
      "sequenceNumber": 152954
    }
  ],
  "meta": {
    "limit": 100,
    "count": 50,
    "endTime": 1756733679000,
    "startTime": 1756733579000
  }
}

Get historical candles

get

Returns up to 200 candles for a given market, sorted by time in descending order, and ending at the specified end time.

Path parameters
symbolstringRequired

Trading symbol (e.g., BTCRUSDPERP)

Example: BTCRUSDPERPPattern: ^[A-Za-z0-9]+$
resolutionstring · enumRequired

Candle resolution

Example: 1mPossible values:
Query parameters
endTimeinteger · int64Optional

Return results before this sequence number (for pagination)

Example: 1756733679000
Responses
200

Historical candle data

application/json
get
GET /v2/candleHistory/{symbol}/{resolution} HTTP/1.1
Host: api.reya.xyz
Accept: */*
{
  "t": [
    1747804140,
    1747804200,
    1747804260
  ],
  "o": [
    "2557.997",
    "2555.386",
    "2560.118"
  ],
  "h": [
    "2558.000",
    "2560.699",
    "2560.729"
  ],
  "l": [
    "2554.637",
    "2553.436",
    "2559.368"
  ],
  "c": [
    "2555.387",
    "2560.118",
    "2560.439"
  ]
}