1.0.18 • Published 1 year ago
odin-marketfeed-api-new v1.0.18
ODIN API User Guide
ODIN Rest API allows the developer to create a custom trading application for Web or Mobile communicating with ODIN Order Management System (OMS). This REST based API allows user to develop the following functionalities for Trading Application / Portal.
Salient Features:
- User Authentication and Profile management
- Order Management
- Portfolio information management
Commands
To Install ODIN API, use:
npm install odinapi
Auth
// E6 Module
import { OdinAPI } from 'odinapi';
const ODIN = new OdinAPI({
apikey: 'YOUR_API_KEY',
log: true,
});
async login() {
try{
const response = await ODIN.Auth.login(data);
// Handle your response here
}catch(error){
// Handle your error here
}
}
// Module Js
const {OdinAPI} = require('odin-api');
const ODIN = new OdinAPI({
apikey: 'YOUR_API_KEY',
log: true,
});
ODIN.Auth.login(data).then((response)=>{
// Handle your response here
}).catch((error)=>{
// Handle your error here
})
Test ODIN API
Test ODIN API, use:
npm run test