Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/swedesjs/currate-wrapper
Wrapper для CurrateAPI
https://github.com/swedesjs/currate-wrapper
Last synced: about 2 months ago
JSON representation
Wrapper для CurrateAPI
- Host: GitHub
- URL: https://github.com/swedesjs/currate-wrapper
- Owner: swedesjs
- License: mit
- Created: 2021-07-27T21:33:21.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-07-27T22:04:57.000Z (over 3 years ago)
- Last Synced: 2023-12-26T07:01:57.120Z (about 1 year ago)
- Language: TypeScript
- Homepage: https://npm.im/currate-wrapper
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Установка
```console
npm install currate-wrapper
```# Использование
```ts
import { Currate } from "currate-wrapper"
const currate = new Currate("token")
```# currencyList
```ts
currate.api.currencyList()
```[Пример ответа](./src/types/Response.ts)
# rates
```ts
currate.api.rates({
pairs: "USDRUB",
date: "2018-02-12T15:00:00"
})
```| Опция | Тип | Описание |
| ----- | --------------------------------------- | ------------------------------------------------------------------------------------------------------------- |
| pairs | [currencyList](./src/types/Response.ts) | Валютные пары, разделенные запятой (список пар можно получить методом [currencyList](http://currate.ru/#list) |
| date? | string | Дата и время, по умолчанию берутся последние данные (GMT +03:00). |[Пример ответа](./src/types/Response.ts#L95)
> Если нашли ошибку напишите [мне](https://t.me/swedesjs)