Skip to main content
Needs a key for this maker_id. Connecting and resuming are on Connection.

Subscribe

Don’t send open_rfqs: the maker snapshot always carries it, and a maker subscribe that sets it closes with INVALID_SUBSCRIPTION. A key receives only the frames its scopes allow:

Event

An RFQ stops taking quotes at expires_at, which sends no event. An RFQ opened with an intent, an automatic RFQ, carries intent_id and intent_generation on its RFQ_* events. The Totalis app opens its RFQs this way, and a taker can too. A newer intent_generation replaces the same intent’s earlier RFQs. Other RFQs carry neither.

Capital

With capital: true, the stream sends your capital as a capital frame. data is the same body as Get maker capital:
The example shows a few fields; a frame carries all of them. A frame arrives right after you subscribe, again when your capital changes (a fill, a hold from a quote, a deposit or a withdrawal), and at least every 5 seconds. Each is usually about a second behind the change. Keep the latest frame and check its MAKER_QUOTE action against it before you quote, instead of reading capital in your quote path. Check context.status too: treat anything but CURRENT as you would on the HTTP read. If no capital frame arrives for 15 seconds, read Get maker capital until one does. Capital frames are not events: they have no cursor and a replay doesn’t resend them.

Snapshot