-
-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #378 from JJ-Cro/Update031024
feat(): added new endpoints
- Loading branch information
Showing
8 changed files
with
141 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
const { RestClientV5 } = require('bybit-api'); | ||
|
||
const client = new RestClientV5({ | ||
testnet: true, | ||
key: 'apikey', | ||
secret: 'apisecret', | ||
}); | ||
|
||
client | ||
.issueBrokerVoucher({ | ||
accountId: '2846381', | ||
awardId: '123456', | ||
specCode: 'award-001', | ||
amount: '100', | ||
brokerId: 'v-28478', | ||
}) | ||
.then((response) => { | ||
console.log(response); | ||
}) | ||
.catch((error) => { | ||
console.error(error); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
const { RestClientV5 } = require('bybit-api'); | ||
|
||
const client = new RestClientV5({ | ||
testnet: true, | ||
key: 'apikey', | ||
secret: 'apisecret', | ||
}); | ||
|
||
client | ||
.getBrokerVoucherSpec({ | ||
accountId: '5714139', | ||
awardId: '189528', | ||
specCode: 'demo000', | ||
withUsedAmount: false, | ||
}) | ||
.then((response) => { | ||
console.log(response); | ||
}) | ||
.catch((error) => { | ||
console.error(error); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
const { RestClientV5 } = require('bybit-api'); | ||
|
||
const client = new RestClientV5({ | ||
testnet: true, | ||
key: 'apikey', | ||
secret: 'apisecret', | ||
}); | ||
|
||
client | ||
.getBrokerIssuedVoucher({ | ||
id: '80209', | ||
}) | ||
.then((response) => { | ||
console.log(response); | ||
}) | ||
.catch((error) => { | ||
console.error(error); | ||
}); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters