parse_cardano: Parse Cardano Staking Rewards

Description Usage Arguments Value Examples

View source: R/cardano.R

Description

Reads generic CSV outputs from pooltool.io and transposes these into a format which can be read by Portfolio Performance.

Rewards are classified as "Delivery (Inbound)" (German: "Einlieferung") which is a category that is different from "buy" and "interest".

Usage

1
2
3
4
5
6
7
8
9
parse_cardano(
  data,
  pp_security_name = "Cardano",
  pp_lang = "DE",
  securities_account = NULL,
  filename = NULL,
  dec = NULL,
  sep = ";"
)

Arguments

data

character
The (generic) input CSV from https://pooltool.io.

pp_security_name

character
The name of the security in Portfolio Performance (e.g. "Kusama").

pp_lang

character
The currency of Portfolio Performance. Only German ("DE") and English ("EN") are supported.

securities_account

character
The name of the account to which to associate the deliveries. In German called "Depot".

filename

character
The output filename.

dec

character
Decimal separator. If not set, inferred by the value of argument pp_lang:

  • If pp_lang = "DE" -> dec = ","

  • If pp_lang = "EN" -> dec = "."

sep

character
Columns separator. Defaults to ;.

Value

data.frame (Invisible)

Examples

1
2
3
data("cardano")
parse_cardano(cardano, pp_lang = "DE")
parse_cardano(cardano, pp_lang = "EN")

pat-s/ppcryptoparser documentation built on Dec. 22, 2021, 6:40 a.m.