feat(v4.1.3): full support for demo endpoints
This commit is contained in:
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "bybit-api",
|
"name": "bybit-api",
|
||||||
"version": "4.1.2",
|
"version": "4.1.3",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "bybit-api",
|
"name": "bybit-api",
|
||||||
"version": "4.1.2",
|
"version": "4.1.3",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^1.7.9",
|
"axios": "^1.7.9",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "bybit-api",
|
"name": "bybit-api",
|
||||||
"version": "4.1.2",
|
"version": "4.1.3",
|
||||||
"description": "Complete & robust Node.js SDK for Bybit's REST APIs and WebSockets, with TypeScript & strong end to end tests.",
|
"description": "Complete & robust Node.js SDK for Bybit's REST APIs and WebSockets, with TypeScript & strong end to end tests.",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"types": "lib/index.d.ts",
|
"types": "lib/index.d.ts",
|
||||||
|
|||||||
@@ -313,8 +313,27 @@ export class RestClientV5 extends BaseRestClient {
|
|||||||
return this.get('/v5/market/time');
|
return this.get('/v5/market/time');
|
||||||
}
|
}
|
||||||
|
|
||||||
requestDemoTradingFunds(): Promise<{}> {
|
/**
|
||||||
return this.postPrivate('/v5/account/demo-apply-money');
|
*
|
||||||
|
****** Demo Account APIs
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
requestDemoTradingFunds(params?: {
|
||||||
|
adjustType?: 0 | 1;
|
||||||
|
utaDemoApplyMoney?: Array<{
|
||||||
|
coin: string;
|
||||||
|
amountStr: string;
|
||||||
|
}>;
|
||||||
|
}): Promise<APIResponseV3<{}>> {
|
||||||
|
return this.postPrivate('/v5/account/demo-apply-money', params);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a demo trading account.
|
||||||
|
*/
|
||||||
|
createDemoAccount(): Promise<APIResponseV3<{ subMemberId: string }>> {
|
||||||
|
return this.postPrivate('/v5/user/create-demo-member');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user