class MonobankApi::Currency

Overview

Represents currency exchange rates.

Retrieved from /bank/currency endpoint. Information is cached and updated no more than once per 5 minutes

Included Modules

Defined in:

monobank_api/resources/bank/currency.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]

Instance Method Detail

def currency_code_a : Int32 #

Код валюти рахунку відповідно ISO 4217


[View source]
def currency_code_b : Int32 #

Код валюти рахунку відповідно ISO 4217


[View source]
def date : Time #

Час курсу в секундах в форматі Unix time


[View source]
def rate_buy : Float64 | Nil #

Курс покупки


[View source]
def rate_cross : Float64 | Nil #

Кросс-курс


[View source]
def rate_sell : Float64 | Nil #

Курс продажу


[View source]