Swift Order Feed
Swift MM: receive signed taker orders off-chain over this websocket feed (before the order hits the JIT auction), then place-and-make on-chain. Makers can inspect the order (direction/size/auction params) and decide how to fill it.
Subscribe to Swift orders
import { SwiftOrderSubscriber } from "@drift-labs/sdk";Class SwiftOrderSubscriberReference ↗await swiftOrderSubscriber.subscribe(async (orderMessageRaw, signedMessage, isDelegateSigner) => {
// inspect signedMessage.signedMsgOrderParams
});Method SwiftOrderSubscriber.subscribeReference ↗Account getter (optional)
If you want to derive the taker’s UserAccount for downstream instructions, you can provide a userAccountGetter implementation to the subscriber (e.g. backed by UserMap).
import { UserMap } from "@drift-labs/sdk";Class UserMapReference ↗Last updated on