Skip to content

Instantly share code, notes, and snippets.

@normanlmfung
Created September 24, 2021 02:59
Show Gist options
  • Save normanlmfung/101d5b21e2190f11d16111ccffbde684 to your computer and use it in GitHub Desktop.
Save normanlmfung/101d5b21e2190f11d16111ccffbde684 to your computer and use it in GitHub Desktop.
binance BTCUSD_PERP contract specification
{
'percentage': True,
'feeSide': 'get',
'tierBased': False,
'taker': 0.0005,
'maker': 0.0001,
'precision': {
'base': 8,
'quote': 8,
'amount': 0,
'price': 1
},
'limits': {
'amount': {'min': 1.0, 'max': 1000000.0},
'price': {'min': 1000.0, 'max': 4520958.0},
'cost': {'min': None, 'max': None},
'market': {'min': 1.0, 'max': 5000.0}},
'id': 'BTCUSD_PERP',
'lowercaseId': 'btcusd_perp',
'symbol': 'BTC/USD',
'base': 'BTC',
'quote': 'USD',
'baseId': 'BTC',
'quoteId': 'USD',
'info': {
'symbol': 'BTCUSD_PERP',
'pair': 'BTCUSD',
'contractType': 'PERPETUAL',
'deliveryDate': '4133404800000',
'onboardDate': '1597042800000',
'contractStatus': 'TRADING',
'contractSize': '100',
'marginAsset': 'BTC',
'maintMarginPercent': '2.5000',
'requiredMarginPercent': '5.0000',
'baseAsset': 'BTC',
'quoteAsset': 'USD',
'pricePrecision': '1',
'quantityPrecision': '0',
'baseAssetPrecision': '8',
'quotePrecision': '8',
'equalQtyPrecision': '4',
'maxMoveOrderLimit': '10000',
'triggerProtect': '0.0500',
'underlyingType': 'COIN',
'underlyingSubType': [],
'filters': [
{'minPrice': '1000', 'maxPrice': '4520958', 'filterType': 'PRICE_FILTER', 'tickSize': '0.1'},
{'stepSize': '1', 'filterType': 'LOT_SIZE', 'maxQty': '1000000', 'minQty': '1'},
{'stepSize': '1', 'filterType': 'MARKET_LOT_SIZE', 'maxQty': '5000', 'minQty': '1'},
{'limit': '200', 'filterType': 'MAX_NUM_ORDERS'}, {'limit': '100', 'filterType': 'MAX_NUM_ALGO_ORDERS'},
{'multiplierDown': '0.9500', 'multiplierUp': '1.0500', 'multiplierDecimal': '4', 'filterType': 'PERCENT_PRICE'}
],
'orderTypes': ['LIMIT', 'MARKET', 'STOP', 'STOP_MARKET', 'TAKE_PROFIT', 'TAKE_PROFIT_MARKET', 'TRAILING_STOP_MARKET'],
'timeInForce': ['GTC', 'IOC', 'FOK', 'GTX'],
'liquidationFee': '0.006000', 'marketTakeBound': '0.05'},
'spot': False,
'type': 'delivery',
'margin': False,
'future': False,
'delivery': True,
'linear': False,
'inverse': True,
'expiry': None,
'expiryDatetime': None,
'active': True,
'contractSize': '100'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment