KiteNet - Bridge Functions

HowUTrade
@madhukar

GetEntryTradesBridge:
Category: Non-API Function
This function will return number of orders placed through Bridge with SignalType 'BUY' and 'SHORT'
It will not consider order status. So your order may be COMPLETE or CANCELLED or REJECTED.
Example Usage: You want maximum 2 entry/trades in a day for a symbol. You can refer this function before calling PlaceOrder
If(GetEntryTradesBridge(...) < 2, PlaceOrder(...), "MaxEntry")

GetMtmProduct Vs GetMtm:
Category: API Function
Assume, you bought 100 Qty of AXISBANK at 455.55 with Product Type "MIS" and Current PnL is Rs 200.00
and also bought 300 Qty of AXISBANK at 453.25 AM with Product Type "BO" and Current PnL is Rs 550.00

GetMtm will return combined/total PnL of a symbol across all product type i.e. in the above example will return Rs 750.00
GetMtmProduct will return combined/total PnL of a symbol with same product type i.e. in the above example,
GetMtmProduct(..."MIS") will return Rs 200.00
GetMtmProduct(..."BO") will return Rs 550.00

GetAvgBoughtPriceProduct & GetBoughtQtyProduct & NetQtyProduct:
Category: API Function
Same as GetMtmProduct. In the above example,
GetAvgBoughtPriceProduct(.."MIS") --> 455.55
GetAvgBoughtPriceProduct(.."BO") --> 453.25

GetBoughtQtyProduct(.."MIS") --> 100
GetBoughtQtyProduct(.."BO") --> 300

GetNetQtyProduct will return positive number if you have net Buy position and negative number if you have net Sell position and zero if Bought qty = sold qty;

Example:
Bought 100 Qty
GetNetQtyProduct --> 100
Sold 20 Qty
GetNetQtyProduct --> 80
Sold 80 Qty
GetNetQtyProduct --> 0
Sold 120 Qty
GetNetQtyProduct --> -120

GetOrderCTag:
Category: API Function
Manipulated internally/locally by KiteNet.
If you placed a order with unique CTag param, you can use that unique CTag to get the Order id later.
Refer this link for more details.

GetOrderVariety:
Category: API Function
Returns the variety (regular/amo/bo/co) of the order id passed.
  • shweta
    HI @MADUKAR, howutrade
    can you please develop a bridge between kite & ninja trader 7/8
    i m ready to pay for it
  • HowUTrade
    @shweta ,
    We don't have Ninja developer.
    If ninja trader supports COM, you can directly use KiteNet Bridge functions and fire orders.
    We read somewhere, it supports COM.
  • shweta
    shweta edited November 2018
    actually i am a trader only so required ready-made solution for connecting
  • madhukar
    @shweta basically i am PhD medical student , didn't know even Excel VBA few months back , and don't have Ninja subscription even if I were to try it! U can try yourself and learn through mistakes!
Sign In or Register to comment.