Menu
On this page

πŸ› οΈ Storm Trade SDKs

Storm ships two official SDKs. They cover different trading paths, so pick by the path your product needs, not only by language. Read Architecture & Concepts first if v2 and v3 are new to you.

JavaScript / TypeScriptGo
Package@storm-trade/trading-sdk on npmgithub.com/storm-trade/sdk-go
Sourcestorm-trade/sdk-jsstorm-trade/sdk-go
v3 Smart Account, signed intentsNoYes, storm/ package
v2 direct wallet transactionsYesYes, stormv2/ package
Wallet integrationTON Connect in the browser, or any @ton/ton wallet in Node.jstonutils-go wallet from a seed phrase
Market and limit orders, SL/TP, marginYesYes
Liquidity provide / withdrawYesNo
Deposits and withdrawals to a Smart AccountNot applicableYes
Sequencer, vAMM and vault read clientsData API and oracle clientsYes, low-level packages
Ready-made CLINocmd/example (v3) and cmd/v2example (v2)

🧭 Which One

  • Telegram bot, terminal or automated strategy on v3 with sub-second acceptance, builder attribution and prepaid gas: use the Go SDK. In other languages call the Trading API (V3) directly and follow the signing and query id rules from Architecture & Concepts.
  • Web front end where the user signs with their own wallet through TON Connect: use the JS SDK. It builds the v2 transaction payloads and hands them to the wallet.
  • Node.js service trading from a hot wallet on v2: either SDK works. The JS SDK returns transaction parameters you send with a @ton/ton wallet contract, the Go SDK sends them itself.
  • Read-only integrations such as dashboards and analytics do not need an SDK. Use the Data API and the Trading API read endpoints.

🌐 Environments

Both SDKs default to Stage, which runs against TON testnet. Move to Mainnet only after the flow works end to end.

StageMainnet
Data APIhttps://api.stage.stormtrade.dev/apihttps://api.storm.tg/api
Oraclehttps://oracle.stage.stormtrade.devhttps://oracle.storm.tg
TON RPChttps://testnet.toncenter.com/api/v2/jsonRPChttps://toncenter.com/api/v2/jsonRPC
Go SDK networkconfig.Testnetconfig.Mainnet

Both SDKs read the list of markets, vaults and contract addresses from the Data API config endpoints at startup, so you never hardcode contract addresses.


πŸ”’ Units

  • Leverage and prices are integers scaled by 10^9. 3x is 3_000_000_000, a price of 65 000 is 65_000_000_000_000.
  • v2 collateral amounts use the asset's own decimals: 6 for USDT, 9 for TON and NOT.
  • v3 order amounts use 9 decimals for every asset. Smart Account deposits and withdrawals use the asset's own decimals.
  • Position size and close size are in the base asset with 9 decimals.

πŸ†˜ Support

Report SDK bugs as issues in the matching repository: sdk-js or sdk-go. For integration questions use the Help & Support bot.

Last updated