aboutsummaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'test.py')
-rw-r--r--test.py16
1 files changed, 12 insertions, 4 deletions
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