
char name="onvista-prices"
char shortDescr="Profile of Onvista Status Reports"
char longDescr="This profile supports the CSV format of Onvista Status Reports"
int import="1"
int export="1"

char type="csv"
char transactionType="brokerage"
char groupNames="transaction", "transfer", "debitnote", "line"
char dateFormat="DD.MM.YYYY"
int utc="0"

# The following vars are used when there is an additional field within a
# record which defines the sign of the amount.
# Some banks use "C" (positive) and "D" (negative) or "Af" (negative) and
# "Bij" (positive)
int usePosNegField="0"
# char posNegFieldName="type"
# char positiveValues="kauf"
# char negativeValues="verkauf"
# int defaultIsPositive="1"



params {
  
  # number of lines to ignore
  int ignoreLines="5"
  
  # if 1 then values are quoted
  quote="0"
  
  # if 1 then a title line will be written containing the names of each
  # column
  title="1"
  
  # special values are "TAB" and "SPACE"
  delimiter=";"
  
  # this is the group name looked for in the given data to GWEN_CSV_Write
  # if not given then all groups match
  # group="transaction"
  
  # this group contains the definition for each column
  # each variable in this group has its number as name
  # you can use index variables in the names (using square brackets)
  # the value of each of these variables is the name of a variable to be looked
  # up in the data given to GWEN_CSV_Write
  columns {
    1="units"
    2="remoteName"
    3="unitId"                     # isin
    4="wkn"                        # not used
    5="type"                       # not used
    6="date"
    7="time"                       # not used
    8="unitPriceValue/value"
    9="unitPriceValue/currency"
    10="location"                  # not used
    11="buyPrice/value"            # not used
    12="buyPrice/currency"         # not used
    13="value/value"               # buy value (buyPrice x units)
    14="value/currency"         
    15="totalPerformance/value"    # not used
    16="totalPerformance/currency" # not used
    17="totalPerformancePercent"   # not used
    18="dayPerformance/value"      # not used
    19="dayPerformance/currency"   # not used
    20="dayPerformancePercent"     # not used
    21="currentValue/value"        # not used
    22="currentValue/currency"     # not used
  } # columns

} # params

