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. RFQ_ACCEPTED arrives when the winning maker confirms, before the trade is on chain. If the trade then fails, RFQ_FAILED follows. Compare accepted_payout with your own quote on the same rfq_id to see what won. A lower payout can win when your quote had expired or had not arrived when the taker accepted.

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.freshness 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