Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

25
LINES

< > BotCompany Repo | #1037257 // G22TradingAccount

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (24265L) is out of date.

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));
  }
}

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/15
Text MD5: 488637f87e33be2f4dae8ac21d3ea3f0
Author: stefan
Category: javax / trading
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2024-07-03 18:56:21
Source code size: 622 bytes / 25 lines
Pitched / IR pitched: No / No
Views / Downloads: 116 / 212
Version history: 14 change(s)
Referenced in: [show references]