FundingPayments

fundingPayments InjectiveDerivativeExchangeRPC

get

FundingPayments gets the funding payments for a trader.

Query parameters
subaccountIdstring · min: 66 · max: 66Optional

SubaccountId of the trader we want to get the positions from

Example: 0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1000000000000000000000002Pattern: ^0x[0-9a-fA-F]{64}$
skipintegerOptional

Skip will skip the first n item from the result

Example: 0
limitinteger · int64Optional

Limit is used to specify the maximum number of items to be returned.

Example: 100
marketIdstring · min: 66 · max: 66Optional

MarketIds of the funding payment we want to fetch. Using this for only one market id. This field is prioritized

Example: 0x3bdb3d8b5eb4d362371b72cf459216553d74abdb55eb0208091f7777dd85c8bbPattern: ^0x[0-9a-fA-F]{64}$
marketIdsstring[] · max: 100Optional

Filter by market ids. Using this field for fetching funding payments from multiple market ids

Example: ["mhb","xgh","qpo"]
endTimeinteger · int64Optional

Upper bound of funding payment updatedAt

Example: 1656864048234
Responses
200
OK response.
application/json
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
    }
  ]
}