Skip to content

Commit

Permalink
Merge pull request #13 from lidofinance/cointrAPI-patch-1
Browse files Browse the repository at this point in the history
Update cex_data_loader.py
  • Loading branch information
thelazyliz authored Sep 11, 2024
2 parents 0e7cb2f + 1b24a35 commit dfebb22
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion utils/cex_data_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def __init__(self, start_date: datetime, end_date: datetime):
'bitrue': self.fetch_bitrue_daily_data,
'dcoin': self.fetch_dcoin_daily_data,
'azbit': self.fetch_azbit_daily_data,
'cointr': self.fetch_cointr_daily_data,
#'cointr': self.fetch_cointr_daily_data,
'bitget': self.fetch_bitget_daily_data,
}
# default pairs for all exchanges
Expand Down Expand Up @@ -267,6 +267,7 @@ def fetch_azbit_daily_data(self, pair: str) -> pd.DataFrame:
logging.info(f"Did not receieve OK response from Azbit API for {pair}")
return pd.DataFrame()

'''
#https://cointr-ex.github.io/openapis/spot.html#market-specifications
def fetch_cointr_daily_data(self, pair: str) -> pd.DataFrame:
timestamp_to = int(datetime.timestamp(self.end_date))
Expand Down Expand Up @@ -294,6 +295,7 @@ def fetch_cointr_daily_data(self, pair: str) -> pd.DataFrame:
else:
logging.info(f"Did not receieve OK response from CoinTR API for {pair}")
return pd.DataFrame()
'''

#https://bitgetlimited.github.io/apidoc/en/spot/#get-candle-data
def fetch_bitget_daily_data(self, pair: str) -> pd.DataFrame:
Expand Down

0 comments on commit dfebb22

Please sign in to comment.