Skip to main content

Installation

First, we install kuru-sdk

Configure environment

Export your PRIVATE_KEY to use the examples
Never expose your private keys in your code, especially if the code is stored in version control systems accessible by others or if it’s deployed to shared or public servers.

Update config.json

config.json

Deposit into margin account

Place a limit buy

Placing a limit order. This consumes funds in your margin account.
import parseEvents for tracking orders created.
parseEvents

Next steps

Now that you have a basic set up in place, read all the functionality of the SDK: Order book Router