Getting started
Follow the steps below to integrate the Orderly SDK into your project:
Add Basic Dependencies
Install the Base Component Libraries
Add Styles to Your Project
Reference the style file by adding the following code to your project:
Add a Global Configuration Provider
Wrap your application with the OrderlyAppProvider
component to set global configurations:
Add Wallet Connection
Orderly SDK provides a built-in wallet connection component supporting both EVM and Solana. Here’s how to integrate it:
Install Wallet Connector Dependencies
Add the WalletConnectorProvider Component
Wrap your application with the WalletConnectorProvider
for wallet connection functionality:
Alternatively, you can integrate third-party wallet libraries by implementing the WalletConnectorContextState
interface from @orderly.network/hooks
.
Add Pages
Page Layout
If you want to use the SDK’s built-in top navigation, side navigation, and other layout features, install the layout library:
Add the Scaffold component to your application:
For certain page components, the SDK also provides ready-made layout components. For example, you can directly import the layout for @orderly.network/portfolio
.
Page Components
The SDK includes the following page components:
Trading - @orderly.network/trading
Portfolio - @orderly.network/portfolio
Referral - @orderly.network/referral
Markets - @orderly.network/markets
Trading Rewards - @orderly.network/trading-rewards
Affiliate - @orderly.network/affiliate
You can integrate these with your preferred React routing framework. Here are examples for popular frameworks:
For detailed usage, refer to the Orderly Storybook.