Algo Trading. How to display position and exit orders , Fyers, python?
Display trade position in python
def positions():
pos=fyers.positions()
strikeName.delete(0,"end")
strikeName.insert(0,pos["netPositions"][0]["symbol"])
filledQty.delete(0,"end")
filledQty.insert(0,pos["netPositions"][0]["qty"])
avgPrice.delete(0,"end")
avgPrice.insert(0,pos["netPositions"][0]["avgPrice"])
Comments
Post a Comment