1.0.8 • Published 3 years ago

cpay-exchange-node-api-sdk v1.0.8

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

cpay-exchange-node-sdk

npm i cpay-exchange-node-api-sdk
import CpayExchangeSDK from 'cpay-exchange-node-api-sdk';


const ex = new CpayExchangeSDK({ apiKey: 'apiKey', redisUri?: 'string' })

Available Methods:

  1. Get list of exchanges
let options = {
  search?: string;
  sort?: string;
  order?: string;
  page?: number;
  limit?: number;
}
const exList = await ex.getExchangesList(options);
  1. Get pairs by exchange
let options = {
  search?: string;
  sort?: string;
  order?: string;
  page?: number;
  limit?: number;
}
const pairList = await ex.getExchangePairs(options);
  1. Convert currencies
let options = {
  from: string;
  to: string;
}

const convert = await ex.convertPairs(options);
  1. Get pair history by exchange
let options = {
  symbol: string;
  from: string;
  to: string;
  interval: string;
}
interval - Available values : hourly, daily, weekly, monthly;
from, to - Example : 2021-03-01 14:12:10

const history = await ex.getExhangePairHistory(options);
1.0.8

3 years ago

1.0.2

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.1

4 years ago

1.0.0

4 years ago