I am new with python and binance-connector,
Which endpoint and parameters should i use to fetch for ‘entryPrice’
please explain with examples.
from binance.um_futures import UMFutures
key = 'bd2c49e130ac3bfbefdb3e9cadfecb7398b3d6bdd9bea3aa8681f469544be260'
secret = '81f6f70cda3c4d4b6186cca57d08393cd9f676dfea5aa4f40150ac82cada8817'
base_url = "https://testnet.binancefuture.com"
um_futures_client = UMFutures(key=key, secret=secret, base_url=base_url)
um_futures_client.dualSidePosition= True
print(um_futures_client.get_position_mode())
#print(um_futures_client.account())
symbol="ETHUSDT",
side1="BUY",
positionSide1 = 'LONG',
side2="SELL",
positionSide2 = 'SHORT',
type = 'MARKET'
#type1="STOP_MARKET",
#type2='TAKE_PROFIT_MARKET',
#stopPrice = 21280,
quantity=0.1,
#timeInForce = 'GTC'
M_order2 = um_futures_client.new_order(symbol=symbol, side=side2, positionSide=positionSide2,
type=type, quantity=quantity)
M_order1 = um_futures_client.new_order(symbol=symbol, side=side1, positionSide=positionSide1,
type=type, quantity=quantity)
print(M_order2)
when i print 'M_order2 ’ I get avgPrice = 0.00000
sell below
{'orderId': 872459495,
'symbol': 'ETHUSDT',
'status': 'NEW',
'clientOrderId': 'uStmCItBX1OftJHOnfNqGy',
'price': '0',
'avgPrice': '0.00000',
'origQty': '0.100',
'executedQty': '0',
'cumQty': '0',
'cumQuote': '0',
'timeInForce': 'GTC',
'type': 'MARKET',
'reduceOnly': False,
'closePosition': False,
'side': 'BUY',
'positionSide': 'LONG',
'stopPrice': '0',
'workingType': 'CONTRACT_PRICE',
'priceProtect': False,
'origType': 'MARKET',
'updateTime': 1656657645317}
Please reply as soon as possible
ThankYou in advance