Download check_pos.py from raghava4u/Trading-Bot-M20: direct link, hf CLI and curl.
- Browser
- Download file 215 Bytes
-
https://huggingface.co/raghava4u/Trading-Bot-M20/resolve/main/check_pos.py
- Command line
-
hf download hf://raghava4u/Trading-Bot-M20/check_pos.py
-
curl -L -o check_pos.py https://huggingface.co/raghava4u/Trading-Bot-M20/resolve/main/check_pos.py
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']}") | |