-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtasks.robot
More file actions
32 lines (24 loc) · 1016 Bytes
/
tasks.robot
File metadata and controls
32 lines (24 loc) · 1016 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
*** Settings ***
Documentation This robot returns the value of the crypto currency on the first day of the year.
... This can help in reporting taxes in Norway and may be other countries too. Thanks to Coingecko for an amazing free API.
Library GetCryptoPortfolio.py
Library RPA.Tables
*** Variables ***
${year} 2021
&{cryptoCurrencies} Bitcoin=${2} Cardano=${3000} Ethereum=${23.093898} Monero=${13}
${inFiatCurrency} nok # any fiat currency supported by CoinGecko
# +
*** Keywords ***
Get CryptoPortfolio Table
${portfolio} = GetCryptoPortfolio ${year} ${cryptoCurrencies} ${inFiatCurrency}
Read CryptoPortfolio Table
${portfolioTable} = Read Table From Csv output/CryptoPortfolio.csv
Create CryptoPortfolio Charts
CreatePortfolioPieChart ${inFiatCurrency}
CreatePortfolioTreeMapChart ${inFiatCurrency}
# -
*** Tasks ***
Obtain Portfolio Table and Visualize
Get CryptoPortfolio Table
Read CryptoPortfolio Table
Create CryptoPortfolio Charts