Market Api Login
Market API Login Users are required to provide their API keys during the login process. Upon successful authentication, a JSON Web Token (JWT) is issued, granting access to the API for a period of 24 hours. This JWT token serves as a secure and temporary authentication credential that users must include in the headers of their subsequent API requests. It ensures that each request is valid and authorized, offering both convenience and robust security measures to protect sensitive financial data. This seamless integration of authentication and token-based authorization enhances the overall user experience and safeguards the integrity of the financial data being accessed.
Method: POST
{{SERVER_URL}}/api/V2/marketData/auth/login/
Request Body: URL Encoded
Param | Value |
---|---|
appKey | app key generated for market data API |
secretKey | secret key generated for market data API |
source | Possible values : WebAPI |
Response: 200
{
"code": 200,
"description": "Provided valid credentials ",
"result": {
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6IkNUMDMwIiwiZXhwaXJ5IjoxNzE2MDMxMzYzLCJyb2xlIjowLCJpcF9hZGRyZXNzIjoiMTAuMC4wLjIiLCJpc19tYXJrZXRfZGF0YSI6dHJ1ZSwic2Vzc2lvbktleSI6IjR2RkdFRDQ4WjlwY3pWeEYzWVVoIiwidG9rZW5UeXBlIjowfQ.WvquIOc2nJGQaDhrT5k-sbZV1eqAz5zHOelpXB5dVuU",
"userID": "CT030"
},
"type": "success"
}