Skip to main content
Deno 2 is finally here 🎉️
Learn more

Exchange Connectors

This module shall provide a range of Exchange Connectors.

Centralized Exchanges (CEXes)

Bybit

See also the Bybit Example Client and Bybit Connector for more usage examples.

import { IExchangeConnector } from "https://deno.land/x/exchange_connectors/mod-bybit.ts"
import { BybitConnector } from "https://deno.land/x/exchange_connectors/mod-bybit.ts"

export class ExampleClient {

    private exchangeConnector: IExchangeConnector

    public constructor(private aPIKey: string, private aPISecret: string) {
        this.exchangeConnector = new BybitConnector(apiKey, apiSecret)
    }

    public async showUsageExamples(): Promise<void> {
        const accountInfo = await this.exchangeConnector.getFuturesAccountData()
        console.log(accountInfo)
        const positions = await this.exchangeConnector.getPositions()
        console.log(positions)
    }
}

const apiKey = Deno.args[0]
const apiSecret = Deno.args[1]

const exampleClient = new ExampleClient(apiKey, apiSecret)

await exampleClient.showUsageExamples()

Decentralized Exchanges (DEXes)

Under Construction
Shall we use the web3 deno module (is web3 ready for deno?)?

FYX

https://yfx.io