Module: OandaApiV20::Instruments
- Included in:
- Api
- Defined in:
- lib/oanda_api_v20/instruments.rb
Instance Attribute Summary collapse
-
#instrument ⇒ Object
readonly
Returns the value of attribute instrument.
Instance Method Summary collapse
-
#candles(options = {}) ⇒ Object
GET /v3/instruments/:instrument/candles.
Instance Attribute Details
#instrument ⇒ Object (readonly)
Returns the value of attribute instrument.
4 5 6 |
# File 'lib/oanda_api_v20/instruments.rb', line 4 def instrument @instrument end |
Instance Method Details
#candles(options = {}) ⇒ Object
GET /v3/instruments/:instrument/candles
7 8 9 |
# File 'lib/oanda_api_v20/instruments.rb', line 7 def candles( = {}) Client.send(http_verb, "#{base_uri}/instruments/#{instrument}/candles", headers: headers, query: ) end |