Binance Quarterly Futures BTCUSD incorrectly sent to exchange
See original GitHub issueCCXT version: 1.42.49
- Windows
- Python
This is a new issue for me that I am just getting to now since Quarterly Contracts were added to Binance Futures, I Have read the other posts and they don’t seem to solve my issue. #8387 #8398
Sending this:
binance.create_market_buy_order('BTC/USDT', self.order_size, params)
Getting this:
{'info': {'orderId': 76977833, 'symbol': 'BTCUSDT_210326', 'status': 'NEW', 'clientOrderId': 'x-40PTWbMIFVQ84TL', 'price': '0', 'avgPrice': '0.0000', 'origQty': '0.004', 'executedQty': '0', 'cumQty': '0', 'cumQuote': '0', 'timeInForce': 'GTC', 'type': 'MARKET', 'reduceOnly': False, 'closePosition': False, 'side': 'BUY', 'positionSide': 'BOTH', 'stopPrice': '0', 'workingType': 'CONTRACT_PRICE', 'priceProtect': False, 'origType': 'MARKET', 'updateTime': 1614719854940}, 'id': '76977833', 'clientOrderId': 'x-40PTWbMIFVQ84TL', 'timestamp': None, 'datetime': None, 'lastTradeTimestamp': None, 'symbol': 'BTC/USDT', 'type': 'market', 'timeInForce': 'GTC', 'postOnly': False, 'side': 'buy', 'price': 0.0, 'stopPrice': 0.0, 'amount': 0.004, 'cost': 0.0, 'average': None, 'filled': 0.0, 'remaining': 0.004, 'status': 'open', 'fee': None, 'trades': None}
Opens the incorrect Contract shown Here: https://ibb.co/0sq4Y7N
for reference this is how I have always loaded binance futures in this script
exchange_id = 'binance'
exchange_class = getattr(ccxt, exchange_id)
binance = exchange_class({
'apiKey': settings['key'],
'secret': settings['secret'],
'timeout': 30000,
'enableRateLimit': True,
'option': {'defaultMarket': 'futures'},
'urls': {
'api': {
'public': 'https://fapi.binance.com/fapi/v1',
'private': 'https://fapi.binance.com/fapi/v1',
}, }
})
Also Thanks in advance @kroitor you are a beast
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
Delivery and Settlement of Quarterly Futures | Binance Support
When the quarterly contract expires, it will be delivered. The system uses a cash-settlement method to deliver. Expired open positions are ...
Read more >A Quick Guide to Coin-Margined Quarterly Contracts - Binance
BTCUSD Quarterly Futures Contracts are quoted and settled in the denominated BTC tokens. They also use BTC as the collateral. It means that...
Read more >Multi-Assets Mode: How It Works and What You Need to Know
Multi-Assets Mode allows users to trade USDS-M Futures across multiple margin assets. Presently, Binance Futures offers USDT-Margined and BUSD- ...
Read more >About Quarterly Futures Contract - Binance
BTCUSD Quarterly futures contracts are quoted and settled in the denominated BTC tokens. They also use BTC as the collateral. It means that...
Read more >Mark Price in USDS-Margined Futures - Binance
The Price Index for USDS-M futures contracts derived prices from Huobi, ... Exchange connectivity problem: If we can't access the data feed ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
My Hero, it was because i was using the old API it seems: Thank you for your time @kroitor you are a legend
@CryptoGnome thx for the feedback!