Files
sol-trade-sdk/examples/trading_client/README.md
2026-07-12 14:35:58 +08:00

517 B

Trading Client Construction

中文

Shows two client-construction patterns: TradingClient::new for one wallet and TradingClient::from_infrastructure for wallets sharing RPC and SWQoS clients.

This is a configuration template. Set PRIVATE_KEY, RPC, and every enabled provider credential; it initializes network clients but does not submit a trade.

cargo run --package trading_client

Initialize the client before subscribing to events. Do not construct it in a trading callback.