Module swift_order_subscriber

Source

Re-exports§

pub use crate::types::SignedMsgOrderParamsDelegateMessage as SignedDelegateOrder;
pub use crate::types::SignedMsgOrderParamsMessage as SignedOrder;

Structs§

SignedMessageInfo
Common fields of signed message types
SignedOrderInfo
Swift order and metadata fresh from the Websocket

Enums§

SignedOrderType
It can be either signed by the authority keypair or an authorized delegate

Constants§

SWIFT_DEVNET_WS_URL
SWIFT_MAINNET_WS_URL

Functions§

deser_signed_msg_type
Deserialize hex-ified, borsh bytes as a SignedOrderType
subscribe_swift_orders
Subscribe to the Swift WebSocket server, authenticate, and listen to new orders

Type Aliases§

SwiftOrderStream
Emits swift orders from the Ws server