Spot Margin Trade (Normal)

Documentation on interacting with ByBit's Spot Margin Trade (Normal) API functions through the PENDAX Javascript SDK.

circle-exclamation

Get Margin Coin Info

circle-info

Please refer to the official ByBit API Docs for the required parameters.

https://bybit-exchange.github.io/docs/v5/spot-margin-normal/margin-dataarrow-up-right

Function name:

getMarginCoinInfo(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 getMarginCoinInfo(exchange, options) {
    try {
        let result = await exchange.getMarginCoinInfo(options);
        console.log(result);
    } catch (error) {
        console.log(error.message);
    }
}

const result = await getMarginCoinInfo(myByBitAccount);

Get Borrowable Coin Info

circle-info

Please refer to the official ByBit API Docs for the required parameters.

https://bybit-exchange.github.io/docs/v5/spot-margin-normal/borrowable-dataarrow-up-right

Function name:

Usage:

Get Interest & Quota

circle-info

Please refer to the official ByBit API Docs for the required parameters.

https://bybit-exchange.github.io/docs/v5/spot-margin-normal/interest-quotaarrow-up-right

Function name:

Usage:

Get Loan Account Info

circle-info

Please refer to the official ByBit API Docs for the required parameters.

https://bybit-exchange.github.io/docs/v5/spot-margin-normal/account-infoarrow-up-right

Function name:

Usage:

Borrow

circle-info

Please refer to the official ByBit API Docs for the required parameters.

https://bybit-exchange.github.io/docs/v5/spot-margin-normal/borrowarrow-up-right

Function name:

Usage:

Repay

circle-info

Please refer to the official ByBit API Docs for the required parameters.

https://bybit-exchange.github.io/docs/v5/spot-margin-normal/repayarrow-up-right

Function name:

Usage:

Get Borrow Order Detail

circle-info

Please refer to the official ByBit API Docs for the required parameters.

https://bybit-exchange.github.io/docs/v5/spot-margin-normal/borrow-orderarrow-up-right

Function name:

Usage:

Get Repayment Order Detail

circle-info

Please refer to the official ByBit API Docs for the required parameters.

https://bybit-exchange.github.io/docs/v5/spot-margin-normal/repay-orderarrow-up-right

Function name:

Usage:

Toggle Margin Trade

circle-info

Please refer to the official ByBit API Docs for the required parameters.

https://bybit-exchange.github.io/docs/v5/spot-margin-normal/switch-modearrow-up-right

Function name:

Usage:

Last updated