@hanai/bi-providers
v1.0.5
Published
Providers for bi.
Downloads
4
Readme
bi-providers
Providers for bi.
Install
npm i @hanai/bi-providers
Usage
import { ftx as FtxProvider } from '@hanai/bi-providers'
import { FtxApiConfig } from '@hanai/bi-providers/dist/providers/ftx/types'
const ftxApiConfig: FtxApiConfig = {
/* your api config */
}
const walletClient = new FtxProvider.WalletClient(ftxApiConfig)
const marketsClient = new FtxProvider.MarketsClient(ftxApiConfig)
const [markets, position] = await Promise.all([
marketsClient.getMarkets(),
walletClient.getBalance(),
])
console.log(markets, position)