yellow-changer-sdk
v0.0.4
Published
SDK for Yellow Change
Downloads
4
Readme
Yellow Changer SDK
Easy to use Yellow Change API service
Install
npm i yellow-changer-sdk
Usage
Import the YellowChanger
import { YellowChanger } from 'yellow-changer-sdk'
Initialize the sdk.
const yellowChanger = new YellowChanger({
publicApiKey: 'PUBLIC_KEY',
secretApiKey: 'PRIVATE_KEY',
})
Instance method
getAllRates()
: Returns all possible exchange ratesgetDestinationList()
: Returns all possible exchange destinationsgetRatesInDirection()
: Returns rates in a certain directiongetTradeInfo()
: Returns all information about transactioncreateTrade()
: Create new trade and returns trade info