@markocen/binance-api
v0.1.0
Published
Binance API library for node and browser
Downloads
2
Readme
Binance API library for Node.js and modern browser, supporting both Binance.com and Binance.us API calls. TypeScript declaration file included.
Binance RESTful API Docs: https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md Last Synced Commit: 9c797
Usage
RESTful API client
import { BinanceClient } from 'binance-api';
const client = BinanceClient.create({
apiKey: '...',
apiSecret: '...',
site: 'binance.com', // or binance.us
useServerTime: true,
});
client.getCurrentAvgPrice('BTCUSD').then((price) => {
console.log(price);
});
Development Status
RESTful API Client
- [x] General Info API
- [x] Public Market Data API
- [ ] User Data API
Websocket Stream Client
- [ ] Public Market Data API
- [ ] User Data API