-
-
Notifications
You must be signed in to change notification settings - Fork 272
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 #488 from JJ-Cro/master
v2.13.19 feat(): added new endpoints, updated types
- Loading branch information
Showing
13 changed files
with
629 additions
and
424 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 |
---|---|---|
|
@@ -8,4 +8,5 @@ yarn-error.log | |
lib/* | ||
testfile.ts | ||
privaterepotracker | ||
restClientRegex.ts | ||
restClientRegex.ts | ||
.DS_Store |
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
const { MainClient } = require('binance'); | ||
|
||
// This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange | ||
// This Binance API SDK is available on npm via "npm install binance" | ||
// ENDPOINT: sapi/v1/loan/vip/accruedInterest | ||
// METHOD: GET | ||
// PUBLIC: NO | ||
|
||
const client = new MainClient({ | ||
api_key: 'insert_api_key_here', | ||
api_secret: 'insert_api_secret_here', | ||
}); | ||
|
||
client.getVipLoanAccruedInterest(params) | ||
.then((response) => { | ||
console.log(response); | ||
}) | ||
.catch((error) => { | ||
console.error(error); | ||
}); |
20 changes: 20 additions & 0 deletions
20
examples/apidoc/MainClient/getVipLoanInterestRateHistory.js
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,20 @@ | ||
const { MainClient } = require('binance'); | ||
|
||
// This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange | ||
// This Binance API SDK is available on npm via "npm install binance" | ||
// ENDPOINT: sapi/v1/loan/vip/interestRateHistory | ||
// METHOD: GET | ||
// PUBLIC: NO | ||
|
||
const client = new MainClient({ | ||
api_key: 'insert_api_key_here', | ||
api_secret: 'insert_api_secret_here', | ||
}); | ||
|
||
client.getVipLoanInterestRateHistory(params) | ||
.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,20 @@ | ||
const { MainClient } = require('binance'); | ||
|
||
// This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange | ||
// This Binance API SDK is available on npm via "npm install binance" | ||
// ENDPOINT: sapi/v1/margin/order | ||
// METHOD: POST | ||
// PUBLIC: NO | ||
|
||
const client = new MainClient({ | ||
api_key: 'insert_api_key_here', | ||
api_secret: 'insert_api_secret_here', | ||
}); | ||
|
||
client.marginAccountNewOrder(params) | ||
.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,20 @@ | ||
const { MainClient } = require('binance'); | ||
|
||
// This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange | ||
// This Binance API SDK is available on npm via "npm install binance" | ||
// ENDPOINT: api/v3/order/cancelReplace | ||
// METHOD: POST | ||
// PUBLIC: NO | ||
|
||
const client = new MainClient({ | ||
api_key: 'insert_api_key_here', | ||
api_secret: 'insert_api_secret_here', | ||
}); | ||
|
||
client.replaceOrder(params) | ||
.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,20 @@ | ||
const { MainClient } = require('binance'); | ||
|
||
// This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange | ||
// This Binance API SDK is available on npm via "npm install binance" | ||
// ENDPOINT: api/v3/order | ||
// METHOD: POST | ||
// PUBLIC: NO | ||
|
||
const client = new MainClient({ | ||
api_key: 'insert_api_key_here', | ||
api_secret: 'insert_api_secret_here', | ||
}); | ||
|
||
client.submitNewOrder(params) | ||
.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,20 @@ | ||
const { MainClient } = require('binance'); | ||
|
||
// This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange | ||
// This Binance API SDK is available on npm via "npm install binance" | ||
// ENDPOINT: api/v3/orderList/oco | ||
// METHOD: POST | ||
// PUBLIC: NO | ||
|
||
const client = new MainClient({ | ||
api_key: 'insert_api_key_here', | ||
api_secret: 'insert_api_secret_here', | ||
}); | ||
|
||
client.submitNewOrderList(params) | ||
.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,20 @@ | ||
const { MainClient } = require('binance'); | ||
|
||
// This example shows how to call this Binance API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "binance" for Binance exchange | ||
// This Binance API SDK is available on npm via "npm install binance" | ||
// ENDPOINT: api/v3/order/test | ||
// METHOD: POST | ||
// PUBLIC: NO | ||
|
||
const client = new MainClient({ | ||
api_key: 'insert_api_key_here', | ||
api_secret: 'insert_api_secret_here', | ||
}); | ||
|
||
client.testNewOrder(params) | ||
.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