Skip to main content

Binary Market Data (TCP) Snapshot

This section describes the implementation and protocol of the TCP Snapshot functionality present in the Binary Market Data Gateway.

Once a Snapshot has been received from a client the Binary Market Data Gateway will then perform a disconnect.

Authentication​

The login token is comprised of your username and passphrase and in your request should be passed in this format: username:passphrase.

Sequence Example​

Successful Login​

Rejected Login​

Protocol Definition​

OffsetLengthDescription
01Message Type
12Message Length

Snapshot Request​

OffsetLengthDescription
01Message Type (1)
12Message Length
3nLogin Token

Snapshot Request Accepted​

OffsetLengthDescription
01Message Type (2)
12Message Length

Snapshot Request Rejected​

OffsetLengthDescription
01Message Type (3)
12Message Length
31Rejected Reason

Rejected Reason Values​

Ascii ValueLength
'T'Bad Token
'A'Authentication Failure

Snapshot Header​

Indicates the start of a snapshot stream.

OffsetLengthDescription
01Message Type (4)
12Message Length

Snapshot Data Message​

OffsetLengthDescription
01Message Type (5)
12Message Length
3nPayload

Indicates the end of a snapshot stream.

OffsetLengthDescription
01Message Type (6)
12Message Length

Snapshot Session Start Message​

OffsetLengthDescription
01Message Type (8)
12Message Length
38Session ID