-
-
Notifications
You must be signed in to change notification settings - Fork 85
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 #359 from JJ-Cro/ReleaseNotes170724
v3.10.12: feat() Add convert endpoints, convert examples, small updates to request/response types
- Loading branch information
Showing
16 changed files
with
305 additions
and
10 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 |
---|---|---|
|
@@ -24,4 +24,5 @@ bundleReport.html | |
.history/ | ||
rawReq.ts | ||
localtest.sh | ||
localtest.ts | ||
|
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 | ||
.confirmConvertQuote({ | ||
quoteTxId: '10100108106409343501030232064', | ||
}) | ||
.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,16 @@ | ||
const { RestClientV5 } = require('bybit-api'); | ||
|
||
const client = new RestClientV5({ | ||
testnet: true, | ||
key: 'apikey', | ||
secret: 'apisecret', | ||
}); | ||
|
||
client | ||
.getConvertCoins({ accountType: 'eb_convert_spot' }) | ||
.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,16 @@ | ||
const { RestClientV5 } = require('bybit-api'); | ||
|
||
const client = new RestClientV5({ | ||
testnet: true, | ||
key: 'apikey', | ||
secret: 'apisecret', | ||
}); | ||
|
||
client | ||
.getConvertHistory() | ||
.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,19 @@ | ||
const { RestClientV5 } = require('bybit-api'); | ||
|
||
const client = new RestClientV5({ | ||
testnet: true, | ||
key: 'apikey', | ||
secret: 'apisecret', | ||
}); | ||
|
||
client | ||
.getConvertStatus({ | ||
quoteTxId: 'quoteTransactionId', | ||
accountType: 'eb_convert_funding', | ||
}) | ||
.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,23 @@ | ||
const { RestClientV5 } = require('bybit-api'); | ||
|
||
const client = new RestClientV5({ | ||
testnet: true, | ||
key: 'apikey', | ||
secret: 'apisecret', | ||
}); | ||
|
||
client | ||
.requestConvertQuote({ | ||
requestId: 'test-00002', | ||
fromCoin: 'ETH', | ||
toCoin: 'BTC', | ||
accountType: 'eb_convert_funding', | ||
requestCoin: 'ETH', | ||
requestAmount: '0.1', | ||
}) | ||
.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
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
Oops, something went wrong.