Skip to content

Commit 839315e

Browse files
v1.1.2
1 parent 65db48a commit 839315e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ client.fetchHistorical(date='2021-04-05', base='USD', currencies=['XAU', 'XAG',
5858
- `currency` <[string]> Required. Specify currency you would like to get OHLC for.
5959
- `date` <[string]> Required. Specify date to get OHLC for specific date using format `YYYY-MM-DD`.
6060
- `unit` <[string]> Optional. Pass in a unit, defaults to troy_oz.
61-
- `dateType` <[string]> Optional. Pass in a date type, overrides date parameter if passed in.
61+
- `date_type` <[string]> Optional. Pass in a date type, overrides date parameter if passed in.
6262

6363
```ruby
64-
client.fetchOHLC(base='USD', currency='XAU', date='2024-02-05', unit='troy_oz', dateType=nil)
64+
client.fetchOHLC(base='USD', currency='XAU', date='2024-02-05', unit='troy_oz', date_type=nil)
6565
```
6666

6767
[Link](https://metalpriceapi.com/documentation#api_ohlc)

lib/metalpriceapi/endpoints/index.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ def fetchHistorical(date, base = nil, currencies = nil)
2222
get(date, options)
2323
end
2424

25-
def fetchOHLC(base = nil, currency = nil, date = nil, unit = nil, dateType = nil)
25+
def fetchOHLC(base = nil, currency = nil, date = nil, unit = nil, date_type = nil)
2626
options = removeEmpty({
2727
base: base,
2828
currency: currency,
2929
date: date,
3030
unit: unit,
31-
dateType: dateType
31+
date_type: dateType
3232
})
3333
get('ohlc', options)
3434
end

lib/metalpriceapi/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module MetalpriceAPI
4-
VERSION = '1.1.1'
4+
VERSION = '1.1.2'
55
end

0 commit comments

Comments
 (0)