1.0.8 • Published 2 years ago

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

Weekly downloads
-
License
ISC
Repository
github
Last release
2 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

2 years ago

1.0.2

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.1

3 years ago

1.0.0

3 years ago