跳到主要内容

Futures Account API

危险

Poloniex futures v1/v2 API will be officially offline on November 30, 2024. You can access the V3 API to provide you with a better trading experience.

Get Account Overview

HTTP Request

GET https://futures-api.poloniex.com/api/v1/account-overview

Example

GET https://futures-api.poloniex.com/api/v1/account-overview?currency=USDT

Parameters

ParamTypeDescription
currencyString[Optional] Currency, XBT or USDT, Default USDT

API Permission

This endpoint requires the General permission.

REQUEST RATE LIMIT

This API is restricted for each account, the request rate limit is 3 times/3s.

Example:
{
"code": "200000",
"data": {
"accountEquity": 99.8999305281, //Account equity = marginBalance + Unrealised PNL
"unrealisedPNL": 0, //Unrealised profit and loss
"marginBalance": 99.8999305281, //Margin balance = positionMargin + orderMargin + frozenFunds + availableBalance
"positionMargin": 0, //Position margin
"orderMargin": 0, //Order margin
"frozenFunds": 0, //Frozen funds
"availableBalance": 99.8999305281 //Available balance
"currency": "USDT", //currency code
"pnl":-1 //Realised profit and loss
}
}

Get Transaction History

If there are open positions, the status of the first page returned will be Pending, indicating the realized profit and loss in the current 8-hour settlement period. Please specify the minimum offset number of the current page into the offset field to turn the page.

HTTP Request

GET https://futures-api.poloniex.com/api/v1/transaction-history

Example

GET https://futures-api.poloniex.com/api/v1/transaction-history?offset=1&forward=true&maxCount=50

API Permission

This endpoint requires the General permission.

REQUEST RATE LIMIT

This API is restricted for each account, the request rate limit is 9 times/3s.

Parameters

ParamTypeDescription
startAtlong[Optional] Start time (millisecond)
endAtlong[Optional] End time (millisecond)
typeString[Optional] Type RealisedPNL-Realised profit and loss, Transferin-Transfer in, TransferOut-Transfer out
offsetlong[Optional] Start offset
maxCountlong[Optional] Displayed size per page. The default size is 50
currencyString[Optional] Currency of transaction history XBT or USDT

Returned Data Types

FieldDescription
typeRealisedPNL, Deposit, TransferIn, TransferOut
statusCompleted, Pending
Example:
{
"code": "200000",
"data": {
"hasMore": false, //Whether there are more pages
"dataList": [
{
"ts": 1558596284040, //Event time
"type": "RealisedPNL", //Type
"amount": 0, //Transaction amount
"fee": null, //Fees
"accountEquity": 8060.7899305281, //Account equity
"status": "Pending", //Status. If you have held a position in the current 8-hour settlement period.
"remark": "BTCUSDTPERP", //Ticker symbol of the contract
"offset": -1, //Offset
"currency": "XBT" //Currency
},
{
"ts": 1557997200000,
"type": "RealisedPNL",
"amount": -0.000017105,
"fee": 0,
"accountEquity": 8060.7899305281,
"status": "Completed", //Status. Status. Funding period that has been settled.
"remark": "BTCUSDTPERP",
"offset": 1,
"currency": "XBT"
}
]
}
}