Finance-IG
view release on metacpan or search on metacpan
script/igdisp.pl view on Meta::CPAN
-n xxx use xxx as a pattern in name to grep for particular positions. Can use | for or. (Must be quoted)
multipl -n allowed.
-S print no summary line.
-N toggle printing of headers.
-t print title lines every 10 lines.
-s x Sort output by x where x is a comma seperated list of fields
optionaly preceded by a minus (for reverse sort). Common fields
can be abrievated by the following single letter abbreviations,
n instrumentName
o level (opening price for position)
b bid
v atRisk (value atRisk in a position)
p profitpe (percentage profit. )
The default could be written in any of the following ways:
-s-profitpc,instrumentName or -s-pn or -s-p,n
It sorts by decending order of profit and where this is the
same, orders by name. Case is significant.
-O [+-=]date[time] Show only positions held Opened later or equal (+) equal to (-)
or earlier or equal (-) than the given date or datetime, eg
-O 2020/11/05 or -O 2020/11/05T15:00:00
Equal to means with ref to the format so that
2020/11/05 means the days are equal while 2020/11 means amy time that month
-g x print only tradeable (x=t) or non-tradable (x=n) positions
-v exp Evaluate expression and print if true. Example expressions (format id perl format)
'\$dailyp> 0.1 and \$held>100' means daily profit more than 0.1% and held for more than 100 days
Any variable (full list below) can be used
";
exit 1 if (defined $mess and length($mess)>1);
print "\n A complete list of fields in a position is as follows. Some of these
are IG things, and some are calculated:
bid
contractSize
controlledRisk
createdDate
createdDateUTC
currency
dailyp profit in % per day averaged over holding time
dealId
dealReference
delayTime
direction
epic
expiry
held days held
high
instrumentName
instrumentType
limitedRiskPremium
limitLevel
lotSize
low
marketStatus
netChange
offer
percentageChange
profit
scalingFactor
size
stopLevel
streamingPricesAvailable
rank calculated, first row is 1, 2 etc.
trailingStep
trailingStopDistance
updateTime
updateTimeUTC
";
exit(1);
}
( run in 1.020 second using v1.01-cache-2.11-cpan-98e64b0badf )