orderly-sdk-react-hooks
Installation
SKILL.md
Orderly Network: SDK React Hooks Reference
Reference for the hooks exported by @orderly.network/hooks. All signatures below are verified against the installed type definitions (SDK 3.1.x).
When to Use
- Building React applications with Orderly
- Quick reference for hook signatures and return values
- Implementing custom trading/account UI on top of the SDK
Prerequisites
- React 18+
@orderly.network/react-appand@orderly.network/hooksinstalledOrderlyAppProvider(from@orderly.network/react-app) wrapping your app
Hooks are provided by
@orderly.network/hooks, but they only work insideOrderlyAppProviderfrom@orderly.network/react-app(not@orderly.network/react).QueryClientProvideris managed internally byOrderlyAppProvider— do not add your own.