Skip to content

Commit

Permalink
feat(): updated examples
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ-Cro committed Oct 16, 2024
1 parent 2c8d23f commit 69ae911
Show file tree
Hide file tree
Showing 577 changed files with 2,308 additions and 1,154 deletions.
6 changes: 4 additions & 2 deletions examples/apidoc/CoinMClient/cancelAllOpenOrders.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const { CoinMClient } = 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: dapi/v1/allOpenOrders
// METHOD: DELETE
// PUBLIC: NO
Expand All @@ -11,9 +13,9 @@ const client = new CoinMClient({
});

client.cancelAllOpenOrders(params)
.then(response => {
.then((response) => {
console.log(response);
})
.catch(error => {
.catch((error) => {
console.error(error);
});
6 changes: 4 additions & 2 deletions examples/apidoc/CoinMClient/cancelMultipleOrders.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const { CoinMClient } = 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: dapi/v1/batchOrders
// METHOD: DELETE
// PUBLIC: NO
Expand All @@ -11,9 +13,9 @@ const client = new CoinMClient({
});

client.cancelMultipleOrders(params)
.then(response => {
.then((response) => {
console.log(response);
})
.catch(error => {
.catch((error) => {
console.error(error);
});
6 changes: 4 additions & 2 deletions examples/apidoc/CoinMClient/cancelOrder.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const { CoinMClient } = 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: dapi/v1/order
// METHOD: DELETE
// PUBLIC: NO
Expand All @@ -11,9 +13,9 @@ const client = new CoinMClient({
});

client.cancelOrder(params)
.then(response => {
.then((response) => {
console.log(response);
})
.catch(error => {
.catch((error) => {
console.error(error);
});
6 changes: 4 additions & 2 deletions examples/apidoc/CoinMClient/closeFuturesUserDataListenKey.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const { CoinMClient } = 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: dapi/v1/listenKey
// METHOD: DELETE
// PUBLIC: YES
Expand All @@ -11,9 +13,9 @@ const client = new CoinMClient({
});

client.closeFuturesUserDataListenKey(params)
.then(response => {
.then((response) => {
console.log(response);
})
.catch(error => {
.catch((error) => {
console.error(error);
});
6 changes: 4 additions & 2 deletions examples/apidoc/CoinMClient/get24hrChangeStatistics.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const { CoinMClient } = 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: dapi/v1/ticker/24hr
// METHOD: GET
// PUBLIC: YES
Expand All @@ -11,9 +13,9 @@ const client = new CoinMClient({
});

client.get24hrChangeStatistics(params)
.then(response => {
.then((response) => {
console.log(response);
})
.catch(error => {
.catch((error) => {
console.error(error);
});
6 changes: 4 additions & 2 deletions examples/apidoc/CoinMClient/get24hrChangeStatististics.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const { CoinMClient } = 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: dapi/v1/ticker/24hr
// METHOD: GET
// PUBLIC: YES
Expand All @@ -11,9 +13,9 @@ const client = new CoinMClient({
});

client.get24hrChangeStatististics(params)
.then(response => {
.then((response) => {
console.log(response);
})
.catch(error => {
.catch((error) => {
console.error(error);
});
6 changes: 4 additions & 2 deletions examples/apidoc/CoinMClient/getADLQuantileEstimation.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const { CoinMClient } = 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: dapi/v1/adlQuantile
// METHOD: GET
// PUBLIC: NO
Expand All @@ -11,9 +13,9 @@ const client = new CoinMClient({
});

client.getADLQuantileEstimation(params)
.then(response => {
.then((response) => {
console.log(response);
})
.catch(error => {
.catch((error) => {
console.error(error);
});
6 changes: 4 additions & 2 deletions examples/apidoc/CoinMClient/getAccountComissionRate.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const { CoinMClient } = 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: dapi/v1/commissionRate
// METHOD: GET
// PUBLIC: NO
Expand All @@ -11,9 +13,9 @@ const client = new CoinMClient({
});

client.getAccountComissionRate(params)
.then(response => {
.then((response) => {
console.log(response);
})
.catch(error => {
.catch((error) => {
console.error(error);
});
6 changes: 4 additions & 2 deletions examples/apidoc/CoinMClient/getAccountInformation.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const { CoinMClient } = 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: dapi/v1/account
// METHOD: GET
// PUBLIC: NO
Expand All @@ -11,9 +13,9 @@ const client = new CoinMClient({
});

client.getAccountInformation(params)
.then(response => {
.then((response) => {
console.log(response);
})
.catch(error => {
.catch((error) => {
console.error(error);
});
6 changes: 4 additions & 2 deletions examples/apidoc/CoinMClient/getAccountTrades.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const { CoinMClient } = 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: dapi/v1/userTrades
// METHOD: GET
// PUBLIC: NO
Expand All @@ -11,9 +13,9 @@ const client = new CoinMClient({
});

client.getAccountTrades(params)
.then(response => {
.then((response) => {
console.log(response);
})
.catch(error => {
.catch((error) => {
console.error(error);
});
6 changes: 4 additions & 2 deletions examples/apidoc/CoinMClient/getAggregateTrades.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const { CoinMClient } = 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: dapi/v1/aggTrades
// METHOD: GET
// PUBLIC: YES
Expand All @@ -11,9 +13,9 @@ const client = new CoinMClient({
});

client.getAggregateTrades(params)
.then(response => {
.then((response) => {
console.log(response);
})
.catch(error => {
.catch((error) => {
console.error(error);
});
6 changes: 4 additions & 2 deletions examples/apidoc/CoinMClient/getAllOpenOrders.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const { CoinMClient } = 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: dapi/v1/openOrders
// METHOD: GET
// PUBLIC: NO
Expand All @@ -11,9 +13,9 @@ const client = new CoinMClient({
});

client.getAllOpenOrders(params)
.then(response => {
.then((response) => {
console.log(response);
})
.catch(error => {
.catch((error) => {
console.error(error);
});
6 changes: 4 additions & 2 deletions examples/apidoc/CoinMClient/getAllOrders.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const { CoinMClient } = 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: dapi/v1/allOrders
// METHOD: GET
// PUBLIC: NO
Expand All @@ -11,9 +13,9 @@ const client = new CoinMClient({
});

client.getAllOrders(params)
.then(response => {
.then((response) => {
console.log(response);
})
.catch(error => {
.catch((error) => {
console.error(error);
});
6 changes: 4 additions & 2 deletions examples/apidoc/CoinMClient/getBalance.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const { CoinMClient } = 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: dapi/v1/balance
// METHOD: GET
// PUBLIC: NO
Expand All @@ -11,9 +13,9 @@ const client = new CoinMClient({
});

client.getBalance(params)
.then(response => {
.then((response) => {
console.log(response);
})
.catch(error => {
.catch((error) => {
console.error(error);
});
6 changes: 4 additions & 2 deletions examples/apidoc/CoinMClient/getBrokerClientCustomIds.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const { CoinMClient } = 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: dapi/v1/apiReferral/customization
// METHOD: GET
// PUBLIC: NO
Expand All @@ -11,9 +13,9 @@ const client = new CoinMClient({
});

client.getBrokerClientCustomIds(params)
.then(response => {
.then((response) => {
console.log(response);
})
.catch(error => {
.catch((error) => {
console.error(error);
});
6 changes: 4 additions & 2 deletions examples/apidoc/CoinMClient/getBrokerIfNewFuturesUser.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const { CoinMClient } = 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: dapi/v1/apiReferral/ifNewUser
// METHOD: GET
// PUBLIC: NO
Expand All @@ -11,9 +13,9 @@ const client = new CoinMClient({
});

client.getBrokerIfNewFuturesUser(params)
.then(response => {
.then((response) => {
console.log(response);
})
.catch(error => {
.catch((error) => {
console.error(error);
});
6 changes: 4 additions & 2 deletions examples/apidoc/CoinMClient/getBrokerRebateDataOverview.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const { CoinMClient } = 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: dapi/v1/apiReferral/overview
// METHOD: GET
// PUBLIC: NO
Expand All @@ -11,9 +13,9 @@ const client = new CoinMClient({
});

client.getBrokerRebateDataOverview(params)
.then(response => {
.then((response) => {
console.log(response);
})
.catch(error => {
.catch((error) => {
console.error(error);
});
6 changes: 4 additions & 2 deletions examples/apidoc/CoinMClient/getBrokerRebateVolume.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const { CoinMClient } = 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: dapi/v1/apiReferral/rebateVol
// METHOD: GET
// PUBLIC: NO
Expand All @@ -11,9 +13,9 @@ const client = new CoinMClient({
});

client.getBrokerRebateVolume(params)
.then(response => {
.then((response) => {
console.log(response);
})
.catch(error => {
.catch((error) => {
console.error(error);
});
6 changes: 4 additions & 2 deletions examples/apidoc/CoinMClient/getBrokerTradeDetail.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const { CoinMClient } = 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: dapi/v1/apiReferral/traderSummary
// METHOD: GET
// PUBLIC: NO
Expand All @@ -11,9 +13,9 @@ const client = new CoinMClient({
});

client.getBrokerTradeDetail(params)
.then(response => {
.then((response) => {
console.log(response);
})
.catch(error => {
.catch((error) => {
console.error(error);
});
6 changes: 4 additions & 2 deletions examples/apidoc/CoinMClient/getBrokerUserCustomId.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const { CoinMClient } = 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: dapi/v1/apiReferral/userCustomization
// METHOD: GET
// PUBLIC: NO
Expand All @@ -11,9 +13,9 @@ const client = new CoinMClient({
});

client.getBrokerUserCustomId(params)
.then(response => {
.then((response) => {
console.log(response);
})
.catch(error => {
.catch((error) => {
console.error(error);
});
Loading

0 comments on commit 69ae911

Please sign in to comment.