21 lines
611 B
Python
21 lines
611 B
Python
from cryptoai.api.adata_api import AStockAPI
|
|
from cryptoai.api.binance_api import get_binance_api
|
|
import json
|
|
from time import sleep
|
|
from cryptoai.models.token import TokenManager
|
|
from cryptoai.utils.db_manager import get_db_context
|
|
from cryptoai.tasks.user import task_run
|
|
from cryptoai.agents.crypto_agent import CryptoAgent
|
|
|
|
if __name__ == "__main__":
|
|
CryptoAgent().start_agent()
|
|
|
|
# data = get_binance_api().get_historical_klines(
|
|
# symbol="BTCUSDT",
|
|
# interval="1h",
|
|
# start_str="2024-01-01",
|
|
# end_str="2024-01-02",
|
|
# limit=100
|
|
# )
|
|
# print(data)
|