Skip to main content

Crate bullet_rust_sdk

Crate bullet_rust_sdk 

Source

Re-exports§

pub use errors::SDKError;
pub use errors::SDKResult;
pub use errors::WSErrors;
pub use types::CallMessage;
pub use ws::client::WebsocketConfig;
pub use ws::client::WebsocketHandle;
pub use ws::managed::ManagedWebsocket;
pub use ws::managed::ManagedWsConfig;
pub use ws::managed::ManagedWsError;
pub use ws::managed::WsEvent;
pub use ws::models::ServerMessage;
pub use ws::topics::KlineInterval;
pub use ws::topics::OrderbookDepth;
pub use ws::topics::Topic;
pub use types::PublicAction;
pub use types::UserAction;

Modules§

codegen
errors
Error types for the SDK. Error types for the Trading SDK.
types
Re-export bullet_rollup types commonly used with the SDK.
ws

Structs§

AmendOrderArgs
ApiErrorResponse
Structured API error response matching Bullet API format.
CancelOrderArgs
Client
The main trading API client for REST operations.
ClientOrderId
Client-assigned order identifier. Wraps a u64.
Keypair
An Ed25519 keypair for signing transactions.
MarketId
Numeric market identifier. Wraps a u16.
NewOrderArgs
NewTriggerOrderArgs
NewTwapOrderArgs
OrderId
Exchange-assigned order identifier. Wraps a u64.
PendingTpslPair
PositiveDecimal
A decimal value that must be positive. Wraps rust_decimal::Decimal.
SubmitTxResponse
Response from submitting a transaction.
SymbolInfo
Symbol information cached from the exchange.
Tpsl
TpslPair
Transaction
Transaction construction and serialization.
UnsignedTransaction
An unsigned transaction with the chain hash baked in.

Enums§

CloseCode
Status code used to indicate why an endpoint is closing the WebSocket connection.1
Network
Known network environments.
OrderType
Order execution type.
Side
Order side. Bid = buy, Ask = sell.
UserActionDiscriminants
User action discriminants for schema validation filtering. Auto-generated discriminant enum variants

Traits§

NewOrderExt
Extension constructors for NewOrderArgs.