Wallet Data
Accounts, positions, trades, etc.
0x6c51275fd01d5dbd2da194e92f920f8598306df2
Pattern: ^0x[a-fA-F0-9]{40}$
List of accounts
Bad request
Internal server error
GET /v2/wallet/{address}/accounts HTTP/1.1
Host: api.reya.xyz
Accept: */*
[
{
"accountId": 12345,
"name": "Margin Account 1",
"lastUpdateAt": 1747927089946
}
]
Returns up to 100 perp executions for a given wallet.
0x6c51275fd01d5dbd2da194e92f920f8598306df2
Pattern: ^0x[a-fA-F0-9]{40}$
Return results after this sequence number (for pagination)
1756733379000
Return results before this sequence number (for pagination)
1756733679000
List of perpetual executions
Bad request
Internal server error
GET /v2/wallet/{address}/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
}
}
Returns up to 100 spot executions for a given wallet.
0x6c51275fd01d5dbd2da194e92f920f8598306df2
Pattern: ^0x[a-fA-F0-9]{40}$
Return results after this sequence number (for pagination)
1756733379000
Return results before this sequence number (for pagination)
1756733679000
List of spot executions
Bad request
Internal server error
GET /v2/wallet/{address}/spotExecutions HTTP/1.1
Host: api.reya.xyz
Accept: */*
{
"data": [
{
"exchangeId": 1,
"symbol": "BTCRUSD",
"accountId": 12345,
"side": "B",
"qty": "1.0",
"price": "43000.00",
"fee": "0.0",
"type": "ORDER_MATCH",
"timestamp": 1747927089946
}
],
"meta": {
"limit": 100,
"count": 50,
"endTime": 1756733679000,
"startTime": 1756733579000
}
}
0x6c51275fd01d5dbd2da194e92f920f8598306df2
Pattern: ^0x[a-fA-F0-9]{40}$
List of positions
Bad request
Internal server error
GET /v2/wallet/{address}/positions HTTP/1.1
Host: api.reya.xyz
Accept: */*
[
{
"exchangeId": 1,
"symbol": "BTCRUSDPERP",
"accountId": 12345,
"qty": "1.5",
"side": "B",
"avgEntryPrice": "43000.00",
"avgEntryFundingValue": "100.25",
"lastTradeSequenceNumber": 152954
}
]
Returns all pending orders for a wallet.
0x6c51275fd01d5dbd2da194e92f920f8598306df2
Pattern: ^0x[a-fA-F0-9]{40}$
List of open orders
Bad request
Internal server error
GET /v2/wallet/{address}/openOrders HTTP/1.1
Host: api.reya.xyz
Accept: */*
[
{
"exchangeId": 1,
"symbol": "BTCRUSDPERP",
"accountId": 12345,
"orderId": "123456789-123123123",
"qty": "1.0",
"execQty": "0.5",
"side": "B",
"limitPx": "43000.00",
"orderType": "TP",
"triggerPx": "50000.0",
"timeInForce": "GTC",
"reduceOnly": false,
"status": "OPEN",
"createdAt": 1747927089946,
"lastUpdateAt": 1747927089946
}
]
Returns trading configuration for a wallet
0x6c51275fd01d5dbd2da194e92f920f8598306df2
Pattern: ^0x[a-fA-F0-9]{40}$
Wallet configuration
Bad request
Internal server error
GET /v2/wallet/{address}/configuration HTTP/1.1
Host: api.reya.xyz
Accept: */*
{
"feeTierId": 1,
"ogStatus": true,
"affiliateStatus": false,
"refereeStatus": false
}