diff options
author | loit <michael.foiani@gmail.com> | 2025-07-31 13:20:08 -0400 |
---|---|---|
committer | loit <michael.foiani@gmail.com> | 2025-07-31 13:20:08 -0400 |
commit | 2f195e7f14e57e07ec291e8bfeee6da54ef35575 (patch) | |
tree | 572fccc4563c3bfb62f70d86ef271b70aedcf0ec /test.py | |
parent | de9b1d2297e02a71e06f386066c106406a9477f3 (diff) |
attemp using the alpaca api for history data
Diffstat (limited to 'test.py')
-rw-r--r-- | test.py | 16 |
1 files changed, 12 insertions, 4 deletions
@@ -1,9 +1,17 @@ import requests +from api import fetch_chart_data_backtest -url = "https://data.alpaca.markets/v1beta3/crypto/us/quotes?limit=1000&sort=asc" +# params = { +# 'symbols' : 'BTC-USD', +# 'timeframe' : '1Min', +# 'start' : period1, +# 'end' : period2, +# 'limit': 10000, +# 'sort' : 'asc', +# } -headers = {"accept": "application/json"} +# headers = {"accept": "application/json"} -response = requests.get(url, headers=headers) +# url = "https://data.alpaca.markets/v1beta3/crypto/us/quotes" -print(response.text)
\ No newline at end of file +fetch_chart_data_backtest()
\ No newline at end of file |