feat(): Added all missing examples
This commit is contained in:
21
examples/apidoc/V5/Institutional-Loan/bind-or-unbind-uid.js
Normal file
21
examples/apidoc/V5/Institutional-Loan/bind-or-unbind-uid.js
Normal file
@@ -0,0 +1,21 @@
|
||||
// https://api.bybit.com/v5/ins-loan/association-uid
|
||||
|
||||
const { RestClientV5 } = require('bybit-api');
|
||||
|
||||
const client = new RestClientV5({
|
||||
testnet: true,
|
||||
key: 'apikey',
|
||||
secret: 'apisecret',
|
||||
});
|
||||
|
||||
client
|
||||
.bindOrUnbindUID({
|
||||
uid: 'yourUID',
|
||||
operate: '0', // 0 for bind, 1 for unbind
|
||||
})
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
18
examples/apidoc/V5/Institutional-Loan/get-LTV.js
Normal file
18
examples/apidoc/V5/Institutional-Loan/get-LTV.js
Normal file
@@ -0,0 +1,18 @@
|
||||
// https://api.bybit.com/v5/ins-loan/ltv-convert
|
||||
|
||||
const { RestClientV5 } = require('bybit-api');
|
||||
|
||||
const client = new RestClientV5({
|
||||
testnet: true,
|
||||
key: 'apikey',
|
||||
secret: 'apisecret',
|
||||
});
|
||||
|
||||
client
|
||||
.getInstitutionalLendingLTVWithLadderConversionRate()
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
20
examples/apidoc/V5/Institutional-Loan/get-loan-orders.js
Normal file
20
examples/apidoc/V5/Institutional-Loan/get-loan-orders.js
Normal file
@@ -0,0 +1,20 @@
|
||||
// https://api.bybit.com/v5/ins-loan/loan-order
|
||||
|
||||
const { RestClientV5 } = require('bybit-api');
|
||||
|
||||
const client = new RestClientV5({
|
||||
testnet: true,
|
||||
key: 'apikey',
|
||||
secret: 'apisecret',
|
||||
});
|
||||
|
||||
client
|
||||
.getInstitutionalLendingLoanOrders({
|
||||
limit: 10,
|
||||
})
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
@@ -0,0 +1,20 @@
|
||||
// https://api.bybit.com/v5/ins-loan/ensure-tokens-convert
|
||||
|
||||
const { RestClientV5 } = require('bybit-api');
|
||||
|
||||
const client = new RestClientV5({
|
||||
testnet: true,
|
||||
key: 'apikey',
|
||||
secret: 'apisecret',
|
||||
});
|
||||
|
||||
client
|
||||
.getInstitutionalLendingMarginCoinInfoWithConversionRate({
|
||||
productId: '81',
|
||||
})
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
20
examples/apidoc/V5/Institutional-Loan/get-product-info.js
Normal file
20
examples/apidoc/V5/Institutional-Loan/get-product-info.js
Normal file
@@ -0,0 +1,20 @@
|
||||
// https://api.bybit.com/v5/ins-loan/product-infos
|
||||
|
||||
const { RestClientV5 } = require('bybit-api');
|
||||
|
||||
const client = new RestClientV5({
|
||||
testnet: true,
|
||||
key: 'apikey',
|
||||
secret: 'apisecret',
|
||||
});
|
||||
|
||||
client
|
||||
.getInstitutionalLendingProductInfo({
|
||||
productId: '91',
|
||||
})
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
@@ -0,0 +1,20 @@
|
||||
// https://api.bybit.com/v5/ins-loan/repaid-history
|
||||
|
||||
const { RestClientV5 } = require('bybit-api');
|
||||
|
||||
const client = new RestClientV5({
|
||||
testnet: true,
|
||||
key: 'apikey',
|
||||
secret: 'apisecret',
|
||||
});
|
||||
|
||||
client
|
||||
.getInstitutionalLendingRepayOrders({
|
||||
limit: 100,
|
||||
})
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
Reference in New Issue
Block a user