sync fees from API. usdc. trade works
This commit is contained in:
57
check_eth_symbols.py
Normal file
57
check_eth_symbols.py
Normal file
@ -0,0 +1,57 @@
|
||||
import requests
|
||||
|
||||
# Check all available ETH trading pairs on MEXC
|
||||
try:
|
||||
# Get all trading symbols from MEXC
|
||||
resp = requests.get('https://api.mexc.com/api/v3/exchangeInfo')
|
||||
data = resp.json()
|
||||
|
||||
print('=== ALL ETH TRADING PAIRS ON MEXC ===')
|
||||
eth_symbols = []
|
||||
for symbol_info in data.get('symbols', []):
|
||||
symbol = symbol_info['symbol']
|
||||
status = symbol_info['status']
|
||||
if 'ETH' in symbol and status == 'TRADING':
|
||||
eth_symbols.append({
|
||||
'symbol': symbol,
|
||||
'baseAsset': symbol_info['baseAsset'],
|
||||
'quoteAsset': symbol_info['quoteAsset'],
|
||||
'status': status
|
||||
})
|
||||
|
||||
# Show all ETH pairs
|
||||
print(f'Total ETH trading pairs: {len(eth_symbols)}')
|
||||
for i, info in enumerate(eth_symbols[:20]): # Show first 20
|
||||
print(f' {i+1}. {info["symbol"]} ({info["baseAsset"]}/{info["quoteAsset"]}) - {info["status"]}')
|
||||
|
||||
if len(eth_symbols) > 20:
|
||||
print(f' ... and {len(eth_symbols) - 20} more')
|
||||
|
||||
# Check specifically for ETH as base asset with USDT
|
||||
print('\n=== ETH BASE ASSET PAIRS ===')
|
||||
eth_base_pairs = [s for s in eth_symbols if s['baseAsset'] == 'ETH']
|
||||
for pair in eth_base_pairs:
|
||||
print(f' - {pair["symbol"]} ({pair["baseAsset"]}/{pair["quoteAsset"]})')
|
||||
|
||||
# Check API symbols specifically
|
||||
print('\n=== CHECKING API TRADING AVAILABILITY ===')
|
||||
try:
|
||||
api_resp = requests.get('https://api.mexc.com/api/v3/defaultSymbols')
|
||||
api_data = api_resp.json()
|
||||
api_symbols = api_data.get('data', [])
|
||||
|
||||
print('ETH pairs available for API trading:')
|
||||
eth_api_symbols = [s for s in api_symbols if 'ETH' in s]
|
||||
for symbol in eth_api_symbols:
|
||||
print(f' ✅ {symbol}')
|
||||
|
||||
if 'ETHUSDT' in api_symbols:
|
||||
print('\n✅ ETHUSDT IS available for API trading!')
|
||||
else:
|
||||
print('\n❌ ETHUSDT is NOT available for API trading')
|
||||
|
||||
except Exception as e:
|
||||
print(f'Error checking API symbols: {e}')
|
||||
|
||||
except Exception as e:
|
||||
print(f'Error: {e}')
|
Reference in New Issue
Block a user