curl --request GET \
--url https://api.woox.io/v3/account/tokenConfig \
--header 'x-api-key: <x-api-key>' \
--header 'x-api-signature: <x-api-signature>' \
--header 'x-api-timestamp: <x-api-timestamp>'
{
"success": true,
"data": {
"rows": [
{
"token": "BTC",
"collateralRatio": "0.85",
"marginFactor": "0.00000023",
"collateral": true, // if the token is now used as collateral
"canCollateral": true, // if the token can be used as collateral
"canShort": true, // if the token supports short selling
"marginMaxLeverage": 10,
"marginMaxPosition": 100000000000
},
{
"token": "ETH",
"collateralRatio": "0.85",
"marginFactor": 0.00000025",
"collateral": true,
"canCollateral": true,
"canShort": true,
"marginMaxLeverage": 10,
"marginMaxPosition": 100000000000
},
{
"token": "WOO",
"collateralRatio": "0.6",
"marginFactor": "0.00000025",
"collateral": false,
"canCollateral": false,
"canShort": false,
"marginMaxLeverage": 5,
"marginMaxPosition": 100000000000
}
]
},
"timestamp": 1721351502594
}
Get the token level configurations.
curl --request GET \
--url https://api.woox.io/v3/account/tokenConfig \
--header 'x-api-key: <x-api-key>' \
--header 'x-api-signature: <x-api-signature>' \
--header 'x-api-timestamp: <x-api-timestamp>'
{
"success": true,
"data": {
"rows": [
{
"token": "BTC",
"collateralRatio": "0.85",
"marginFactor": "0.00000023",
"collateral": true, // if the token is now used as collateral
"canCollateral": true, // if the token can be used as collateral
"canShort": true, // if the token supports short selling
"marginMaxLeverage": 10,
"marginMaxPosition": 100000000000
},
{
"token": "ETH",
"collateralRatio": "0.85",
"marginFactor": 0.00000025",
"collateral": true,
"canCollateral": true,
"canShort": true,
"marginMaxLeverage": 10,
"marginMaxPosition": 100000000000
},
{
"token": "WOO",
"collateralRatio": "0.6",
"marginFactor": "0.00000025",
"collateral": false,
"canCollateral": false,
"canShort": false,
"marginMaxLeverage": 5,
"marginMaxPosition": 100000000000
}
]
},
"timestamp": 1721351502594
}
{
"success": true,
"data": {
"rows": [
{
"token": "BTC",
"collateralRatio": "0.85",
"marginFactor": "0.00000023",
"collateral": true, // if the token is now used as collateral
"canCollateral": true, // if the token can be used as collateral
"canShort": true, // if the token supports short selling
"marginMaxLeverage": 10,
"marginMaxPosition": 100000000000
},
{
"token": "ETH",
"collateralRatio": "0.85",
"marginFactor": 0.00000025",
"collateral": true,
"canCollateral": true,
"canShort": true,
"marginMaxLeverage": 10,
"marginMaxPosition": 100000000000
},
{
"token": "WOO",
"collateralRatio": "0.6",
"marginFactor": "0.00000025",
"collateral": false,
"canCollateral": false,
"canShort": false,
"marginMaxLeverage": 5,
"marginMaxPosition": 100000000000
}
]
},
"timestamp": 1721351502594
}
api-key
"abcdef123456"
api-signature
"signaturestring"
api-timestamp
"1718943200000"
The response is of type object
.