-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.json.dist
159 lines (159 loc) · 4.61 KB
/
config.json.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
{
"runtime": {
"strategies": {
"whale_buy": {
"whale_wallet_value_threshold_usd": 250000,
"whale_total_threshold_usd": 1000000,
"whale_token_market_percent": 0.5,
"lookup_token_buy_whales": 3,
"lookup_token_buy_time": 259200,
"gbq_table": "WhaleBuySellStrategy"
}
},
"utils": {
"request": {
"max_tries": 5
},
"selenium": {
"max_tries": 5
},
"pandas": {
"tokens_df_refresh_interval": 60,
"tokens_holders_df_refresh_interval": 60
},
"txqueue": {
"max_queue_ttl": 3600
}
},
"extractors": {
"enabled": [
"com.cryptobot.extractors.tokens.TokensExtractor",
"com.cryptobot.extractors.token_holders.TokenHoldersExtractor",
"com.cryptobot.extractors.mempool.MempoolExtractor"
],
"token_holders": {
"max_token_addresses": 100,
"max_holders_pages": 5,
"refresh_interval_secs": 86400
},
"tokens": {
"refresh_interval_secs": 30,
"max_coingecko_pages": 54,
"coingecko_page_interval": 3.5,
"coinmarketcap_listings_interval": 7200
},
"mempool": {
"classifiers": [
"com.cryptobot.classifiers.mempool_whale_tx.MempoolWhaleTXClassifier",
"com.cryptobot.classifiers.swap.SwapClassifier"
],
"subscriptions": {
"transactions": "alchemy_pendingTransactions"
}
}
},
"classifiers": {
"SwapClassifier": {
"max_concurrent_threads": 5
},
// "TXClassifier": {
// "tx_root_key": "transaction"
// },
"MempoolWhaleTXClassifier": {
"min_wallet_alloc_usd": 50000
}
},
"traders": {
"max_concurrent_runs": 5
},
"schemas": {
"address": {
"portfolio_stats_cache_timeout": 900,
"balances_cache_timeout": 14400
},
"token": {
"metadata_ttl": 900,
"price_usd_ttl": 900,
"market_cap_ttl": 604800
}
}
},
"redis": {
"host": "127.0.0.1",
"port": 6379
},
"selenium": {
"chromedriver_path": "/home/nico/dev/chromedriver"
},
"web3": {
"chain_id": "mainnet",
"providers": {
"infura": {
"http": "https://mainnet.infura.io/v3/XXXX",
"wss": "wss://mainnet.infura.io/ws/v3/XXXX"
},
"archivenode": {
"http": "https://api.archivenode.io/XXXX"
},
"alchemy": {
"wss": "wss://eth-mainnet.g.alchemy.com/v2/{api_key}",
"http": "https://eth-mainnet.g.alchemy.com/v2/{api_key}",
"api_keys": [
"XXXX"
]
}
}
},
"endpoints": {
"alchemy": {
"api": "https://eth-mainnet.alchemyapi.io/v2/{api_key}"
},
"coingecko": {
"coins": "https://api.coingecko.com/api/v3/coins",
"markets": "https://api.coingecko.com/api/v3/coins/markets",
"price": "https://api.coingecko.com/api/v3/simple/price",
"ohlc": "https://api.coingecko.com/api/v3/coins/{coin_id}/ohlc?vs_currency=usd&days={days}"
},
"coinmarketcap": {
"api_key": "XXXX",
"listings_latest": "https://pro-api.coinmarketcap.com/v1/cryptocurrency/listings/latest"
},
"ftx": {
"markets": "https://ftx.com/api/markets",
"coins": "https://ftx.com/api/wallet/coins",
"lending": "https://ftx.com/api/spot_margin/lending_rates"
},
"etherscan": {
"tx": "https://etherscan.io/tx/{0}",
"token": "https://etherscan.io/token/{address}",
"tokens": "https://etherscan.io/tokens",
"api": "https://api.etherscan.io/api",
"api_key": "XXXX",
"api_calls_per_sec": 5,
"accounts": "https://etherscan.io/accounts",
"token_holders": "https://etherscan.io/token/generic-tokenholders2?m=normal&a={0}&s=40424999781259550&sid=b3f9fe67a3e82db021f7ba44682f4bdf0&p={1}",
"abis": "https://api.etherscan.io/api?module=contract&action=getabi&address={0}&apikey={1}"
},
"ethplorer": {
"api_key": "XXXX",
"token_info": "https://api.ethplorer.io/getTokenInfo/{address}?apiKey={api_key}",
"address_info": "https://api.ethplorer.io/getAddressInfo/{address}?apiKey={api_key}"
},
"polygonscan": {
"api_key": "XXXX"
},
"arbitrumscan": {
"contract_abi": "https://api.arbiscan.io/api?module=contract&action=getabi&address={0}",
"api_key": "XXXX"
},
"portals": {
"tokens": "https://api.portals.fi/v2/tokens",
"account": "https://api.portals.fi/v2/account"
}
},
"gbq": {
"project_id": "XXXX",
"dataset_id": "trading_bot_data",
"service_credentials": "dev/gcloud-credentials.json"
}
}