Skip to content

Commit

Permalink
testing regex
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ-Cro committed Oct 15, 2024
1 parent 4d9cade commit 039c43d
Show file tree
Hide file tree
Showing 581 changed files with 11,553 additions and 578 deletions.
1,154 changes: 577 additions & 577 deletions docs/endpointFunctionList.md

Large diffs are not rendered by default.

Binary file added examples/allCalls.rar
Binary file not shown.
19 changes: 19 additions & 0 deletions examples/allCalls/COINMClient/cancelAllOpenOrders.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const { CoinMClient } = require('binance');

// ENDPOINT: dapi/v1/allOpenOrders
// METHOD: DELETE
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L364

const client = new CoinMClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});

client.cancelAllOpenOrders({/* Add necessary parameters here */})
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});
19 changes: 19 additions & 0 deletions examples/allCalls/COINMClient/cancelMultipleOrders.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const { CoinMClient } = require('binance');

// ENDPOINT: dapi/v1/batchOrders
// METHOD: DELETE
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L344

const client = new CoinMClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});

client.cancelMultipleOrders({/* Add necessary parameters here */})
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});
19 changes: 19 additions & 0 deletions examples/allCalls/COINMClient/cancelOrder.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const { CoinMClient } = require('binance');

// ENDPOINT: dapi/v1/order
// METHOD: DELETE
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L340

const client = new CoinMClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});

client.cancelOrder({/* Add necessary parameters here */})
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});
19 changes: 19 additions & 0 deletions examples/allCalls/COINMClient/closeFuturesUserDataListenKey.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const { CoinMClient } = require('binance');

// ENDPOINT: dapi/v1/listenKey
// METHOD: DELETE
// PUBLIC: YES
// Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L631

const client = new CoinMClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});

client.closeFuturesUserDataListenKey({/* Add necessary parameters here */})
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});
19 changes: 19 additions & 0 deletions examples/allCalls/COINMClient/get24HrChangeStatistics.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const { CoinMClient } = require('binance');

// ENDPOINT: dapi/v1/ticker/24hr
// METHOD: GET
// PUBLIC: YES
// Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L203

const client = new CoinMClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});

client.get24hrChangeStatistics({/* Add necessary parameters here */})
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});
19 changes: 19 additions & 0 deletions examples/allCalls/COINMClient/get24HrChangeStatististics.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const { CoinMClient } = require('binance');

// ENDPOINT: dapi/v1/ticker/24hr
// METHOD: GET
// PUBLIC: YES
// Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L197

const client = new CoinMClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});

client.get24hrChangeStatististics({/* Add necessary parameters here */})
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});
19 changes: 19 additions & 0 deletions examples/allCalls/COINMClient/getAccountComissionRate.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const { CoinMClient } = require('binance');

// ENDPOINT: dapi/v1/commissionRate
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L444

const client = new CoinMClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});

client.getAccountComissionRate({/* Add necessary parameters here */})
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});
19 changes: 19 additions & 0 deletions examples/allCalls/COINMClient/getAccountInformation.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const { CoinMClient } = require('binance');

// ENDPOINT: dapi/v1/account
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L450

const client = new CoinMClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});

client.getAccountInformation({/* Add necessary parameters here */})
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});
19 changes: 19 additions & 0 deletions examples/allCalls/COINMClient/getAccountTrades.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const { CoinMClient } = require('binance');

// ENDPOINT: dapi/v1/userTrades
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L397

const client = new CoinMClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});

client.getAccountTrades({/* Add necessary parameters here */})
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});
19 changes: 19 additions & 0 deletions examples/allCalls/COINMClient/getAdlQuantileEstimation.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const { CoinMClient } = require('binance');

// ENDPOINT: dapi/v1/adlQuantile
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L419

const client = new CoinMClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});

client.getADLQuantileEstimation({/* Add necessary parameters here */})
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});
19 changes: 19 additions & 0 deletions examples/allCalls/COINMClient/getAggregateTrades.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const { CoinMClient } = require('binance');

// ENDPOINT: dapi/v1/aggTrades
// METHOD: GET
// PUBLIC: YES
// Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L147

const client = new CoinMClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});

client.getAggregateTrades({/* Add necessary parameters here */})
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});
19 changes: 19 additions & 0 deletions examples/allCalls/COINMClient/getAllOpenOrders.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const { CoinMClient } = require('binance');

// ENDPOINT: dapi/v1/openOrders
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L385

const client = new CoinMClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});

client.getAllOpenOrders({/* Add necessary parameters here */})
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});
19 changes: 19 additions & 0 deletions examples/allCalls/COINMClient/getAllOrders.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const { CoinMClient } = require('binance');

// ENDPOINT: dapi/v1/allOrders
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L381

const client = new CoinMClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});

client.getAllOrders({/* Add necessary parameters here */})
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});
19 changes: 19 additions & 0 deletions examples/allCalls/COINMClient/getBalance.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const { CoinMClient } = require('binance');

// ENDPOINT: dapi/v1/balance
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L440

const client = new CoinMClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});

client.getBalance({/* Add necessary parameters here */})
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});
19 changes: 19 additions & 0 deletions examples/allCalls/COINMClient/getBrokerClientCustomIds.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const { CoinMClient } = require('binance');

// ENDPOINT: dapi/v1/apiReferral/customization
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L534

const client = new CoinMClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});

client.getBrokerClientCustomIds({/* Add necessary parameters here */})
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});
19 changes: 19 additions & 0 deletions examples/allCalls/COINMClient/getBrokerIfNewFuturesUser.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const { CoinMClient } = require('binance');

// ENDPOINT: dapi/v1/apiReferral/ifNewUser
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L508

const client = new CoinMClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});

client.getBrokerIfNewFuturesUser({/* Add necessary parameters here */})
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});
19 changes: 19 additions & 0 deletions examples/allCalls/COINMClient/getBrokerRebateDataOverview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const { CoinMClient } = require('binance');

// ENDPOINT: dapi/v1/apiReferral/overview
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L560

const client = new CoinMClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});

client.getBrokerRebateDataOverview({/* Add necessary parameters here */})
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});
19 changes: 19 additions & 0 deletions examples/allCalls/COINMClient/getBrokerRebateVolume.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const { CoinMClient } = require('binance');

// ENDPOINT: dapi/v1/apiReferral/rebateVol
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L586

const client = new CoinMClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});

client.getBrokerRebateVolume({/* Add necessary parameters here */})
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});
19 changes: 19 additions & 0 deletions examples/allCalls/COINMClient/getBrokerTradeDetail.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const { CoinMClient } = require('binance');

// ENDPOINT: dapi/v1/apiReferral/traderSummary
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L603

const client = new CoinMClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});

client.getBrokerTradeDetail({/* Add necessary parameters here */})
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});
19 changes: 19 additions & 0 deletions examples/allCalls/COINMClient/getBrokerUserCustomId.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const { CoinMClient } = require('binance');

// ENDPOINT: dapi/v1/apiReferral/userCustomization
// METHOD: GET
// PUBLIC: NO
// Link to function: https://github.com/tiagosiebler/binance/blob/master/src/coinm-client.ts#L551

const client = new CoinMClient({
apiKey: 'insert_api_key_here',
apiSecret: 'insert_api_secret_here',
});

client.getBrokerUserCustomId({/* Add necessary parameters here */})
.then(response => {
console.log(response);
})
.catch(error => {
console.error(error);
});
Loading

0 comments on commit 039c43d

Please sign in to comment.