vans
April 14, 2021, 6:42am
1
Hi,
i’m getting currency pairs specifications from API (api/v3/exchangeInfo), why isMarginTradingAllowed is set to false for some currencies but on exchange can be margined?
HOTUSDT pair for example is marginable on exchange but on API request isMarginTradingAllowed is false
Thanks for your time, bye
MJW
April 14, 2021, 10:39pm
2
isolated margin cannot be read from exchangeInfo
vans
April 26, 2021, 9:03am
3
Hi, here you exchangeinfo extracted array info:
[symbol] => ZENUSDT
[status] => TRADING
[baseAsset] => ZEN
[baseAssetPrecision] => 8
[quoteAsset] => USDT
[quotePrecision] => 8
[quoteAssetPrecision] => 8
[baseCommissionPrecision] => 8
[quoteCommissionPrecision] => 8
[orderTypes] => Array
(
[0] => LIMIT
[1] => LIMIT_MAKER
[2] => MARKET
[3] => STOP_LOSS_LIMIT
[4] => TAKE_PROFIT_LIMIT
)
[icebergAllowed] => 1
[ocoAllowed] => 1
[quoteOrderQtyMarketAllowed] => 1
[isSpotTradingAllowed] => 1
[isMarginTradingAllowed] =>
[filters] => Array......
As you can see [isMarginTradingAllowed] is false as in the reality ZENUSDT pair is marginable
@vans isMarginTradingAllowed=false refers to cross margin not being available for ZENUSDT.
Currently, the */exchangeInfo doesn’t return status about isolated margin being available or not.
“symbol”: “ALPHAUSDT”,
“status”: “TRADING”,
“baseAsset”: “ALPHA”,
“baseAssetPrecision”: 8,
“quoteAsset”: “USDT”,
“quotePrecision”: 8,
“quoteAssetPrecision”: 8,
“baseCommissionPrecision”: 8,
“quoteCommissionPrecision”: 8,
“orderTypes”: [
“LIMIT”,
“LIMIT_MAKER”,
“MARKET”,
“STOP_LOSS_LIMIT”,
“TAKE_PROFIT_LIMIT”
],
“icebergAllowed”: true,
“ocoAllowed”: true,
“quoteOrderQtyMarketAllowed”: true,
“isSpotTradingAllowed”: true,
“isMarginTradingAllowed”: true,
why isMarginTradingAllowed = true for ALPHAUSDT but it’s not available for cross margin?
vans
April 26, 2021, 3:50pm
5
Now it’s clear, i need to use “‘GET’, ‘sapi/v1/margin/allPairs’”
Tnk for your time, bye
vans
April 29, 2021, 3:00pm
7
@buzzki11
try to call “sapi/v1/margin/allPairs” and you’ll not find ALPHAUSDT pair