Trading-Bot-M20 / check_pos.py
raghava4u's picture
Upload folder using huggingface_hub
d53dc44 verified
Raw History Blame Contribute Delete
215 Bytes
from execution.broker import list_positions
positions = list_positions()
for p in positions:
if p['symbol'] in ['GM', 'WMB']:
print(f"{p['symbol']}: qty={p['qty']}, entry_price={p['avg_entry_price']}")