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

22
LINES

< > BotCompany Repo | #1036397 // FutureCoinParameters - parameters for a coin on a future trading platform

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

Libraryless. Click here for Pure Java version (11340L/63K).

sclass FutureCoinParameters extends MetaWithChangeListeners {
  settable S cryptoCoin;
  
  // Minimum crypto value per position
  settableWithVar double minCrypto = 0.0001;
  
  // Maximum crypto value per position
  settableWithVar double maxCrypto = infinity();
  
  // Smallest crypto increment possible
  settableWithVar double cryptoStep = 0.0001;
  
  // Maximum leverage supported
  settableWithVar int maxLeverage = 1;
  
  // Fees per position open/close in percent
  // (possibly averaged)
  settableWithVar double feesPerAction = 0.6;
  
  // Average slippage in percent per open/close
  settableWithVar double slippage = 0.4;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1036397
Snippet name: FutureCoinParameters - parameters for a coin on a future trading platform
Eternal ID of this version: #1036397/4
Text MD5: bf72b46860565c4a1aff5482e077f2da
Transpilation MD5: ac891dcd9392304469efa1018996c46f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2023-08-06 22:12:47
Source code size: 661 bytes / 22 lines
Pitched / IR pitched: No / No
Views / Downloads: 202 / 249
Version history: 3 change(s)
Referenced in: #1003674 - Standard Classes + Interfaces (LIVE continued in #1034167)