User
Documentation on interacting with ByBit's User 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.
Create Sub UID
Function name:
createSubUid(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 createSubUid(exchange, options) {
try {
let result = await exchange.createSubUid(options);
console.log(result);
} catch (error) {
console.log(error.message);
}
}
const result = await createSubUid(myByBitAccount,
{
username: "bill",
memberType: "1"
});Create Sub UID API Key
Function name:
Usage:
Get Sub UID List
Function name:
Usage:
Freeze Sub UID
Function name:
Usage:
Get API Key Information
Function name:
Usage:
Modify Master API Key
Function name:
Usage:
Modify Sub API Key
This function is under construction and may not behave as expected
Function name:
Usage:
Delete Master API Key
Function name:
Usage:
Delete Sub API Key
Function name:
Usage:
Last updated