Skip to main content

DEALER LOGIN API

This API needs to be used for signing-in to the application using login credentials. A successful sign-in will return a dealer_token, which must be included in the Authorization header for all subsequent API invocations.

This API is mandatory to access all dealer-authenticated endpoints.

🔑 Header Parameters

HeaderTypeDescriptionExample
Content-TypestringSpecifies the media type of the request payloadapplication/json
x-api-keystringAPI key used to authorize the request{{x-api-key}}

📑 Request Body Parameters

FieldTypeRequiredDescriptionExample / Enum
user_idstringYesDealer User ID"DEALER123"
passwordstringYesPassword to validate user"password123"
api_keystringYesAPI key provided by SynapseWave"xyz-api-key"
sourcestringYesLogin source of user"DEALERAPI"
versionstringNoApplication version"1.0.0"
build_versionstringNoInternal application version"100"

🟢 Success Response - 200 OK

Content-Type: application/json

FieldTypeDescriptionExample
statusstringStatus of API call"success"
codestringResponse code to user request"s-101"
messagestringSuccess message"Dealer session created successfully"
dataobjectUser login response payloadRefer to Data Object Fields

📦 Data Object Fields

FieldTypeDescriptionExample
dealer_tokenstringAuthentication token to be used with every subsequent request"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
user_namestringUser's name"John Dealer"
login_timestringUser's last login time"2025-01-01 10:00:00"
exchangesstring[]Exchanges allowed to user["NSE","BSE"]
bcastExchangesstring[]Exchanges allowed for market feed data["NSE"]
product_typesstring[]Product types allowed to user["CNC","MIS"]
product_types_exchangeobjectProduct types allowed exchange wise{"NSE":["CNC","MIS"]}
mpin_enabledbooleanFlag if user has registered MPINtrue / false
fingerprint_enabledbooleanFlag if user has registered fingerprinttrue / false
user_idstringUser Id (UCC)"DL12345"
othersobjectAdditional detailsRefer below

📘 Others Object Fields

FieldTypeDescriptionExample
messageSocketstringEndpoint of socket.io server for interactive messages"https://socket.example.com"
broadCastSocketstringEndpoint of WebSocket server for market feed data"wss://feed.example.com"
secondBroadCastSocketstring[]Other market feed server endpoints["wss://feed2.example.com"]
POAstringPOA status of user"0"
participantCodestringParticipant code for equities"PC123"
dervParticipantCodestringParticipant code for derivatives"DPC456"