committed
668f4ee
Commit
Comments (0)
Files changed (12)
-
+2 -2M config/sample-options-mini.json
-
+4 -3M config/sample-options.json
-
+2 -2M config/simulation.json
-
+14 -6M docs/SETUP.md
-
+6 -6M res/UI/js/main.js
-
+6 -4M res/UI/templates/config.mustache
-
+17 -14M src/main/java/com/nubits/nubot/options/NuBotOptions.java
-
+5 -3M src/main/java/com/nubits/nubot/options/NuBotOptionsDefault.java
-
+6 -6M src/main/java/com/nubits/nubot/options/ParseOptions.java
-
+7 -7M src/main/java/com/nubits/nubot/strategy/Primary/StrategyPrimaryPegTask.java
-
+3 -3M src/main/java/com/nubits/nubot/strategy/Secondary/StrategySecondaryPegUtils.java
-
+4 -19M src/test/java/functions/TestOptions.java
config/sample-options.json Modified
- Ignore whitespace
docs/SETUP.md Modified
- Ignore whitespace
Refer to the file `sample-config.json` or its essential form `sample-config-mini.json` provided with the bot. You can edit the provided sample file or create a new configuration file.
| dualside | true | If set to true, the bot will behave as a dual side custodian, if false as a sell side custodian. | true,false |
-| multiplecustodians | false | if set to true (and streaming bypassed|offline) , bot will sync with remote NPT and reset orders often. | boolean |
+| multiplecustodians | false | if set to true (and streaming bypassed|offline) bot will sync with remote NPT and reset orders often. | boolean |
| executeorders | true | if set to false the bot will print a warning instead of executing orders | boolean |
| emergencytimeout | 60 | max amount of minutes of consecutive failure. After those minute elapse, emergency procedure starts | int (minutes) |
| keepproceeds | 0 | Specific setting for KTm's proposal. Will keep the specified proceeds from sales apart instead of putting 100% of balance on buy . | double. Expressed in absolute percentage. 10 = 10% , 0.5 = 0.5%|
-| maxsellordervolume | 0 | maximum volume to put on sell walls. | double , expressed in NBT . 0=no limit; |
-| maxbuyordervolume | 0 | maximum volume to put on buy walls. | double , expressed NBT. 0=no limit; |
| priceincrement | 0.0003 | if working in sell-side mode, this value (considered USD) will be added to the sell price | double , price increment in expressed USD |
| webport | 8889 | the port for http server and GUI. Can be overriden via CLI launch argument *-port* | int |
Note: Streaming server uses default recommended values for spread and treshold. even while reading prices from streaming server, the local spread setting will be enforced if different from default.
+| bookSellwall | 0 | maximum volume to put on sell walls at best price (tier1) | double , expressed in NBT . 0=no limit; |
+| bookBuywall | 0 | maximum volume to put on buy walls at best price (tier1) | double , expressed NBT. 0=no limit; |
res/UI/js/main.js Modified
- Ignore whitespace
res/UI/templates/config.mustache Modified
- Ignore whitespace
src/main/java/com/nubits/nubot/options/NuBotOptions.java Modified
- Ignore whitespace
src/main/java/com/nubits/nubot/options/NuBotOptionsDefault.java Modified
- Ignore whitespace
public static String[] optionalKeys = {ParseOptions.txfee, ParseOptions.multiplecustodians, ParseOptions.executeorders, ParseOptions.gitter,
- ParseOptions.maxbuyvolume, ParseOptions.maxsellvolume, ParseOptions.priceincrement, ParseOptions.submitliquidity, ParseOptions.verbosity,
+ ParseOptions.booksellwall, ParseOptions.bookbuywall, ParseOptions.priceincrement, ParseOptions.submitliquidity, ParseOptions.verbosity,
ParseOptions.nudip, ParseOptions.nudport, ParseOptions.pair, ParseOptions.dualside, ParseOptions.bypassStreaming, ParseOptions.streamingserver, ParseOptions.spread, ParseOptions.webport};
public static String[] compulsoryKeys = {ParseOptions.apikey, ParseOptions.exchangename, ParseOptions.apisecret};
opt.spread = Settings.DEFAULT_SPREAD_HIGHVOLATILITY; //this value is actually never used - since the default value is based on Currency
src/main/java/com/nubits/nubot/options/ParseOptions.java Modified
- Ignore whitespace
options.emergencyTimeout = new Integer("" + JSONUtils.getIgnoreCase(optionsJSON, emergencytimeout)).intValue();
src/main/java/com/nubits/nubot/strategy/Primary/StrategyPrimaryPegTask.java Modified
- Ignore whitespace
- if (balanceFIAT > 1 && !isFirstTime && Global.options.getMaxBuyVolume() == 0) { //TODO this condition should be more complext to take into account froozenBalance
+ if (balanceFIAT > 1 && !isFirstTime && Global.options.getBookBuywall() == 0) { //TODO this condition should be more complext to take into account froozenBalance
LOG.warn("The " + balance.getPEGAvailableBalance().getCurrency().getCode() + " balance is not zero (" + balanceFIAT + " ). If the balance represent proceedings "
+ "from a sale the bot will notice. On the other hand, If you keep seying this message repeatedly over and over, you should restart the bot. ");
src/main/java/com/nubits/nubot/strategy/Secondary/StrategySecondaryPegUtils.java Modified
- Ignore whitespace
LOG.warn("The " + balance.getPEGAvailableBalance().getCurrency().getCode() + " balance is not zero (" + balancePEG + " ). If the balance represent proceedings "
+ "from a sale the bot will notice. On the other hand, If you keep seying this message repeatedly over and over, you should restart the bot. ");
src/test/java/functions/TestOptions.java Modified
- Ignore whitespace