Login

Login Request

The Bitnomial trading system requires a Connection to be provisioned in order to login. To provision a connection, visit the customer portal. ConnectionIDs are provided in a hex-encoded byte string that must be converted into a single uint64. AuthTokens are provided as hex-encoded byte strings.

A connection can simultaneously connect to a single order entry gateway and pricefeed instance but cannot connect to another order entry gateway or pricefeed at the same time.

Byte OffsetByte LengthTypeNameDescription
01charmessageTypeAlways L
18uint64connectionIdConnection ID
932byte[]authTokenShared secret
411uint8heartbeatIntervalHeartbeat interval in seconds
42

Login Heartbeat Interval

If the heartbeat interval is less than or equal to 5 seconds, a default value of 30 seconds will be used instead.

Logout Request

Byte OffsetByte LengthTypeNameDescription
01charmessageTypeAlways K
11charpersistOrdersCancel-on-disconnect is default (unused, reserved)
2

Login/out Reply

Login/out Ack

Byte OffsetByte LengthTypeNameDescription
01charmessageTypeAlways A
1

Login/out Reject

Byte OffsetByte LengthTypeNameDescription
01charmessageTypeAlways R
11uint8rejectReasonSee Login/out Reject Reason
2

Login/out Reject Reason

ValueReason
0x01No request received, didn't receive a login within 1 s
0x02Unauthorized
0x03Already logged in
0x04Bad protocol version

Start Trading

Trade US Perpetual Futures, Physical Futures, and Options on the Bitcoin Complex®, XRP, ETH, SOL, and more.