From 2f195e7f14e57e07ec291e8bfeee6da54ef35575 Mon Sep 17 00:00:00 2001 From: loit Date: Thu, 31 Jul 2025 13:20:08 -0400 Subject: attemp using the alpaca api for history data --- test.py | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'test.py') diff --git a/test.py b/test.py index 80deb5d..e77497c 100644 --- a/test.py +++ b/test.py @@ -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 -- cgit v1.2.3-70-g09d2