Class: QuidaxTrade
Overview
Instance Attribute Summary
#quidax
Class Method Summary
collapse
Instance Method Summary
collapse
get_request, #initialize, post_request, put_request, url
Class Method Details
.for_market(q_object:, market:) ⇒ Object
19
20
21
22
|
# File 'lib/quidax/objects/trade.rb', line 19
def self.for_market(q_object:, market:)
path = "#{API::TRADES_PATH}/#{market}"
get_request(q_object, path)
end
|
.for_user(q_object:, user_id:) ⇒ Object
13
14
15
16
17
|
# File 'lib/quidax/objects/trade.rb', line 13
def self.for_user(q_object:, user_id:)
path = "#{API::USER_PATH}/#{user_id}#{API::TRADES_PATH}"
get_request(q_object, path)
end
|
Instance Method Details
#for_market(market:) ⇒ Object
9
10
11
|
# File 'lib/quidax/objects/trade.rb', line 9
def for_market(market:)
QuidaxTrade.for_market(q_object: @quidax, market: market)
end
|
#for_user(user_id:) ⇒ Object
5
6
7
|
# File 'lib/quidax/objects/trade.rb', line 5
def for_user(user_id:)
QuidaxTrade.for_user(q_object: @quidax, user_id: user_id)
end
|