$ yarn add monobank-node
OR
$ npm i monobank-node
-
Go to https://api.monobank.ua/ and obtain token
-
import Monobank from 'node-monobank'
-
const monobank = new Monobank('YOUR TOKEN');
-
getCurrencyRates()
- returns currency rates as a promise. The information is cached and updated no more than once every 5 hours. -
getPersonalInfo()
- returns personal info and the list of accounts. Limit on the use of the function no more than 1 time in 60 seconds. -
getStatement({ from, to })
- returns a statement for the timefrom
toto
in UNIX time format. The maximum time for which it is possible to receive an statement is 31 days (2678400 seconds). Limit on the use of the function no more than 1 time in 60 seconds.