Expand description
§acta-maker-sdk
Rust SDK for Acta options market makers: WebSocket clients, quote signing and Solana funding instructions.
Managed clients handle authentication, reconnects, subscriptions and response correlation. Your application provides pricing and manages its orders and risk.
§Install
Requires Rust 1.89 or later.
[dependencies]
acta-maker-sdk = { version = "0.4.2", features = ["ws-client"] }Use MakerQuoteClient to submit, replace and cancel quotes, and MakerDataClient
to read maker state. Maker registration is required for authentication.
Default features are empty. Enable ws-client for WebSocket clients,
chain for Solana instruction builders, or chain-rpc for RPC helpers.
§Documentation
§License
MIT
Re-exports§
pub use error::ActaSdkError;pub use quote::QuoteBuildError;pub use quote::QuoteBuilder;pub use quote::RfqBinding;pub use types::PRICE_SCALE;pub use types::QuoteExpiry;pub use types::ids::Balance;pub use types::ids::ChainId;pub use types::ids::Decimals;pub use types::ids::DurationSeconds;pub use types::ids::MarketId;pub use types::ids::Nonce;pub use types::ids::OrderId;pub use types::ids::OrderVersion;pub use types::ids::PositionType;pub use types::ids::PositionTypeParseError;pub use types::ids::Price;pub use types::ids::Quantity;pub use types::ids::QuoteCount;pub use types::ids::RfqVersion;pub use types::ids::Slot;pub use types::ids::Strike;pub use types::ids::TimeoutSeconds;pub use types::ids::TradeCount;pub use types::ids::UserId;pub use types::ids::Volume;pub use types::invite::REFERRAL_CODE_MAX_LEN;pub use types::invite::REFERRAL_CODE_MIN_LEN;pub use types::invite::RESERVED_CODES;pub use types::invite::ReferralCode;pub use types::invite::ReferralCodeFormatError;pub use types::invite::TakerStatus;pub use types::invite::is_reserved;pub use ws::client::PreparedClientMessage;pub use ws::client::WsClient;pub use ws::client::WsTransportConfig;pub use ws::error::WsClientError;pub use ws::error::WsResult;pub use ws::error::WsTransportConfigError;pub use ws::maker::MakerClientError;pub use ws::maker::MakerDataClient;pub use ws::maker::MakerDataRequest;pub use ws::maker::MakerDataRequestError;pub use ws::maker::MakerQuoteClient;pub use ws::maker::MakerResponse;pub use ws::managed::GapPolicy;pub use ws::managed::MakerWsEndpoint;pub use ws::managed::ManagedInbound;pub use ws::managed::ManagedMessageReceiver;pub use ws::managed::ManagedReceiveError;pub use ws::managed::ManagedWsConfig;pub use ws::managed::ManagedWsConfigError;pub use ws::managed::ManagedWsError;pub use ws::managed::ManagedWsEvent;pub use ws::managed::ManagedWsHandle;pub use ws::managed::ManagedWsState;pub use ws::managed::ManagedWsTerminationReason;pub use ws::managed::OutboundMessageError;pub use ws::managed::SendAwaitError;pub use ws::managed::SendTicket;pub use ws::managed::WaitUntilReadyError;pub use ws::managed::normalize_maker_data_ws_url;pub use ws::managed::normalize_maker_ws_url;pub use ws::managed::normalize_maker_ws_url_for_endpoint;pub use ws::managed::spawn_managed_ws;pub use ws::types::ClientMessage;pub use ws::types::ServerMessage;pub use nonce::AtomicNonceGenerator;pub use nonce::NonceError;pub use nonce::NonceGenerator;pub use orders::BytesSigner;pub use orders::ORDER_DOMAIN_TAG;pub use orders::ORDER_ID_LEN;pub use orders::ORDER_PREIMAGE_LEN;pub use orders::OrderError;pub use orders::OrderPreimageArgs;pub use orders::SignerLike;pub use orders::build_order_preimage;pub use orders::compute_order_id;pub use orders::hash_order_preimage;pub use orders::order_id_hex;pub use orders::order_preimage_hex;pub use orders::sign_order_id_base58;pub use orders::sign_order_id_bytes;pub use orders::sign_order_id_from_base58_keypair;pub use orders::sign_order_id_with_async_signer;pub use orders::sign_order_id_with_signer;pub use orders::sign_order_id_with_signer_base58;pub use orders::verify_order_id_signature_base58;pub use orders::verify_order_id_signature_bytes;pub use signing::AsyncSignerLike;pub use signing::SigningError;pub use signing::SigningFuture;pub use wire::WireError;pub use wire::decode_base58_32;pub use wire::decode_base58_64;pub use wire::decode_hex_32;pub use wire::encode_base58;pub use wire::encode_hex;
Modules§
- chain
- error
- nonce
- orders
- quote
- Correct-by-construction quote assembly.
- signing
- types
- Domain values shared by WebSocket and chain APIs.
- wire
- ws