Quick Start with TypeScript
This guide will walk you through the steps to set up and start using the dYdX API TypeScript library.
Install Node and npm
Choose and install node for your system.
Clone the dydx client repo
git clone https://github.com/dydxprotocol/v4-clients.gitRun an example
Go to the TypeScript client library.
cd v4-clients/v4-client-jsInstall and use required node version using nvm
nvm install
nvm useInstall and build the examples
npm install
npm run buildNow, we can run an example file. Let's run example/accounts_endpoint.js file.
node ../build/examples/account_endpoints.js