sync fees from API. usdc. trade works
This commit is contained in:
31
check_api_symbols.py
Normal file
31
check_api_symbols.py
Normal file
@ -0,0 +1,31 @@
|
||||
import requests
|
||||
|
||||
# Check available API symbols
|
||||
try:
|
||||
resp = requests.get('https://api.mexc.com/api/v3/defaultSymbols')
|
||||
data = resp.json()
|
||||
print('Available API symbols:')
|
||||
api_symbols = data.get('data', [])
|
||||
|
||||
# Show first 10
|
||||
for i, symbol in enumerate(api_symbols[:10]):
|
||||
print(f' {i+1}. {symbol}')
|
||||
print(f' ... and {len(api_symbols) - 10} more')
|
||||
|
||||
# Check for common symbols
|
||||
test_symbols = ['ETHUSDT', 'BTCUSDT', 'MXUSDT', 'BNBUSDT']
|
||||
print('\nChecking test symbols:')
|
||||
for symbol in test_symbols:
|
||||
if symbol in api_symbols:
|
||||
print(f'✅ {symbol} is available for API trading')
|
||||
else:
|
||||
print(f'❌ {symbol} is NOT available for API trading')
|
||||
|
||||
# Find a good symbol to test with
|
||||
print('\nRecommended symbols for testing:')
|
||||
common_symbols = [s for s in api_symbols if 'USDT' in s][:5]
|
||||
for symbol in common_symbols:
|
||||
print(f' - {symbol}')
|
||||
|
||||
except Exception as e:
|
||||
print(f'Error: {e}')
|
Reference in New Issue
Block a user