An easy way to use the CriptoYa Public API in your projects (fully typed π).
Note: this package is not official.
Install package:
# npm
npm install criptoya
# yarn
yarn add criptoya
# pnpm
pnpm add criptoya
Import:
// ESM
import { createClient } from 'criptoya'
// CommonJS
const { createClient } = require('criptoya')
Example:
const criptoya = createClient()
const data = await criptoya.exchange({
exchange: 'belo',
coin: 'USDT',
fiat: 'ARS',
})
- Query by cryptocurrency (
coin
) - Query by exchange (
exchange
) - Query dollar (
dollar
) - Query fees (
fees
) - Query cer (
cer
) - Query uva (
uva
) - Query banks (
banks
) - Query by bank (
bank
)
π‘ You can see all of the required params and the response types in your code editor (VS Code is recommended).
- Clone this repository
- Install dependencies using
pnpm install
- Run interactive tests using
pnpm dev
Made with π
Published under MIT License.