Both SDKs support V3 Smart Accounts and V2 wallet transactions. Choose your language:
| JavaScript / TypeScript | Go | |
|---|---|---|
| Guide | JavaScript SDK | Go SDK |
| Package | @storm-trade/trading-sdk | github.com/storm-trade/sdk-go |
| V3 entry point | /v3, available in 1.1.0 | storm |
| V2 entry point | /sdk | stormv2 |
| Source | sdk-js | sdk-go |
What they do
Both SDKs prepare and sign orders, submit them and read account state. They support market and limit orders, SL/TP, closing positions and changing margin.
For deposits and withdrawals, the JS SDK builds payloads for the owner wallet to send. The Go SDK provides account helpers. The JS SDK also supports V2 liquidity operations.
In JS, your application supplies the signer, reserves query IDs and saves prepared requests before sending. Start with the V3 example.
If you only need market data or trading history, use the API directly.
Before testing
Get testnet access during onboarding. Keep the SDK, API, TON RPC and contract addresses on the same network. See API networks.
V3 order amounts use 9 decimals. Deposits and withdrawals use token decimals. The guides show the units beside each example.
For integration questions, contact developer support. Report SDK bugs in sdk-js or sdk-go.