|
34 | 34 | STABLE_COINS = {"USDC", 'FDUSD', "USDT", 'DAI', 'USDB', 'USDE', 'TUSD', 'USR'}
|
35 | 35 | DAYS_TO_CONSIDER = 30
|
36 | 36 |
|
37 |
| -# Drift API configuration |
| 37 | +# --- CoinMarketCap API Configuration --- |
| 38 | +CMC_API_KEY = "973f2ad5-6b18-4f01-a8d9-c1d50460ae3a" |
| 39 | + |
| 40 | +# --- Drift API Configuration --- |
38 | 41 | DRIFT_DATA_API_BASE_URL = "https://y7n4m4tnpb.execute-api.eu-west-1.amazonaws.com"
|
39 | 42 | DRIFT_DATA_API_HEADERS = {"X-Origin-Verify": "AolCE35uXby9TJHHgoz6"}
|
40 | 43 | API_RATE_LIMIT_INTERVAL = 0.1 # seconds between requests
|
41 | 44 |
|
42 | 45 | # Drift Score Boost - These are symbols that get a score boost in the delist recommender
|
43 | 46 | DRIFT_SCORE_BOOST_SYMBOLS = {
|
44 |
| - "DRIFT-PERP", |
45 | 47 | }
|
46 | 48 |
|
47 | 49 | # Drift Score Boost Amount - The amount of score boost to apply to the symbols in DRIFT_SCORE_BOOST_SYMBOLS
|
|
95 | 97 |
|
96 | 98 | # Score boundaries for delist recommendations
|
97 | 99 | SCORE_UB = {0: 62, 3: 75, 5: 85, 10: 101} # Upper Bound: If score >= this, consider increasing leverage
|
98 |
| -SCORE_LB = {0: 0, 5: 37, 10: 48, 20: 60} # Lower Bound: If score < this, consider decreasing leverage/delisting |
| 100 | +SCORE_LB = {0: 0, 5: 31, 10: 48, 20: 60} # Lower Bound: If score < this, consider decreasing leverage/delisting |
99 | 101 |
|
100 | 102 | # Reference exchanges for market data
|
101 | 103 | REFERENCE_SPOT_EXCH = {
|
102 | 104 | 'coinbase', 'okx', 'gate', 'kucoin', 'mexc', 'kraken', 'htx'
|
103 | 105 | }
|
104 | 106 |
|
105 | 107 | REFERENCE_FUT_EXCH = {
|
106 |
| - 'okx', 'gate', 'mexc', 'htx', 'bitmex', 'bingx', 'xt' |
| 108 | + 'okx', 'gate', 'mexc', 'htx', 'bitmex', 'bingx' |
107 | 109 | }
|
108 | 110 |
|
109 | 111 | # Add a known decimals mapping before the get_drift_data function
|
@@ -811,7 +813,7 @@ def dl_cmc_data():
|
811 | 813 | logger.info("==> Fetching market cap data from CoinMarketCap")
|
812 | 814 |
|
813 | 815 | # Get API key from environment variables
|
814 |
| - cmc_api_key = os.environ.get("CMC_API_KEY") |
| 816 | + cmc_api_key = CMC_API_KEY # TODO: os.environ.get("CMC_API_KEY") |
815 | 817 | if not cmc_api_key:
|
816 | 818 | logger.error("==> CoinMarketCap API key is not set in .env file. Market cap data will not be available.")
|
817 | 819 | return None
|
|
0 commit comments