Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,188 changes: 598 additions & 590 deletions docs/endpointFunctionList.md

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions examples/apidoc/CoinMClient/cancelAlgoOrder.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { CoinMClient } from 'binance';
// or, if require is preferred:
// 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/algoOrder
// METHOD: DELETE
// PUBLIC: NO

const client = new CoinMClient({
api_key: 'insert_api_key_here',
api_secret: 'insert_api_secret_here',
});

client.cancelAlgoOrder(params)
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});
22 changes: 22 additions & 0 deletions examples/apidoc/CoinMClient/getOpenAlgoOrders.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { CoinMClient } from 'binance';
// or, if require is preferred:
// 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/openAlgoOrders
// METHOD: GET
// PUBLIC: NO

const client = new CoinMClient({
api_key: 'insert_api_key_here',
api_secret: 'insert_api_secret_here',
});

client.getOpenAlgoOrders(params)
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});
22 changes: 22 additions & 0 deletions examples/apidoc/CoinMClient/submitNewAlgoOrder.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { CoinMClient } from 'binance';
// or, if require is preferred:
// 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/algoOrder
// METHOD: POST
// PUBLIC: NO

const client = new CoinMClient({
api_key: 'insert_api_key_here',
api_secret: 'insert_api_secret_here',
});

client.submitNewAlgoOrder(params)
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});
22 changes: 22 additions & 0 deletions examples/apidoc/MainClient/borrowVipLoanFixedRate.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { MainClient } from 'binance';
// or, if require is preferred:
// 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/fixed/borrow
// METHOD: POST
// PUBLIC: NO

const client = new MainClient({
api_key: 'insert_api_key_here',
api_secret: 'insert_api_secret_here',
});

client.borrowVipLoanFixedRate(params)
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});
22 changes: 22 additions & 0 deletions examples/apidoc/MainClient/getInstitutionalLoanMaxBorrowable.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { MainClient } from 'binance';
// or, if require is preferred:
// 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/loan-group/max-borrowable
// METHOD: GET
// PUBLIC: NO

const client = new MainClient({
api_key: 'insert_api_key_here',
api_secret: 'insert_api_secret_here',
});

client.getInstitutionalLoanMaxBorrowable(params)
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});
22 changes: 22 additions & 0 deletions examples/apidoc/MainClient/getTravelRuleCountryList.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { MainClient } from 'binance';
// or, if require is preferred:
// 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/localentity/country/list
// METHOD: GET
// PUBLIC: NO

const client = new MainClient({
api_key: 'insert_api_key_here',
api_secret: 'insert_api_secret_here',
});

client.getTravelRuleCountryList(params)
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});
22 changes: 22 additions & 0 deletions examples/apidoc/MainClient/getTravelRuleRegionList.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { MainClient } from 'binance';
// or, if require is preferred:
// 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/localentity/region/list
// METHOD: GET
// PUBLIC: NO

const client = new MainClient({
api_key: 'insert_api_key_here',
api_secret: 'insert_api_secret_here',
});

client.getTravelRuleRegionList(params)
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});
22 changes: 22 additions & 0 deletions examples/apidoc/MainClient/getVipLoanFixedRateMarket.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { MainClient } from 'binance';
// or, if require is preferred:
// 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/fixed/market
// METHOD: GET
// PUBLIC: NO

const client = new MainClient({
api_key: 'insert_api_key_here',
api_secret: 'insert_api_secret_here',
});

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