@nimiq/fastspot-api
TypeScript icon, indicating that this package has built-in type declarations

1.8.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @nimiq/fastspot-api

Weekly Downloads

30

Version

1.8.0

License

Apache-2.0

Unpacked Size

37.6 kB

Total Files

11

Last publish

Collaborators

  • mraveux
  • nimiq-network
  • sisou
  • styppo
  • mnimiq
  • cb5890
  • jeffesquivels
  • danimoh