Installation
npm install node-idex-api
This project is designed to help you make your own projects that interact with the IDEX API in node.js.
Getting Started
async { const idex = ; await idex; // Required // Load credentials from json: (apiKey and privateKey) let address = idex; // Or manually: await idex.auth( apiKey, privateKey ); console; console;} ;
Examples
// Get tickerconsole; // List all currenciesconsole; // Get your balancesconsole; // Get someone else's balanceconsole; // Get spreadconsole; // Get order bookconsole; // Cancel all ordersconsole; // Cancel just buy or sell ordersconsole; // Limit buyconsole; // Limit sellconsole; // Fill an orderconsole; // Cancel individual orderHashconsole; // Withdrawconsole;
Example: Get Top 10 highest volume symbols
let ticker = await idex; //last high low lowestAsk highestBid percentChange baseVolume quoteVolumelet sorted = idex;console;
Troubleshooting
Automatically 'throw' errors to reveal more information:
process;