Skip to content

Commit da729e3

Browse files
committed
Add FX intraday spot to chart
1 parent a31a745 commit da729e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

finmarketpy_examples/fx_spot_indices_examples.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,11 @@
132132

133133
df_intraday_tot = FXSpotCurve().construct_total_return_index('GBPUSD', df_intraday_market, depo_tenor='ON')
134134

135-
# df_intraday_spot.columns = [x + '-intraday-spot' for x in df_intraday_spot.columns]
135+
df_intraday_spot.columns = [x + '-intraday-spot' for x in df_intraday_spot.columns]
136136
df_intraday_tot.columns = [x + '-intraday-tot' for x in df_intraday_spot.columns]
137137

138138
# Combine into a single data frame and plot
139-
df = calculations.pandas_outer_join([df_bbg_tot, df_tot, df_intraday_tot]).fillna(method='ffill')
139+
df = calculations.pandas_outer_join([df_bbg_tot, df_tot, df_intraday_tot, df_intraday_spot]).fillna(method='ffill')
140140
df = calculations.create_mult_index_from_prices(df)
141141

142142
chart.plot(df)

0 commit comments

Comments
 (0)