Get Margin Transfer History
API Description
Retrieves margin transfer history for positions. This endpoint provides detailed information about all margin additions and removals for positions, including the amount, asset type, and block information.
HTTP Request
GET /v5/position/transfer/listRequest Parameters
Parameter
Type
Required
Description
symbol
string
No
Trading pair symbol (e.g., BTC-USDM-EMG)
startTime
string
No
Start time (ms)
endTime
string
No
End time (ms)
limit
number
No
Number of records (max 100)
cursor
string
No
Cursor for pagination
Response Parameters
Parameter
Type
Description
instrumentAddrress
string
Contract address of the instrument
symbol
string
Trading pair symbol
expiry
number
Expiry timestamp (0 for perpetual)
type
string
Transfer type (ADD_MARGIN, REMOVE_MARGIN)
amount
string
Transfer amount
asset
string
Asset symbol (e.g., USDM)
blockInfo
object
Block information
-> height
number
Block height
-> timestamp
number
Block timestamp
Request Example
cURL
curl -X GET \
'https://api.synfutures.com/v5/position/transfer/list?limit=20' \
-H 'Content-Type: application/json' \
-H 'X-BAPI-API-KEY: [api_key]' \
-H 'X-BAPI-SIGN: [signature]' \
-H 'X-BAPI-TIMESTAMP: [timestamp]' \
-H 'X-BAPI-RECV-WINDOW: 5000'JavaScript (Fetch)
const response = await fetch(
"https://api.synfutures.com/v5/position/transfer/list?limit=20",
{
method: "GET",
headers: {
"Content-Type": "application/json",
"X-BAPI-API-KEY": "[api_key]",
"X-BAPI-SIGN": "[signature]",
"X-BAPI-TIMESTAMP": "[timestamp]",
"X-BAPI-RECV-WINDOW": "5000",
},
}
);
const data = await response.json();
console.log(data);Python (requests)
import requests
url = "https://api.synfutures.com/v5/position/transfer/list"
params = {
'limit': 20
}
headers = {
'Content-Type': 'application/json',
'X-BAPI-API-KEY': '[api_key]',
'X-BAPI-SIGN': '[signature]',
'X-BAPI-TIMESTAMP': '[timestamp]',
'X-BAPI-RECV-WINDOW': '5000'
}
response = requests.get(url, headers=headers, params=params)
result = response.json()
print(result)Response Example
Success Response
{
"data": [
{
"instrumentAddrress": "0x1a8a5872b5b82686e1271a363556335a5f540dae",
"symbol": "BTC-USDM-EMG",
"expiry": 4294967295,
"type": "ADD_MARGIN",
"amount": "100.00",
"asset": "USDM",
"blockInfo": {
"height": 162708,
"timestamp": 1761278396
}
},
{
"instrumentAddrress": "0x1a8a5872b5b82686e1271a363556335a5f540dae",
"symbol": "BTC-USDM-EMG",
"expiry": 4294967295,
"type": "REMOVE_MARGIN",
"amount": "100.00",
"blockInfo": {
"height": 162708,
"timestamp": 1761278396
}
}
],
"msg": "",
"code": 200,
"requestId": "bbf4fa1a-0f41-449f-8d9c-44fdceae0bf7"
}Error Response
{
"code": 400,
"msg": "Request parameter error",
"data": {},
"requestId": "bbf4fa1a-0f41-449f-8d9c-44fdceae0bf7"
}Last updated