NIN API Docs
  • How to
    • 👨‍💻Getting Started
    • 🔐How to get API Keys?
    • Full API Documentation
    • 💻OpenAPI Reference (Trade)
      • Authentication
      • Instruments
      • Orders
      • Portfolio
      • Margin
      • WebSocket
      • Models
      • Error Handling
      • Limits on API Requests
  • Use Cases
  • Algo Developers
    • Implementing BTC Points
  • Coming Soon
    • Automations Protocol
    • 🧩Widget Integration
      • Widget (Onramp)
      • Widget (Offramp)
      • Request Token
      • Check Token
Powered by GitBook
On this page
  1. How to
  2. OpenAPI Reference (Trade)

Authentication

PreviousOpenAPI Reference (Trade)NextInstruments
💻

Generate access token

post
Authorizations
Body
api_keystringRequired
api_secretstringRequired
Responses
200
Access token generated
application/json
401
Invalid API credentials
post
POST /trade/v1/auth/token HTTP/1.1
Host: api.nin.in
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 38

{
  "api_key": "text",
  "api_secret": "text"
}
{
  "access_token": "text",
  "expires_in": 1
}