-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Wesley Werneck <[email protected]>
- Loading branch information
Showing
1 changed file
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,12 @@ go install github.com/uelei/[email protected] | |
## Help | ||
|
||
```bash | ||
Usage: brl-rate-get <command> | ||
brl-rate-get -help | ||
Usage of brl-rate-get: | ||
-get | ||
To get yesterday closing currency | ||
-range | ||
To get a range of closing currency rates | ||
``` | ||
|
||
## To use | ||
|
@@ -26,6 +31,18 @@ To get yesterday close of a currency | |
```bash | ||
brl-rate-get -get usd | ||
|
||
2023/11/04 21:27:27 Found 5 records of price.. | ||
2023/11/04 21:27:27 Found 1 records of fechamento price.. | ||
|
||
____________________________________ | ||
|#######====================#######| | ||
|# BRL USD #| | ||
|# ==== #| | ||
|# Buy: 4.8904 #| | ||
|# 1,00 Sell: 4.8912 #| | ||
|# #| | ||
|##==============================##| | ||
------------------------------------ | ||
``` | ||
|
||
## To use | ||
|
@@ -35,4 +52,9 @@ To get a range of data from April first until April 10 use | |
```bash | ||
brl-rate-get -range usd 2022-04-01 2022-04-10 | ||
|
||
2023/11/04 21:28:58 Found 30 records of price.. | ||
2023/11/04 21:28:58 Found 6 records of fechamento price.. | ||
2023/11/04 21:28:58 Writing a file. | ||
File saved usd_brl_2022-04-01-2022-04-10.csv | ||
|
||
``` |