0.0.4 • Published 1 year ago
yellow-changer-sdk v0.0.4
Yellow Changer SDK
Easy to use Yellow Change API service
Install
npm i yellow-changer-sdkUsage
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 rates
- getDestinationList(): Returns all possible exchange destinations
- getRatesInDirection(): Returns rates in a certain direction
- getTradeInfo(): Returns all information about transaction
- createTrade(): Create new trade and returns trade info