How To Guide for Package
Native Functions/Methods available in package.
- Most of these functions are self explanatory in nature. However, a simple explanations is mentioned for them.
-
The Trading API gives the user access to
- interactive_login: Send the login url to which a user should receive the token.
- get_order_book: Request order book gives states of all the orders placed by an user.
- get_dealer_orderbook: No idea, figure it out yourself!
- place_order: To place an order.
- place_bracketorder: To place a bracketorder.
- get_profile: Using session token user can access his profile stored with the broker.
- get_balance: Get balance API call grouped under this category information related to limits on equities, derivative, upfront margin, available exposure and other RMS related balances available to the user.
- modify_order: The facility to modify your open orders by allowing you to change limit order to market or vice versa, change price or quantity of the limit open order, change disclosed quantity or stop-loss of any open stop loss order.
- get_trade: Trade book returns a list of all trades executed on a particular day, that were placed by the user. The trade book will display all filled and partially filled orders.
- get_dealer_tradebook: Trade book returns a list of all trades executed on a particular day, that were placed by the user. The trade book will display all filled and partially filled orders.
- get_holding: Holdings API call enable users to check their long term holdings with the broker.
- bracketorder_cancel: This API can be called to cancel any open order of the user by providing correct appOrderID matching with the chosen open order to cancel.
- get_dealerposition_netwise: The positions API positions by net. Net is the actual, current net position portfolio.
- get_dealerposition_daywise: The positions API returns positions by day, which is a snapshot of the buying and selling activity for that particular day.
- get_position_daywise: The positions API returns positions by day, which is a snapshot of the buying and selling activity for that particular day.
- get_position_netwise: The positions API positions by net. Net is the actual, current net position portfolio.
- convert_position: Convert position API, enable users to convert their open positions from NRML intra-day to Short term MIS or vice versa, provided that there is sufficient margin or funds in the account to effect such conversion.
- cancel_order: This API can be called to cancel any open order of the user by providing correct appOrderID matching with the chosen open order to cancel.
- cancelall_order: This API can be called to cancel all open order of the user by providing exchange segment and exchange instrument ID.
- place_cover_order: A Cover Order is an advance intraday order that is accompanied by a compulsory Stop Loss Order. This helps users to minimize their losses by safeguarding themselves from unexpected market movements. A Cover Order offers high leverage and is available in Equity Cash, Equity F&O, Commodity F&O and Currency F&O segments. It has 2 orders embedded in itself, they are Limit/Market Order Stop Loss Order.
- exit_cover_order: Exit Cover API is a functionality to enable user to easily exit an open stoploss order by converting it into Exit order.
- squareoff_position: User can request square off to close all his positions in Equities, Futures and Option. Users are advised to use this request with caution if one has short term holdings.
- get_order_history: Order history will provide particular order trail chain. This indicate the particular order & its state changes. i.e.Pending New to New, New to PartiallyFilled, PartiallyFilled, PartiallyFilled & PartiallyFilled to Filled etc.
- interactive_logout: This call invalidates the session token and destroys the API session. After this, the user should go through login flow again and extract session token from login response before further activities.
-
The Market Data API gives the user access to
- marketdata_login: Send the login url to which a user should receive the token.
- get_config: Get the configuration of the client.
- get_quote: Get the quote of the instrument.
- send_subscription: Send subscription for the instrument.
- send_unsubscription: Send unsubscription for the instrument.
- get_master: Get the master string.
- get_ohlc: Get the OHLC of the instrument.
- get_series: Get the series of the exchange segment.
- get_equity_symbol: Get the equity symbol of the exchange segment.
- get_expiry_date: Get the expiry date of the exchange segment.
- get_future_symbol: Get the future symbol of the exchange segment.
- get_option_symbol: Get the option symbol of the exchange segment.
- get_option_type: Get the option type of the exchange segment.
- get_index_list: Get the index list of the exchange segment.
- search_by_instrumentid: Search by instrument id.
- search_by_scriptname: Search by script name.
- marketdata_logout: This call invalidates the session token and destroys the API session.