initial commit, add bitget rest api and websockets connector

This commit is contained in:
Tiago Siebler
2022-10-09 23:01:08 +01:00
commit 0f75ded05c
59 changed files with 15246 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import { SpotClient } from '../src/index';
// or
// import { SpotClient } from 'bitget-api';
const client = new SpotClient();
const symbol = 'BTCUSDT_SPBL';
(async () => {
try {
console.log('getCandles: ', await client.getCandles(symbol, '1min'));
} catch (e) {
console.error('request failed: ', e);
}
})();