MCPcopy Create free account
hub / github.com/ccxt/ccxt / is_linear

Method is_linear

python/ccxt/binance.py:2792–2796  ·  view source on GitHub ↗
(self, type: str, subType: Str = None)

Source from the content-addressed store, hash-verified

2790 return subType == 'inverse'
2791
2792 def is_linear(self, type: str, subType: Str = None) -> bool:
2793 if subType is None:
2794 return(type == 'future') or (type == 'swap')
2795 else:
2796 return subType == 'linear'
2797
2798 def set_sandbox_mode(self, enable: bool):
2799 super(binance, self).set_sandbox_mode(enable)

Callers 15

fetch_timeMethod · 0.95
fetch_balanceMethod · 0.95
fetch_bids_asksMethod · 0.95
fetch_last_pricesMethod · 0.95
fetch_tickersMethod · 0.95
fetch_mark_priceMethod · 0.95
fetch_mark_pricesMethod · 0.95
fetch_open_ordersMethod · 0.95
fetch_trading_feeMethod · 0.95
fetch_trading_feesMethod · 0.95
fetch_funding_ratesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected