Libraryless. Click here for Pure Java version (24274L/148K).
concept G22TradingAccount extends ConceptWithChangeListeners { settableWithVar S name; settableWithVar S platform; settableWithVar S comment; settableWithVar bool enabled = true; settableWithVar Double equity; settableWithVar L income; settableWithVar L executions; settable transient Cl positions; settable transient O session; settable double imaginaryEquity; File credentialsFile() { ret javaxSecretDir("Trading-Accounts/" + id + ".cred"); } toString { ret "Account " + id + appendRoundBracketed(commaCombine(name, platform, equity)); } double fullEquity() { ret unnull(equity)+imaginaryEquity; } }
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): mqqgnosmbjvj, wnsclhtenguj
No comments. add comment
| Snippet ID: | #1037257 |
| Snippet name: | G22TradingAccount |
| Eternal ID of this version: | #1037257/16 |
| Text MD5: | 1c3cddce1fed20cb1cfb1b824f6fb57f |
| Transpilation MD5: | 478f7e399b451a2f5a6cf01e1871d5c7 |
| Author: | stefan |
| Category: | javax / trading |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2024-07-28 12:25:09 |
| Source code size: | 697 bytes / 29 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 807 / 1041 |
| Version history: | 15 change(s) |
| Referenced in: | [show references] |