API documentation
Sign in

Reading account groups

Listing the account groups a connection can trade for, and why an empty list is not an error frame.

The one request that answers "which account groups may this connection trade for?". Send it after connecting and hold the result — accountGrpUuid on a price subscription and on an order is a uuid from this list.

An empty list is not an error frame. A failure to read your groups and a genuine absence of them are the same message: accountGroups arrives empty, with RFS100016 in code, and you cannot tell the two apart from the wire. Treat it as "ask your desk", not as "retry until it works".

Request

Sent as messageType: "accountGroups". It carries nothing else — the groups are resolved from the credential the socket authenticated with.

Not rate limited. The gateway's limiter keys only on subscribe and order.

FieldTypeRequiredNotes
messageTypestringRequiredAlways accountGroups on this message. It is how the gateway picks the message type
chanIdstringSet by the gateway to your connection identifier. Anything you send is discarded
authUserUUIDstringSet by the gateway from your credential. Anything you send is discarded

Response

Sent as messageType: "accountGroups", once per request. Failures arrive on this message rather than as an error frame.

FieldTypeNotes
messageTypestringAlways accountGroups
messagestringPlease contact your desk support., set alongside code
codestringRFS100016 when accountGroups is empty, and absent otherwise. There is no success code
accountGroupsAccountGroup[]Your groups. Empty when there are none to return, for either reason
chanIdstringThe connection the message was delivered on, echoed from your request
timestampintegerWhen the gateway produced this message, in milliseconds

AccountGroup

FieldTypeNotes
uuidstringWhat you send as accountGrpUuid on a subscription or an order
namestringThe group's label, for display. Do not key anything on it

We use cookies to improve your experience and analyse site traffic. Cookie policy