Installation
npm install eterbase
This project is designed to help you make your own projects that interact with the Eterbase API in node.js. Eterbase is Europe's Premier Digital Asset Exchange, the first compliant cryptocurrency exchange in Europe with crypto to fiat banking. Sign up to Eterbase here.
Getting Started
async { const eterbase = ; // Load credentials from json: (accountId, key and secret) await eterbase; console; // Or authenticate manually: await eterbase; console;} ;
Examples
// Get all actively trading symbols:console; // Get price of all assets:console; // Get price of a specific asset:console; // Get all market IDs, asset precision, minimum orders and allowed order types:console; // Get total balances:console; // Market buy:console; // Limit buy:console; // Market sell:console; // Check open orders:console; // Get a list of all trades (fills)console; // Market depthconsole; // Download OHLC candlestick information:console;
WebSocket Examples
await eterbase; // Stream orderbook - snapshot is the current state of the order book and update messages is what is actually streamedeterbase; // Stream OHLCV - every new tick triggers the callbacketerbase; // Stream trades - every incoming trade triggers the callbacketerbase; // Stream of new orderseterbase;