Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Colyer committed Aug 11, 2022
1 parent d05f0c1 commit 60ec012
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions node-polo.demo.js
@@ -1,6 +1,6 @@
'use strict'

const SAVEDATA = false;
const SAVEDATA = true;
const LOADDATA = false;

// Bring in the ability to create the 'require' method
Expand Down Expand Up @@ -246,7 +246,6 @@ const myBalances = LOADDATA ? require('./test-myBalances.json') : data;
// Get open orders
if (!LOADDATA) {
r = await get(url, '/orders', {
limit: limit
})
if (r === null) {
exit()
Expand Down Expand Up @@ -463,4 +462,4 @@ report+="\n";
console.log(report)
console.log("Load data=", LOADDATA);

sendmail(report);
sendEmailReport(report);
2 changes: 1 addition & 1 deletion test-marketsPrice.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test-myOrders.json
@@ -1 +1 @@
[{"id":"80145289935319040","clientOrderId":"","symbol":"XLMBULL_USDT","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"0.67","price":"5000","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660074526148,"updateTime":1660074526160},{"id":"80145211107569664","clientOrderId":"","symbol":"XLMBULL_USDT","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"9.07","price":"152","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660074507354,"updateTime":1660074507365},{"id":"80144961412259840","clientOrderId":"","symbol":"ADABULL_USDT","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"0.0129","price":"80047","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660074447822,"updateTime":1660074447833},{"id":"80144839815192576","clientOrderId":"","symbol":"ADABULL_USDT","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"0.105","price":"66001","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660074418831,"updateTime":1660074418843},{"id":"80144594217472000","clientOrderId":"","symbol":"XRPBULL_USDT","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"284137","price":"0.1","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660074360276,"updateTime":1660074360293},{"id":"80144002032078848","clientOrderId":"","symbol":"XRPBULL_USDT","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"2999","price":"5.168","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660074219088,"updateTime":1660074219100},{"id":"80143892694962176","clientOrderId":"","symbol":"XRPBULL_USDT","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"2999","price":"1.0169","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660074193020,"updateTime":1660074193035},{"id":"80143795508740096","clientOrderId":"","symbol":"XRPBULL_USDT","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"4304","price":"0.56","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660074169849,"updateTime":1660074169860},{"id":"80143542592212992","clientOrderId":"","symbol":"SHIB_USDT","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"1482283","price":"0.000045","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660074109549,"updateTime":1660074109559},{"id":"80143377667985408","clientOrderId":"","symbol":"SHIB_USDT","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"741142","price":"0.00007","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660074070228,"updateTime":1660074070239},{"id":"80143062986133504","clientOrderId":"","symbol":"LTC_BTC","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"0.41","price":"0.0151","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660073995202,"updateTime":1660073995213},{"id":"80142858379595776","clientOrderId":"","symbol":"BAT_BTC","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"195","price":"0.00006131","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660073946420,"updateTime":1660073946432},{"id":"80142708504784896","clientOrderId":"","symbol":"BAT_BTC","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"400","price":"0.00004125","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660073910687,"updateTime":1660073910702},{"id":"80142453117554688","clientOrderId":"","symbol":"ATOM_BTC","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"11","price":"0.0013","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660073849798,"updateTime":1660073849812},{"id":"80141945632190464","clientOrderId":"","symbol":"ATOM_BTC","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"19","price":"0.00121","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660073728804,"updateTime":1660073728818},{"id":"80141848521469952","clientOrderId":"","symbol":"ATOM_BTC","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"20","price":"0.001","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660073705651,"updateTime":1660073705663},{"id":"80141318457913344","clientOrderId":"","symbol":"XRP_BTC","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"109","price":"0.0000998","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660073579274,"updateTime":1660073579289},{"id":"80141092422676480","clientOrderId":"","symbol":"XRP_BTC","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"659","price":"0.000075","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660073525383,"updateTime":1660073525397},{"id":"80141006905012224","clientOrderId":"","symbol":"XRP_BTC","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"588","price":"0.00003518","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660073504994,"updateTime":1660073505005},{"id":"80140697801326592","clientOrderId":"","symbol":"LEASH_USDT","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"0.034485","price":"4050","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660073431298,"updateTime":1660073431310}]
[{"id":"80145289935319040","clientOrderId":"","symbol":"XLMBULL_USDT","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"0.67","price":"5000","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660074526148,"updateTime":1660074526160},{"id":"80145211107569664","clientOrderId":"","symbol":"XLMBULL_USDT","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"9.07","price":"152","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660074507354,"updateTime":1660074507365},{"id":"80144961412259840","clientOrderId":"","symbol":"ADABULL_USDT","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"0.0129","price":"80047","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660074447822,"updateTime":1660074447833},{"id":"80144839815192576","clientOrderId":"","symbol":"ADABULL_USDT","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"0.105","price":"66001","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660074418831,"updateTime":1660074418843},{"id":"80144594217472000","clientOrderId":"","symbol":"XRPBULL_USDT","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"284137","price":"0.1","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660074360276,"updateTime":1660074360293},{"id":"80144002032078848","clientOrderId":"","symbol":"XRPBULL_USDT","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"2999","price":"5.168","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660074219088,"updateTime":1660074219100},{"id":"80143892694962176","clientOrderId":"","symbol":"XRPBULL_USDT","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"2999","price":"1.0169","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660074193020,"updateTime":1660074193035},{"id":"80143795508740096","clientOrderId":"","symbol":"XRPBULL_USDT","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"4304","price":"0.56","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660074169849,"updateTime":1660074169860},{"id":"80143542592212992","clientOrderId":"","symbol":"SHIB_USDT","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"1482283","price":"0.000045","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660074109549,"updateTime":1660074109559},{"id":"80143377667985408","clientOrderId":"","symbol":"SHIB_USDT","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"741142","price":"0.00007","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660074070228,"updateTime":1660074070239},{"id":"80143062986133504","clientOrderId":"","symbol":"LTC_BTC","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"0.41","price":"0.0151","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660073995202,"updateTime":1660073995213},{"id":"80142858379595776","clientOrderId":"","symbol":"BAT_BTC","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"195","price":"0.00006131","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660073946420,"updateTime":1660073946432},{"id":"80142708504784896","clientOrderId":"","symbol":"BAT_BTC","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"400","price":"0.00004125","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660073910687,"updateTime":1660073910702},{"id":"80142453117554688","clientOrderId":"","symbol":"ATOM_BTC","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"11","price":"0.0013","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660073849798,"updateTime":1660073849812},{"id":"80141945632190464","clientOrderId":"","symbol":"ATOM_BTC","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"19","price":"0.00121","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660073728804,"updateTime":1660073728818},{"id":"80141848521469952","clientOrderId":"","symbol":"ATOM_BTC","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"20","price":"0.001","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660073705651,"updateTime":1660073705663},{"id":"80141318457913344","clientOrderId":"","symbol":"XRP_BTC","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"109","price":"0.0000998","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660073579274,"updateTime":1660073579289},{"id":"80141092422676480","clientOrderId":"","symbol":"XRP_BTC","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"659","price":"0.000075","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660073525383,"updateTime":1660073525397},{"id":"80141006905012224","clientOrderId":"","symbol":"XRP_BTC","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"588","price":"0.00003518","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660073504994,"updateTime":1660073505005},{"id":"80140697801326592","clientOrderId":"","symbol":"LEASH_USDT","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"0.034485","price":"4050","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660073431298,"updateTime":1660073431310},{"id":"80140465134899200","clientOrderId":"","symbol":"OMG_BTC","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"10","price":"0.0008586","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660073375826,"updateTime":1660073375839},{"id":"80139870890098688","clientOrderId":"","symbol":"STR_BTC","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"309","price":"0.00006021","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660073234147,"updateTime":1660073234162},{"id":"80139743391645696","clientOrderId":"","symbol":"STR_BTC","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"624","price":"0.00005283","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660073203749,"updateTime":1660073203764},{"id":"80139642980012032","clientOrderId":"","symbol":"STR_BTC","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"4245","price":"0.0000478","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660073179809,"updateTime":1660073179823},{"id":"80139550868897792","clientOrderId":"","symbol":"STR_BTC","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"268","price":"0.00003653","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660073157848,"updateTime":1660073157859},{"id":"80139423290757120","clientOrderId":"","symbol":"STR_BTC","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"1245","price":"0.00003534","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660073127431,"updateTime":1660073127446},{"id":"80139269980553216","clientOrderId":"","symbol":"STR_BTC","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"2387","price":"0.0000321","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660073090879,"updateTime":1660073090893},{"id":"80139171473383424","clientOrderId":"","symbol":"STR_BTC","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"1568","price":"0.00002491","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660073067393,"updateTime":1660073067408},{"id":"80139023422840832","clientOrderId":"","symbol":"STR_BTC","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"600","price":"0.00002146","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660073032095,"updateTime":1660073032108},{"id":"80138822800637952","clientOrderId":"","symbol":"STR_BTC","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"2245","price":"0.00001478","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660072984263,"updateTime":1660072984276},{"id":"80138717099986944","clientOrderId":"","symbol":"STR_BTC","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"2000","price":"0.00001058","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660072959062,"updateTime":1660072959077},{"id":"80138339419684864","clientOrderId":"","symbol":"DOGE_BTC","state":"NEW","accountType":"SPOT","side":"SELL","type":"LIMIT","timeInForce":"GTC","quantity":"20000","price":"0.00001989","avgPrice":"0","amount":"0","filledQuantity":"0","filledAmount":"0","createTime":1660072869016,"updateTime":1660072869030}]

0 comments on commit 60ec012

Please sign in to comment.