Error While Modifying and canceling amo orders in node js client

vivekvs
hi,
I am getting a message "too many requests " while trying to modify the amo orders during market hours, however with orders other than amo, it works perfectly rfine. The same issue is with cancellation of amo orders too .. kindly help
This is the order string i have provided to modify orders { "variety": "amo", "order_id": "210801100026153", "params": { "price": 415.1 } }
  • rakeshr
    "too many requests "
    As the error message states, you are exceeding the rate limit defined here, while making an API request. You need to debug this and add the required delay to be within the defined rate limit. Also, looks info there are multiple open connections.
  • vivekvs
    dear rakeshr, i have tried with only one order. still it fails
  • vivekvs
    order string amo 210803200015546 { price: 63.25 }SOME ERROR message: 'No response from server with error code: ECONNABORTED', error_type: 'NetworkException',
    data: null } sorry this is the error i am a getting . kindly attend
  • sujith
    Are you placing order before market and trying to modify after market opens?
  • sujith
    You can check on Kite web once, it won't be amo anymore once market opens.
  • vivekvs
    order string object
    order string amo 210803200015546 { price: 63.25 }
    SOME ERROR { message: 'No response from server with error code: ECONNABORTED',
    error_type: 'NetworkException',
    data: null }
  • vivekvs
    this is what i tried amo order trying to modify during market hours
  • vivekvs
    yess !!! i am placing before market hours and trying to modify during market hours
  • vivekvs
    cancel order error { status: 'error',
    message: 'request ccL767Acs9bU1n9uD4FwbLsp2g2A2Ijq timed out',
    data: null,
    error_type: 'NetworkException' }

    when i am trying to cancel an amo during market hours
  • vivekvs
    { status: 'error',
    message: 'request 3DH3ZBlCoFysoL51e8FhkMQGjSXy1S7x timed out',
    data: null,
    error_type: 'NetworkException' }

    when i tried variety as regular instead of amo , in updating a amo order during market hours
  • sujith
    After market opens, amo becomes regular order. You need to send the variety as regular in that case.
  • vivekvs
    cancel order error { status: 'error',
    message: 'Too many requests',
    error_type: 'NetworkException' }

    only one order i have placed
  • sujith
    sujith edited August 2021
    Can you check what is the status code?
    Is it 429?
    Also, we need more info on that specific amo order.
    Can you paste here the output of getOrderHistory(that amo order_id)?
Sign In or Register to comment.