bump node version, update readme, fix test code
This commit is contained in:
10
README.md
10
README.md
@@ -27,11 +27,11 @@ Node.js connector for the Bitget APIs and WebSockets:
|
|||||||
## Related projects
|
## Related projects
|
||||||
Check out my related projects:
|
Check out my related projects:
|
||||||
- Try my connectors:
|
- Try my connectors:
|
||||||
- [ftx-api](https://www.npmjs.com/package/ftx-api)
|
|
||||||
- [bybit-api](https://www.npmjs.com/package/bybit-api)
|
|
||||||
- [binance](https://www.npmjs.com/package/binance)
|
- [binance](https://www.npmjs.com/package/binance)
|
||||||
- [bitget-api](https://www.npmjs.com/package/bitget-api)
|
- [bybit-api](https://www.npmjs.com/package/bybit-api)
|
||||||
- [okx-api](https://www.npmjs.com/package/okx-api)
|
- [okx-api](https://www.npmjs.com/package/okx-api)
|
||||||
|
- [bitget-api](https://www.npmjs.com/package/bitget-api)
|
||||||
|
- [ftx-api](https://www.npmjs.com/package/ftx-api)
|
||||||
- Try my misc utilities:
|
- Try my misc utilities:
|
||||||
- [orderbooks](https://www.npmjs.com/package/orderbooks)
|
- [orderbooks](https://www.npmjs.com/package/orderbooks)
|
||||||
- Check out my examples:
|
- Check out my examples:
|
||||||
@@ -166,3 +166,7 @@ Or buy me a coffee using any of these:
|
|||||||
|
|
||||||
### Contributions & Pull Requests
|
### Contributions & Pull Requests
|
||||||
Contributions are encouraged, I will review any incoming pull requests. See the issues tab for todo items.
|
Contributions are encouraged, I will review any incoming pull requests. See the issues tab for todo items.
|
||||||
|
|
||||||
|
## Star History
|
||||||
|
|
||||||
|
[](https://star-history.com/#tiagosiebler/bitget-api&tiagosiebler/bybit-api&tiagosiebler/binance&tiagosiebler/orderbooks&tiagosiebler/okx-api&tiagosiebler/awesome-crypto-examples&tiagosiebler/ftx-api&Date)
|
||||||
|
|||||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "bitget-api",
|
"name": "bitget-api",
|
||||||
"version": "0.0.1",
|
"version": "0.9.0",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "bitget-api",
|
"name": "bitget-api",
|
||||||
"version": "0.0.1",
|
"version": "0.9.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^0.27.2",
|
"axios": "^0.27.2",
|
||||||
|
|||||||
@@ -2,16 +2,16 @@ export const API_ERROR_CODE = {
|
|||||||
SUCCESS: '00000',
|
SUCCESS: '00000',
|
||||||
INCORRECT_PERMISSIONS: '40014',
|
INCORRECT_PERMISSIONS: '40014',
|
||||||
ACCOUNT_NOT_COPY_TRADER: '40017',
|
ACCOUNT_NOT_COPY_TRADER: '40017',
|
||||||
|
FUTURES_POSITION_DIRECTION_EMPTY: '40017',
|
||||||
ACCOUNT_NOT_BROKER: '40029',
|
ACCOUNT_NOT_BROKER: '40029',
|
||||||
FUTURES_ORDER_GET_NOT_FOUND: '40109',
|
FUTURES_ORDER_GET_NOT_FOUND: '40109',
|
||||||
|
SERVICE_RETURNED_ERROR: '40725',
|
||||||
|
INSUFFICIENT_BALANCE: '40754',
|
||||||
FUTURES_ORDER_CANCEL_NOT_FOUND: '40768',
|
FUTURES_ORDER_CANCEL_NOT_FOUND: '40768',
|
||||||
PLAN_ORDER_NOT_FOUND: '43025',
|
|
||||||
QTY_LESS_THAN_MINIMUM: '43006',
|
QTY_LESS_THAN_MINIMUM: '43006',
|
||||||
ORDER_NOT_FOUND: '43001',
|
|
||||||
/** Parameter verification exception margin mode == FIXED */
|
/** Parameter verification exception margin mode == FIXED */
|
||||||
PARAMETER_EXCEPTION: '40808',
|
PARAMETER_EXCEPTION: '40808',
|
||||||
INSUFFICIENT_BALANCE: '40754',
|
ORDER_NOT_FOUND: '43001',
|
||||||
SERVICE_RETURNED_ERROR: '40725',
|
|
||||||
FUTURES_POSITION_DIRECTION_EMPTY: '40017',
|
|
||||||
FUTURES_ORDER_TPSL_NOT_FOUND: '43020',
|
FUTURES_ORDER_TPSL_NOT_FOUND: '43020',
|
||||||
|
PLAN_ORDER_NOT_FOUND: '43025',
|
||||||
} as const;
|
} as const;
|
||||||
|
|||||||
@@ -209,7 +209,7 @@ describe('Private Futures REST API POST Endpoints', () => {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
// expect(e).toBeNull();
|
// expect(e).toBeNull();
|
||||||
expect(e.body).toMatchObject({
|
expect(e.body).toMatchObject({
|
||||||
code: API_ERROR_CODE.SERVICE_RETURNED_ERROR,
|
code: API_ERROR_CODE.PLAN_ORDER_NOT_FOUND,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user