Eligioo / fastspot-api

Typescript library to interact with the Fastspot API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 })

About

Typescript library to interact with the Fastspot API

License:Apache License 2.0


Languages

Language:TypeScript 100.0%