@nimiq/fastspot-api
v1.10.3
Published
Typescript library to interact with the Fastspot API
Downloads
708
Keywords
Readme
Fastspot API
Typescript library to interact with the Fastspot API
yarn add @nimiq/fastspot-api
import { init, getEstimate, SwapAsset } from '@nimiq/fastspot-api'
init('https://api.test.fastspot.io/fast/v1', '<API Key>')
// Get an estimate to buy 1000 NIM with EUR
const estimate = await getEstimate(SwapAsset.EUR, { [SwapAsset.NIM]: 1000 })