- CSVファイルを入力し、為替レートを追加しファイル出力します。
- 日付カラムを含むCSVファイルを選択。TTS/TTM/TTBのいずれかを選択して実行。
- 出力ファイル名 "_out.csv" を追加します。
- 取引日以外を指定すると'NA'が入る。
- 日時カラムを判別するのに使われるタイトル文字列はソースリストにハードコードされておりカスタマイズ可能。
- 為替レートのソースに三菱UFJ銀行の公開データを使用。(一度使用した日付の為替レートはキャッシュされる)
- Identifies the date column in a CSV file
- You can customize the strings that indicate date column.
- Retrieves the exchange rate for that day from Mitsubishi UFJ Bank's data available on the internet
- Adds a new column to the CSV file based on the retrieved exchange rate
- macOS
- Prepare python envinrnment (Install modules below)
- Run "python appendExchangeRateColumn.py" in Terminal.app
- Choose a file that includes "Date" column.
- Choose TTS/TTM/TTB if you want
- Wait for complete.
- The result file will be at the save location you chose. There is "_out.csv" at the end of the file name.
- pandas
- chardet
- percache
- PySimpleGUI (You need to install 'Tkinter' like
brew install tcl-tk
)