File size: 215 Bytes
d53dc44
 
 
 
 
1
2
3
4
5
6
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']}")