Asset
Documentation on interacting with ByBit's Asset API functions through the PENDAX Javascript SDK.
All parameters of type INTEGER listed in the Bybit API docs need to be passed in as a string.
Get Coin Exchange Records
Function name:
getCoinExchangeRecords(options)Usage:
import { createExchange } from "./exchanges/exchange.js";
let myByBitAccount = createExchange({
exchange: "bybit",
authenticate: "true",
key: "myKeys",
secret: "mySecret",
label: "bybit",
testnet: "false"
});
async function getCoinExchangeRecords(exchange, options) {
try {
let result = await exchange.getCoinExchangeRecords(options);
console.log(result);
} catch (error) {
console.log(error.message);
}
}
const result = await getCoinExchangeRecords(myByBitAccount);Get Delivery Record
Function name:
Usage:
Get USDC Session Settlement
Function name:
Usage:
Get Asset Info
Function name:
Usage:
Get All Coins Balance
Function name:
Usage:
Get Single Coin Balance
Function name:
Usage:
Get Transferable Coin
Function name:
Usage:
Create Internal Transfer
Function name:
Usage:
Get Internal Transfer Records
Function name:
Usage:
Get Sub UID
Function name:
Usage:
Enable Universal Transfer for Sub UID
Function name:
Usage:
Create Universal Transfer
Function name:
Usage:
Get Universal Transfer Records
Function name:
Usage:
Get Allowed Deposit Coin Info
Function name:
Usage:
Set Deposit Account
Function name:
Usage:
Get Deposit Records (on-chain)
Function name:
Usage:
Get Sub Deposit Records (on-chain)
Function name:
Usage:
Get Internal Deposit Records (off-chain)
Function name:
Usage:
Get Master Deposit Address
Function name:
Usage:
Get Sub Deposit Address
Function name:
Usage:
Get Coin Info
Function name:
Usage:
Get Withdrawal Records
Function name:
Usage:
Get Withdrawal Records
Function name:
Usage:
Withdraw
This function is under construction and may not behave as expected
Function name:
Usage:
Cancel Withdrawal
This function is under construction and may not behave as expected
Function name:
Usage:
Last updated