Libraryless. Click here for Pure Java version (11340L/63K).
1 | sclass FutureCoinParameters extends MetaWithChangeListeners { |
2 | settable S cryptoCoin; |
3 | |
4 | // Minimum crypto value per position |
5 | settableWithVar double minCrypto = 0.0001; |
6 | |
7 | // Maximum crypto value per position |
8 | settableWithVar double maxCrypto = infinity(); |
9 | |
10 | // Smallest crypto increment possible |
11 | settableWithVar double cryptoStep = 0.0001; |
12 | |
13 | // Maximum leverage supported |
14 | settableWithVar int maxLeverage = 1; |
15 | |
16 | // Fees per position open/close in percent |
17 | // (possibly averaged) |
18 | settableWithVar double feesPerAction = 0.6; |
19 | |
20 | // Average slippage in percent per open/close |
21 | settableWithVar double slippage = 0.4; |
22 | } |
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: | 201 / 248 |
Version history: | 3 change(s) |
Referenced in: | [show references] |