ccxt-with-rest-api-type

0.0.12 • Public • Published

Ccxt With Rest Api Type for NODEJS

npm install --save-dev ccxt-with-rest-api-type
yarn add -D ccxt-with-rest-api-type

Typescript

import {binanceRestApiType} from 'ccxt-with-rest-api-type';
import ccxt from "ccxt";

const binance = <binanceRestApiType>new ccxt.binance();

(async ()=>{
    const ExchangeInfo = await binance.fapiPublicGetExchangeInfo()
    console.log(ExchangeInfo)
})()

Javascript

import ccxt from "ccxt";
/**
 * @type {import('ccxt-with-rest-api-type').wooRestApiType}
 */
const woo = new ccxt.woo();

(async () => {
    const ExchangeInfo = await woo.v1PublicGetFuturesSymbol({
        symbol: 'PERP_BTC_USDT'
    });
    console.log(ExchangeInfo)
})()

Readme

Keywords

none

Package Sidebar

Install

npm i ccxt-with-rest-api-type

Weekly Downloads

3

Version

0.0.12

License

MIT

Unpacked Size

739 kB

Total Files

119

Last publish

Collaborators

  • halil07