kraken-grid 1.2.13 → 1.2.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +0 -0
- package/README.md +1 -1
- package/allocation.js +0 -0
- package/balancer.js +2 -1
- package/bot.js +265 -158
- package/ginit.js +18 -0
- package/init.js +5 -2
- package/krakgem.js +198 -0
- package/manager.js +33 -33
- package/package.json +1 -1
- package/pricers/openex.js +0 -0
- package/reports.js +120 -0
- package/safestore.js +0 -0
- package/savings.js +0 -0
- package/static/aed.png +0 -0
- package/static/ag.png +0 -0
- package/static/au.png +0 -0
- package/static/aud.png +0 -0
- package/static/cad.png +0 -0
- package/static/client.js +0 -0
- package/static/eur.png +0 -0
- package/static/gallocation.js +0 -0
- package/static/gbp.png +0 -0
- package/static/imgByKtick.js +0 -0
- package/static/luna2.png +0 -0
- package/static/main.css +0 -0
- package/static/md-block.js +0 -0
- package/static/usd.png +0 -0
- package/static/yen.png +0 -0
- package/test/test.js +0 -0
- package/test.js +15 -0
- package/testFasterCache.js +0 -0
- package/tt.js +0 -0
- package/web.js +0 -0
package/LICENSE
CHANGED
|
File without changes
|
package/README.md
CHANGED
|
@@ -206,7 +206,7 @@ XLTC ...
|
|
|
206
206
|
...
|
|
207
207
|
```
|
|
208
208
|
2. Retrieves the list of open orders, which is immediately processed to:
|
|
209
|
-
1. replace conditional closes resulting from partial executions with a single conditional close which, itself, has a conditional close to continue buying and selling between the two prices, but only up to the amount originally specified, and _only_ for orders with a User Reference Number (such as all orders placed through this program).
|
|
209
|
+
1. replace conditional closes resulting from partial executions with a single conditional close which, itself, has a conditional close to continue buying and selling between the two prices, but only up to the amount originally specified, and _only_ for orders with a User Reference Number (such as all orders placed through this program). Note: If you place a conditional close order with a price that matches one side of an existing grid point and it executes, creating the conditional close, that new order will be added in with the others, increasing the size of the trade around that grid point.
|
|
210
210
|
2. fill out the internal record of buy/sell prices using the open orders and their conditional closes (see [set](#set) and [reset](#reset)).
|
|
211
211
|
3. extend the grid if there are only buys or only sells remaining for the crypto identified in each order.
|
|
212
212
|
4. identify any orders that are gone or new using Kraken's Order ID and for new orders, it also describes them.
|
package/allocation.js
CHANGED
|
File without changes
|
package/balancer.js
CHANGED
|
@@ -126,7 +126,8 @@ module.exports = function Balancer (target) {
|
|
|
126
126
|
bot.getLev(bot.portfolio,'sell',sP,sAmt,po.base,false),
|
|
127
127
|
p.type=='buy'?Ordered.uref:0,p.price);
|
|
128
128
|
}
|
|
129
|
-
|
|
129
|
+
if(bot.FLAGS.verbose)
|
|
130
|
+
console.log({high,low,cryptp,qf,atargU,atargD,curVal,curP,toSell,toBuy,sAmt,bAmt,sP,bP,Ordered});
|
|
130
131
|
}
|
|
131
132
|
|
|
132
133
|
return {setTrades};
|