Module: OandaAPI::Resource::Candle::Granularity

Defined in:
lib/oanda_api/resource/candle.rb

Overview

Constant Summary collapse

S5 =

Top of minute alignments

"S5"
S10 =
"S10"
S15 =
"S15"
S30 =
"S30"
M1 =
"M1"
M2 =

Top of hour alignments

"M2"
M3 =
"M3"
M4 =
"M4"
M5 =
"M5"
M10 =
"M10"
M15 =
"M15"
M30 =
"M30"
H1 =
"H1"
H2 =

Start of day alignments (default 17:00, Timezone/New York)

"H2"
H3 =
"H3"
H4 =
"H4"
H6 =
"H6"
H8 =
"H8"
H12 =
"H12"
D =
"D1"
W =

Start of week alignment (default Friday)

"W"
M =

Start of month alignment (first day of month)

"M"
VALID_GRANULARITIES =
[S5,S10,S15,S30,M1,M2,M3,M4,M5,M10,M15,M30,H1,H2,H3,H4,H6,H8,H12,D,W,M]