Class: CaVirtex::API::Private
- Inherits:
-
Base
- Object
- Base
- CaVirtex::API::Private
show all
- Defined in:
- lib/ca_virtex/api/private.rb
Constant Summary
Constants inherited
from Base
Base::CURRENCIES_KEYS
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Instance Method Details
#balance ⇒ Object
4
5
6
|
# File 'lib/ca_virtex/api/private.rb', line 4
def balance
parse_balance(parse_message(balance_call))
end
|
#order(currency_from: :CAD, currency_to: :BTC, mode: "buy", amount: "0", price: "0") ⇒ Object
8
9
10
11
12
13
14
15
16
17
|
# File 'lib/ca_virtex/api/private.rb', line 8
def order(currency_from: :CAD, currency_to: :BTC, mode: "buy", amount: "0" ,price: "0")
parse_message(
order_call(
construct_currency_pair(currency_from, currency_to),
mode,
amount,
price
)
)
end
|