1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
import requests from api import fetch_chart_data_backtest # params = { # 'symbols' : 'BTC-USD', # 'timeframe' : '1Min', # 'start' : period1, # 'end' : period2, # 'limit': 10000, # 'sort' : 'asc', # } # headers = {"accept": "application/json"} # url = "https://data.alpaca.markets/v1beta3/crypto/us/quotes" fetch_chart_data_backtest()