Skip to main content
Module

x/exchange_connectors/src/bybit/bybit-connector.ts>BybitConnector

Exchange Connectors supporting the emergence of perfect markets
Latest
class BybitConnector
implements IExchangeConnector
import { BybitConnector } from "https://deno.land/x/exchange_connectors@v2.1.0/src/bybit/bybit-connector.ts";

Constructors

new
BybitConnector(
apiKey: string,
apiSecret: string,
accountId?: string,
)

Properties

private
readonly
accountId
private
readonly
apiKey
private
readonly
apiSecret
private
readonly
baseURL: string

Methods

private
getURL(endPoint: string)
private
getURLSigned(endPoint: string)
private
placeMarketOrder(
pair: string,
amount: number,
side: string,
reduceOnly: boolean,
)
buyFuture(
symbol: string,
amount: number,
reduceOnly: boolean,
)
getAccountId(): string
sellFuture(
symbol: string,
amount: number,
reduceOnly: boolean,
)
setLeverage(symbol: string, leverage: number)
setRiskLimit(symbol: string, riskId?: number)
transferUSDT(
fromAccountType: string,
toAccountType: string,
amount: number,
coin: string,
transferId: string,
)