Get brokerage/charges of orders placed.

anishchauhan1
I want to get all the charges breakup for an order placed.
Is there any function/api for the same?
  • Sree
    You can check kite connect documentation for getting margins and charges https://kite.trade/docs/connect/v3/margins/#charges-structure
  • anishchauhan1
    Hi @Sree ,
    I went through this API, but my requirement is something like a file or API at the end of the day which provides us all the order ids (of placed orders from an account) and all kinds of brokerage charges for each.
    Or an API in which we pass the order id and get all the brokerage charges.
  • sujith
    sujith edited March 2023
    @anishchauhan1,
    We don't have an API like that. It is not possible to give the exact number until the trade process is done. Since there are a lot of variables and factors involved.
  • anishchauhan1
    Thanks, @sujith for the response,
    Can we have this information on T+1 day, like brokerage details of the orders we placed yesterday?

    Is there an API for the same?
  • sujith
    Kite Connect only has trading APIs, backoffice APIs aren't part of the Kite Connect.
    You will have to save the charges from margins API only and then use it.
  • anishchauhan1
    Ok, Thanks @sujith for quick response
  • raju_ns
    order_margins api returns different amount of charges for executed orders depending on the time of invocation. It doesn't seem to be considering the average_price passed to the api but seems to be taking current price of the instrument at the time of api call. Is this a known issue?
  • sujith
    sujith edited October 30
    @raju_ns,
    What type of order is that and what is the transaction type?

    Edit: Let us know the order type, product type, instrument name, order type, price/trigger price
  • sujith
    You are talking about virtual contract note or order margins API?
  • sujith
    You need to use this API.
  • raju_ns
    I have been using order_margins() api. What's the python api for virtual contract note?
  • sujith
    You can check the to method here.
  • raju_ns
    get_virtual_contract_note() api is working perfect. Is there a way to get all day's charges with single call instead of passing each order_id?
  • sujith
    It accepts list of orders, you can send input params for all orders at once. You can check out the example here.
Sign In or Register to comment.