FundingPayments
FundingPayments gets the funding payments for a trader.
Query parameters
subaccountIdstring · min: 66 · max: 66OptionalExample:
SubaccountId of the trader we want to get the positions from
0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002
Pattern: ^0x[0-9a-fA-F]{64}$
skipintegerOptionalExample:
Skip will skip the first n item from the result
0
limitinteger · int64OptionalExample:
Limit is used to specify the maximum number of items to be returned.
100
marketIdstring · min: 66 · max: 66OptionalExample:
MarketIds of the funding payment we want to fetch. Using this for only one market id. This field is prioritized
0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb
Pattern: ^0x[0-9a-fA-F]{64}$
marketIdsstring[] · max: 100OptionalExample:
Filter by market ids. Using this field for fetching funding payments from multiple market ids
["mhb","xgh","qpo"]
endTimeinteger · int64OptionalExample:
Upper bound of funding payment updatedAt
1656864048234
Responses
200
OK response.
application/json
400
Bad Request response.
application/vnd.goa.error
404
Not Found response.
application/vnd.goa.error
500
Internal Server Error response.
application/vnd.goa.error
get
GET /api/exchange/derivative/v1/fundingPayments HTTP/1.1
Host: inj-indexer.nownodes.io
Accept: */*
{
"paging": {
"countBySubaccount": 3144167030999342600,
"from": 1916499695,
"next": [
"Ea rerum.",
"Aut dolorem cum voluptas quae.",
"Voluptas repellendus qui ipsam est."
],
"to": 391437627,
"total": 7364854934794692000
},
"payments": [
{
"amount": "77000000.00431",
"marketId": "0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb",
"subaccountId": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002",
"timestamp": 1544614248000
},
{
"amount": "77000000.00431",
"marketId": "0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb",
"subaccountId": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002",
"timestamp": 1544614248000
},
{
"amount": "77000000.00431",
"marketId": "0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb",
"subaccountId": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002",
"timestamp": 1544614248000
},
{
"amount": "77000000.00431",
"marketId": "0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bb",
"subaccountId": "0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002",
"timestamp": 1544614248000
}
]
}