Closed ghost closed 8 years ago
oK aims for compatibility with k6, so the behavior of k3 isn't necessarily authoritative. That said, I looked into it:
> rlwrap ./k
2016.08.09 (c) arthur whitney
`.`A.B`..`A0
`.`A.B`..`A0
$`.`A.B`..`A0
(,".";"A.B";"..";"A0")
`AAPL.OQ`.SPX`001.TW
`AAPL.OQ
`AAPL.OQ`.SPX
`AAPL.OQ`.SPX
`0
`0
^
`0a
`0a
^
Based on this it appears that .
is indeed permitted in k6 symbols, but it is not valid to begin a symbol with a number. (Presumably 0` is parsed as
0`, ie applying the empty symbol to the number 0.) If you update your pull request to reflect this behavior I will happily merge it.
Thanks for checking. I've updated the code and documentation to match.
Perfect. Thank you!
Symbols can be any combination of letters, numbers and ".". This allows using RICs as symbols.
e.g.