Skip to content

Commit 5c67db4

Browse files
refactor: trading logic modification
to work only with USDC pairs
1 parent 30de364 commit 5c67db4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Trading-Automation/trading_automation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def patched_get_localzone():
3333
DUST_LIMIT = 0.4
3434

3535
MIN_MARKETCAP = 69_502
36-
MIN_VOLUME = 500_000
36+
MIN_VOLUME = 300_000
3737
MIN_VOLATILITY = 0.04
3838

3939
MIN_1M = 0.005 # 0.5% in 1m

Trading-Automation/update_symbols.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,12 @@ def fetch_symbol_data(client, symbol_info, cg_entry):
101101
return None
102102

103103
def update_btc_eth_pairs(client):
104-
target_symbols = ['BTCUSDT', 'ETHUSDT']
104+
target_symbols = ['BTCUSDC', 'ETHUSDC']
105105
data = {}
106-
print(f"\n[{datetime.now()}] Fetching BTCUSDT / ETHUSDT ...")
106+
print(f"\n[{datetime.now()}] Fetching BTCUSDC / ETHUSDC ...")
107107

108108
for symbol in target_symbols:
109-
base_asset = symbol.replace("USDT", "")
109+
base_asset = symbol.replace("USDC", "")
110110
cg_mapping = build_coingecko_mapping([base_asset])
111111
cg_entry = {}
112112
if cg_mapping:
@@ -116,7 +116,7 @@ def update_btc_eth_pairs(client):
116116
symbol_info = {
117117
'symbol': symbol,
118118
'baseAsset': base_asset,
119-
'quoteAsset': 'USDT',
119+
'quoteAsset': 'USDC',
120120
'status': 'TRADING'
121121
}
122122
symbol_data = fetch_symbol_data(client, symbol_info, cg_entry)

0 commit comments

Comments
 (0)