Skip to content

Latest commit

History

8,097 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Orderly SDKs

DeepWikiHooks NPM VersionCore NPM VersionPerp NPM VersionWallet connector privy NPM VersionWallet connector NPM VersionTypes NPM VersionUI NPM VersionTrading NPM VersionI18n NPM Version

Monorepo for all Orderly SDKs. Please check out our documentation.

If you have any questions about the code in this repository, you can also ask deepwiki.

Getting Started

  1. Install dependencies:
pnpm install
  1. Start the development server:
pnpm dev
  1. Start the Storybook development server:
pnpm storybook

Integration Templates:

Start building with Orderly SDKs using these ready-to-use templates:

Env config

  • env

    config env: dev, qa, staging, prod

  • networkId

    mainnet/testnet

  • brokerId

    set your broker id

  • brokerName

    set broker name

  • walletMode

    privy (default), wallet, or legacy

http://localhost:5173/en/perp/PERP_ETH_USDC?env=prod&networkId=mainnet&brokerId=demo&broderName=Orderly&theme=orderly&walletMode=wallet

Wallet modes

The Vite playground reads the wallet mode from the URL when it first renders:

  • walletMode=privy uses the current wallet provider with Privy login enabled.
  • walletMode=wallet uses the current wallet provider with external wallets only.
  • walletMode=legacy uses the legacy Web3 Onboard provider in development.

For example:

http://localhost:5173/?walletMode=privy
http://localhost:5173/?walletMode=wallet
http://localhost:5173/?walletMode=legacy

Missing or invalid values default to privy. The legacy mode is only active in the Vite development environment; production builds fall back to privy. Reload the page after changing the mode. Switching modes does not clear sessions persisted by Privy, WalletConnect, or browser wallets.

About

A JS SDK for interactions with Orderly Network

Resources

Stars

19 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages