Class: Coinex::Balance
Class Method Summary collapse
-
.history(params:) ⇒ Object
Params -> p = { page: 1, limit: 100 } Start and time return service unvailable Signature for this function -> Coinex::Signature.calculate(params: p).
-
.info(params:) ⇒ Object
Signature for this function -> Coinex::Signature.calculate.
Methods inherited from Base
Class Method Details
.history(params:) ⇒ Object
Params -> p = { page: 1, limit: 100 } Start and time return service unvailable Signature for this function -> Coinex::Signature.calculate(params: p)
36 37 38 39 40 41 |
# File 'lib/coinex/resources/balance.rb', line 36 def history(params:) data = build_url(params: params, route: '/account/balance/history') uri = URI(data.first) Coinex::Request.request(uri: uri, method: 'GET', signature: data[1]) end |
.info(params:) ⇒ Object
Signature for this function -> Coinex::Signature.calculate
15 16 17 18 19 20 |
# File 'lib/coinex/resources/balance.rb', line 15 def info(params:) data = build_url(params: params, route: '/balance/info') uri = URI(data.first) Coinex::Request.request(uri: uri, method: 'GET', signature: data[1]) end |