Get Position Fee

Get position fee (Authentication type: KEYED, See Interface Permission)

Request Format

GET https://api-cloud.bitmart.com/contract/v1/ifcontract/positionFee

Request Limit

See Detailed Rate Limit

Request Parameter

Field Type Required? Description
contractID long Yes Contract ID
positionID long Yes Position ID

Instruction

Request example

curl https://api-cloud.bitmart.com/contract/v1/ifcontract/positionFee?contractID=32785&positionID=2154205116

Response Data

Field Type Description
contract_id ing Contract ID
account_id long Account ID
position_id long Position ID
fair_price string Fair price when incurring position fee
funding_rate string Funding rate when position fee is incurred
fee string Fee, negative number means earned and positive number means paid
vol int Position holding when position fee is incurred
created_at string Position fee incurred time (UTC)

Note

The record list is sorted by time from latest to earliest

Example of returned data format

{
  "code": 1000,
  "trace":"886fb6ae-456b-4654-b4e0-d681ac05cea1",
  "message": "OK",
  "data": [
    {
      "contract_id": 32785,
      "account_id": 2071026819,
      "position_id": 2154205116,
      "fair_price": "0.849940605285",
      "funding_rate": "0",
      "fee": "-149.8912195248",
      "vol": "1053468",
      "created_at": "2019-01-15T00:00:00.708979Z"
    },
    {
      "contract_id": 32785,
      "account_id": 2071026819,
      "position_id": 2154205116,
      "fair_price": "0.849940605285",
      "funding_rate": "0",
      "fee": "-261.432832752",
      "vol": "1053468",
      "created_at": "2019-01-14T16:00:01.183355Z"
    }
  ]
}

results matching ""

    No results matching ""