You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Failed to place market order. Error: 'Spot' object has no attribute 'newOrderTest'
Failed to place market order. Error: 'Spot' object has no attribute 'newOrder' also not working.
from mexc_sdk import Spot
Initialize the MEXC client with your API credentials
For example,
try:
if trade_id is not None:
sell_order_response = client.newOrderTest(symbol=symbol, side='SELL', orderType='MARKET', options={'quantity': initial_quantity})
sell_order_id = sell_order_response['orderId']
logger.info("Market sell order placed successfully. Order ID: %s", sell_order_id)
The text was updated successfully, but these errors were encountered:
Failed to place market order. Error: 'Spot' object has no attribute 'newOrderTest'
Failed to place market order. Error: 'Spot' object has no attribute 'newOrder' also not working.
from mexc_sdk import Spot
Initialize the MEXC client with your API credentials
client = Spot(api_key=api_key, api_secret=api_secret)
For example,
try:
if trade_id is not None:
sell_order_response = client.newOrderTest(symbol=symbol, side='SELL', orderType='MARKET', options={'quantity': initial_quantity})
sell_order_id = sell_order_response['orderId']
logger.info("Market sell order placed successfully. Order ID: %s", sell_order_id)
The text was updated successfully, but these errors were encountered: