

Yes, you need to login every day, every time you start the application MO API maintains session token for 24 hours OR until logout is call whichever is earlier.
Yes,there will be a unique session token.
Token is generated only after a valid user login and its valid only for defined period of time, after which token will be invalid/expired. For any API other than login, you need to provide authentication tokenin request header to receive response.
Both login sessions are maintained separately. So, if you logged in to API you can login to Orion lite if you want, butitis not mandatory
You can use the same login credentials.
1. Place Order
2. ModifyOrder
3. CancelOrder
4. Order Book
5. OrderHistory
6. Index LTP Data
7. Trade Book
8. Net Positions
1. Normal
2. Delivery
3. Value plus (Intraday)
Trading APIs allows to integrate your own trading system with MO Trading Platform for placing orders and other account information.
We allowed 40 transactions per second (Order Place, Modify and cancel) &Rest 2 apis call per second
This is because you are not sending a valid token you have received in the login response in all subsequent message headers. You can calllogout or force disconnectthe application and re-login to fetch valid tokenand monitor its usage by adding sufficient logs.
NRML - Normal, it means you can carry forward positions.
Value plus - stands for Margin Intraday Square Off, user needs to square off compulsorily before end of trading session.
Youare either providing invalid USER ID or API Key
You are either providing invalid USER ID or password.
There are 2 platforms Vendor based & Self based. If clients are using self-based application than we request them to provide us with same day UAT order log once application is tested in UAT & if clients are using vendor based application than, they are requested to provide uswith the vendor name for further processing
You need to login on API portal to create the API.
Yes, need to send the email on tradingapi@motilaloswal.com for Vendor API activation only as per the below format. Live Enable JSON API Client ID – ANC001. AppName = TestApp.Vendorname - Xyz. APIKEY = abcdefgho.
NO, it will activate automatically after the creation of API.
Live login endpoint
https://invest.motilaloswal.com/OpenAPI/Login.aspx?apikey={apikey}
UAT login endpoint
http://uattrade.motilaloswal.com:83/OpenAPI/Login.aspx?apikey={apikey}
1.C#/.Net library
2.Phython
3.NodeJS
4.JAVA
Production: https://openapi.motilaloswal.com/rest/report/v1/getindexltpdata
UAT: https://uatopenapi.motilaloswal.com/rest/report/v1/getindexltpdata
Yes, UAT order logs are mandatory for activating for Vendor &Dealer API. Retail clients needs to drop down the mail to Trading api team for activation in case if they are using self-based application
It is available on the dashboard of portal.
Production: https://openapi.motilaloswal.com/rest/report/v1/getreportmargindetail
UAT: https://uatopenapi.motilaloswal.com/rest/report/v1/getreportmargindetail
Yes, you can getthe details in below format.
Production: https://openapi.motilaloswal.com/getscripmastercsv?name=NSEFO
UAT: https://uatopenapi.motilaloswal.com/getscripmastercsv?name=NSEFO
Allthe details of error code are mentioned inAPIdocumentation (Error Codes and Description) section.
Unknown / Sent / Confirm / Cancel / Partial / Traded / Rejected / Error
Live wss://openapi.motilaloswal.com/ws
UAT wss://uatopenapi.motilaloswal.com/ws
Production: https://openapi.motilaloswal.com/webhook
UAT: https://uatopenapi.motilaloswal.com/webhook
You can get the index data in below mentioned links
Production: https://openapi.motilaloswal.com/getindexdatacsv?name=NSE
UAT: https://uatopenapi.motilaloswal.com/getindexdatacsv?name=NSE
Yes
You can create multiple API keys in openAPI
We require details of the Vendor along with the undertaking consent form duly signed also we need below details such as:
Contact Name
Phone Number
Email id
Re-Direct URL
Call Back URL
Yes, consentismandatory before proceeding for generating of API key.
Unique identification number / TOTP is available on the MotilalOswal dashboard.
2FA - PAN (in Capital) OR Birth date in 'dd/mm/yyyy' format.
Vendor Tag Info in case of Vendor will be the short name of the vendor (ABC) which needs to be added in vendor field while building up the strategy. Vendor Tag Info in case of client will be the client code (abc123) which needs to be added in vendor field while building up the strategy.
Change the globalDNS IP & flush the DNS from command prompt. Command will be ipconfig /flushdns.
As per your documentation, it seems it should remain the same. However, in the UAT environment, every time I modify an order both LastModified and EntryDateTime get changed.
There is a sample mentioned in API documentation where all the detail parameters are mentioned that need to be entered in Header Parameter.
Call Back: The callback response is a server-to-server POST response that is sent (to a pre-defined HTTPS URL) with the
full detailed transaction (trade) information once the trade process came to an end (whether the customer cancels, paid, or failed to
trade). It doesn't depend on the customer's actions, the response will be sent anyway
Redirect URL: The redirect () static method of the Response interface returns a Response resulting in a redirect to the specified URL.
A redirect URI, or reply URL, is the location where the authorization server sends the user once the app has been successfully authorized
and granted an authorization code or access token
There is a sample mentioned in API documentation where all the detail parameters are mentioned for implementing the web socket
Many times get insufficient margin on Testing environment UAT, so need to assign margin on UAT environment
NO, Motilal Oswal does not provide Fund API.
It is valid for 1 day. (24 Hours)
API basically works with HTTPS protocol.
There is no separate API for the bulk orders.
One who wants to be the partner or integrate itself as a vendor with Motilal Oswal needs to sign the Undertaking form & provide a few details in the format shared by the Trading API team.
NSE: CM/CD/FO
BSE: CD/CM
MCX
NCDEX
VALUE PLUS can be used in product-type for intra-day.
PAN is not linked with Aadhar card.
Once retail users agree to the consent form & generate the API key. It will automatically get activated.
The order book will show all the data on the basis of the orders that will be placed
Limit , Market, Stop loss
Kindly enter the User id in CAPITAL LETTERS & date should be in DD/MM/YYYY format else if PAN details are being entered then they should be entered in CAPITAL LETTERS. Note: Kindly enter PAN NOor DOB in the 2FA Field.