Retrieve the history of closed collateral trading positions on a WhiteBIT account via the V4 API.
Documentation Index
Fetch the complete documentation index at: https://docs.whitebit.com/llms.txt
Use this file to discover all available pages before exploring further.
The public WhiteBIT API key.
Base64-encoded JSON request body.
HMAC-SHA512 signature of the payload, hex-encoded. Computed as hex(HMAC-SHA512(payload, api_secret)).
Filter by specific market. Example: BTC_USDT
If not specified, returns position history for all markets.
"BTC_USDT"
Filter by specific position identifier. If not specified, returns history for all positions.
1
Start of the query window as a Unix timestamp in seconds. Optional, no default. Must be ≤ endDate.
1650400000
End of the query window as a Unix timestamp in seconds. Optional, no default. Must be ≥ startDate and ≤ now + 1s; violating values are rejected with a validation error.
1650500000
"{{request}}"
"{{nonce}}"
Successful response - returns array of position history
Position identifier
111
Position market
"BTC_USDT"
Date of position opening in Unix timestamp format
1650400589.882613
Date of position modification (current event) in Unix timestamp format
1650400589.882613
Position amount
"0.1"
Base price of position
"45658.349"
Funding fee for whole position lifetime till current state
"0"
Liquidation price according to current state of position
null
State of liquidation
margin_call, liquidation null
Details of order which changes position
Position direction. BOTH indicates a one-way mode position; LONG or SHORT indicates a hedge mode position. See position side.
LONG, SHORT, BOTH "LONG"
Indicates whether hedge mode was active when the position was opened. Hedge-mode toggling requires zero open positions, so the value also reflects the account mode at every event in the position's lifetime.
false