Forex

Getting foreign exchange information.

class finvizfinance.forex.Forex[source]

Getting information from the finviz forex page.

chart(forex, timeframe='D', urlonly=False)[source]

Get forex chart.

Parameters:
  • forex (str) – foreign exchange name

  • timeframe (str) – choice of timeframe(5M, H, D, W, M)

  • urlonly (bool) – choice of downloading charts, default: downloading chart

Returns:

url for the chart

Return type:

charturl(str)

performance(change='percent')[source]

Get forex performance table.

Parameters:

change (str) – choose an option of change(percent, PIPS)

Returns:

forex performance table

Return type:

df(pandas.DataFrame)