Vendors API¶
Introduction¶
The vendor API is an innovative solution provided by Rmoney. Vendor APIs are usually used by technical companies to build innovative technical solutions and customised trading platforms to retail traders. Vendor API will enable vendors to create the Session for any user, who has authorized the app registered by Vendor. This way, the vendors do not have to manually get the API Key from users to generate session
Registration as a Vendor¶
To register as a Vendor, Please visit https://weblive.rmoneyindia.net/developers/#/
- Login as Vendor using your credentials. If new vendor, provide the required details to create Vendor account.
- In the Apps sections, click create app.
- Fill out the mandatory details; URL and Redirection URL will be
vendor call back URL. - Click "Save", enter your static IP address in Primary IPv4 field and Click Submit. In case of Algo vendor click save&Add Algo button, fill mandatory details and click Submit.
- The app will be activated by the Tradion Admin team after reviewing the details given by the Vendor. API access will be granted after necessary approval.
- Once Admin approves the app, An App Code (
appCode) and API Secret (apiSecret) will be provided to the Vendor via Email. Also it is available in developers portal. This code is important and confidential. Do not share it with anyone outside your organization.
Implementation of SSO¶
- During User login, the Vendor should redirect the Tradion user to https://weblive.rmoneyindia.net/?appcode=.along with the App Code as shown here in the url.
- User will be asked to login with their Tradion credentials.
- After sucessful login, the user will be redirected to the URL provided by the Vendor (Provisions to provide / update the Redirect URL is provided in the Developers Login) along with User Authorization token (authCode) and User ID (userId).
- The Vendor will save the user authCode, UserId (userId) along with apiSecret to create a checkSum, which is the SHA-256 hash of userId + authCode + apiSecret
- Vendor should send this checkSum to the URL :
https://weblive.rmoneyindia.net/open-api/od/v1/vendor/getUserDetailsto get the User Session (userSession), which can be used to access all API end points.