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

18
LINES

< > BotCompany Repo | #1037257 // G22TradingAccount

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

Libraryless. Click here for Pure Java version (24242L/148K).

concept G22TradingAccount extends ConceptWithChangeListeners {
  settableWithVar S name;
  settableWithVar S platform;
  settableWithVar S comment;
  settableWithVar Double equity;
  settableWithVar L income;
  
  settable transient Cl positions;
  settable transient O session;
  
  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/12
Text MD5: e313987d0830d4ffb85543f24a4213d3
Transpilation MD5: 13e09c405173f94bf8010bfd813698e1
Author: stefan
Category: javax / trading
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2023-11-01 17:49:59
Source code size: 497 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 41 / 103
Version history: 11 change(s)
Referenced in: [show references]