Skip to content

Commit

Permalink
Merge pull request #42 from tiagosiebler/fiximport
Browse files Browse the repository at this point in the history
v1.1.7: fix import error
  • Loading branch information
tiagosiebler authored Jan 12, 2024
2 parents 4d7086c + e8d5a4c commit 81619ea
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "okx-api",
"version": "1.1.6",
"version": "1.1.7",
"description": "Complete & robust Node.js SDK for OKX's REST APIs and WebSockets, with TypeScript & end-to-end tests",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/rest-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ import {
APIMarket,
Instrument,
PosMode,
PlaceAlgoOrderRequest,
AlgoOrderDetailsRequest,
AlgoOrderDetailsResult,
AmendAlgoOrderRequest,
AmendAlgoOrderResult,
AlgoOrderRequest,
} from './types';
import { ASSET_BILL_TYPE } from './constants';

Expand Down
12 changes: 4 additions & 8 deletions test/private.write.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ describe('Private REST API Endpoints (POST)', () => {
{
ordId: '12313123123',
sCode: '51503',
sMsg: expect.stringMatching(/modification.*exist/gim),
sMsg: expect.any(String),
},
],
expect.stringMatching(/failed/gim)
Expand Down Expand Up @@ -204,12 +204,12 @@ describe('Private REST API Endpoints (POST)', () => {
{
ordId: '12313123123',
sCode: '51503',
sMsg: expect.stringMatching(/modification.*exist/gim),
sMsg: expect.any(String),
},
{
ordId: '12313123124',
sCode: '51503',
sMsg: expect.stringMatching(/modification.*exist/gim),
sMsg: expect.any(String),
},
],
expect.stringMatching(/failed/gim)
Expand Down Expand Up @@ -568,11 +568,7 @@ describe('Private REST API Endpoints (POST)', () => {
expect(await api.setLendingRate('USDT', '1')).toBeFalsy();
} catch (e) {
expect(e).toMatchObject(
errorResponseObject(
'58008',
[],
expect.stringMatching(/have assets/gim)
)
errorResponseObject('50060', [], expect.any(String))
);
}
});
Expand Down

0 comments on commit 81619ea

Please sign in to comment.