Nagalim
September 16, 2015, 11:07am
#41
I can institute a cap without too much difficulty. It would essentially impose a minimum liquidity level below which it is no longer fixed cost and switches over to fixed reward.
A global implementation would be difficult and not something I’d be willing to look in to any time soon. We can keep talking about it, think out all the issues before I go hopping into the code.
@masterOfDisaster are you still having problems? You posted a line with 0% rate, but you didn’t give a full minute to register the order it placed. You should usually wait for at least the second line of statistics before making a conclusion. Also, Bter was super weird last night so let me know if you’re having issues.
mhps
September 16, 2015, 11:32am
#42
As for capping the interest for the fixed cost pool, I think the capping level should be decided later after the pool runs for a while. The risk is limited. People are watching. Problems are reported within hours. Even someone manages to take all the interest for a day it’s just 3% of a monthly cost. The lesson would be worth it.
Global balance is indeed more complex. A less complex solution: the fixed cost pool has a cap that is liquidity-aware — it is off only if global buy side is less than, say 2000 NBT.
This is a log from some hours ago - after that I stopped the ALP bot:
2015/09/16-05:07:22 INFO: starting PyBot for cny on bter
2015/09/16-05:07:22 DEBUG: starting liquidity operation with sampling 80
2015/09/16-05:07:24 INFO: successfully deleted all orders for cny on bter
2015/09/16-05:07:24 INFO: waiting 5.07 seconds to synchronize with other trading bots for cny on bter
2015/09/16-05:07:32 INFO: successfully placed ask cny order of 20.9000 nbt at 7.22991852 on bter
2015/09/16-05:08:23 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:09:23 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:10:23 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:10:33 INFO: price of cny moved from 6.36885000 to 6.37080000, will try to delete orders on bter
2015/09/16-05:10:35 INFO: successfully deleted all orders for cny on bter
2015/09/16-05:10:38 INFO: successfully placed ask cny order of 0.5000 nbt at 7.23213216 on bter
2015/09/16-05:11:23 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:11:36 INFO: successfully placed ask cny order of 0.5000 nbt at 7.23213216 on bter
2015/09/16-05:12:23 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:12:40 INFO: successfully placed ask cny order of 0.5000 nbt at 7.23213216 on bter
2015/09/16-05:13:23 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:13:37 INFO: successfully placed ask cny order of 0.5000 nbt at 7.23213216 on bter
2015/09/16-05:14:23 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:14:37 INFO: successfully placed ask cny order of 0.5000 nbt at 7.23213216 on bter
2015/09/16-05:15:23 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:15:37 INFO: successfully placed ask cny order of 0.5000 nbt at 7.23213216 on bter
2015/09/16-05:16:23 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:16:37 INFO: successfully placed ask cny order of 0.5000 nbt at 7.23213216 on bter
2015/09/16-05:17:23 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:17:51 ERROR: unable to place ask cny order of 0.5000 nbt at 7.23213216 on bter: exception caught: [Errno -2] Name or service not known
2015/09/16-05:18:07 INFO: successfully placed ask cny order of 0.5000 nbt at 7.23213216 on bter
2015/09/16-05:18:24 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:18:37 INFO: successfully placed ask cny order of 0.5000 nbt at 7.23213216 on bter
2015/09/16-05:19:04 INFO: price of cny moved from 6.37080000 to 6.36870000, will try to delete orders on bter
2015/09/16-05:19:12 INFO: successfully deleted all orders for cny on bter
2015/09/16-05:19:15 INFO: successfully placed ask cny order of 0.5000 nbt at 7.22974824 on bter
2015/09/16-05:19:24 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:19:34 INFO: price of cny moved from 6.36870000 to 6.37170000, will try to delete orders on bter
2015/09/16-05:19:35 INFO: successfully deleted all orders for cny on bter
2015/09/16-05:19:38 INFO: successfully placed ask cny order of 0.5000 nbt at 7.23315384 on bter
2015/09/16-05:20:24 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:20:37 INFO: successfully placed ask cny order of 0.5000 nbt at 7.23315384 on bter
2015/09/16-05:21:24 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:21:37 INFO: successfully placed ask cny order of 0.5000 nbt at 7.23315384 on bter
2015/09/16-05:22:24 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:22:38 INFO: successfully placed ask cny order of 0.5000 nbt at 7.23315384 on bter
2015/09/16-05:23:24 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:23:37 INFO: successfully placed ask cny order of 0.5000 nbt at 7.23315384 on bter
2015/09/16-05:24:24 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:24:34 INFO: price of cny moved from 6.37170000 to 6.36890000, will try to delete orders on bter
2015/09/16-05:24:39 INFO: successfully deleted all orders for cny on bter
2015/09/16-05:24:42 INFO: successfully placed ask cny order of 0.5000 nbt at 7.22997528 on bter
2015/09/16-05:25:24 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:25:34 INFO: price of cny moved from 6.36890000 to 6.37170000, will try to delete orders on bter
2015/09/16-05:25:36 INFO: successfully deleted all orders for cny on bter
2015/09/16-05:25:39 INFO: successfully placed ask cny order of 0.5000 nbt at 7.23315384 on bter
2015/09/16-05:26:24 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:26:34 INFO: price of cny moved from 6.37170000 to 6.36860000, will try to delete orders on bter
2015/09/16-05:26:36 INFO: successfully deleted all orders for cny on bter
2015/09/16-05:26:39 INFO: successfully placed ask cny order of 0.5000 nbt at 7.22963472 on bter
2015/09/16-05:27:24 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:27:37 INFO: successfully placed ask cny order of 0.5000 nbt at 7.22963472 on bter
2015/09/16-05:28:04 INFO: price of cny moved from 6.36860000 to 6.37060000, will try to delete orders on bter
2015/09/16-05:28:07 INFO: successfully deleted all orders for cny on bter
2015/09/16-05:28:10 INFO: successfully placed ask cny order of 0.5000 nbt at 7.23190512 on bter
2015/09/16-05:28:24 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:28:34 INFO: price of cny moved from 6.37060000 to 6.36860000, will try to delete orders on bter
2015/09/16-05:28:55 ERROR: unable to delete all orders for cny on bter: exception caught: [Errno -2] Name or service not known
2015/09/16-05:28:55 INFO: adjusting nonce of bter to 1
2015/09/16-05:29:24 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:29:38 INFO: successfully placed ask cny order of 0.5000 nbt at 7.22963472 on bter
2015/09/16-05:30:24 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:30:38 INFO: successfully placed ask cny order of 0.5000 nbt at 7.22963472 on bter
2015/09/16-05:31:24 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:31:38 INFO: successfully placed ask cny order of 0.5000 nbt at 7.22963472 on bter
2015/09/16-05:32:25 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:32:38 INFO: successfully placed ask cny order of 0.5000 nbt at 7.22963472 on bter
2015/09/16-05:33:25 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:33:38 INFO: successfully placed ask cny order of 0.5000 nbt at 7.22963472 on bter
2015/09/16-05:34:25 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:34:38 INFO: successfully placed ask cny order of 0.5000 nbt at 7.22963472 on bter
2015/09/16-05:35:25 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:35:38 INFO: successfully placed ask cny order of 0.5000 nbt at 7.22963472 on bter
2015/09/16-05:36:25 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:36:38 INFO: successfully placed ask cny order of 0.5000 nbt at 7.22963472 on bter
2015/09/16-05:37:25 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:37:38 INFO: successfully placed ask cny order of 0.5000 nbt at 7.22963472 on bter
2015/09/16-05:38:25 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:38:38 INFO: successfully placed ask cny order of 0.5000 nbt at 7.22963472 on bter
2015/09/16-05:39:25 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:39:59 INFO: successfully placed ask cny order of 0.5000 nbt at 7.22963472 on bter
2015/09/16-05:40:25 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:40:38 INFO: successfully placed ask cny order of 0.5000 nbt at 7.22963472 on bter
2015/09/16-05:41:25 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:41:38 INFO: successfully placed ask cny order of 0.5000 nbt at 7.22963472 on bter
2015/09/16-05:42:25 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:42:39 INFO: successfully placed ask cny order of 0.5000 nbt at 7.22963472 on bter
2015/09/16-05:43:25 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:43:39 INFO: successfully placed ask cny order of 0.5000 nbt at 7.22963472 on bter
2015/09/16-05:44:26 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:44:39 INFO: successfully placed ask cny order of 0.5000 nbt at 7.22963472 on bter
2015/09/16-05:45:26 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:45:40 INFO: successfully placed ask cny order of 0.5000 nbt at 7.22963472 on bter
2015/09/16-05:46:07 INFO: price of cny moved from 6.36860000 to 6.37210000, will try to delete orders on bter
2015/09/16-05:46:21 INFO: successfully deleted all orders for cny on bter
2015/09/16-05:46:23 INFO: successfully placed ask cny order of 0.5000 nbt at 7.23360792 on bter
2015/09/16-05:46:26 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:47:07 INFO: price of cny moved from 6.37210000 to 6.36890000, will try to delete orders on bter
2015/09/16-05:47:08 INFO: successfully deleted all orders for cny on bter
2015/09/16-05:47:11 INFO: successfully placed ask cny order of 0.5000 nbt at 7.22997528 on bter
2015/09/16-05:47:26 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:48:10 INFO: successfully placed ask cny order of 0.5000 nbt at 7.22997528 on bter
2015/09/16-05:48:26 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:49:10 INFO: successfully placed ask cny order of 0.5000 nbt at 7.22997528 on bter
2015/09/16-05:49:26 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:50:10 INFO: successfully placed ask cny order of 0.5000 nbt at 7.22997528 on bter
2015/09/16-05:50:26 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:51:26 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:51:33 ERROR: unable to retrieve order book for cny on bter: exception caught: [Errno -2] Name or service not known
2015/09/16-05:51:33 WARNING: need to resynchronize trading bot for cny on bter because the deviation reached 27.63
2015/09/16-05:51:33 INFO: waiting 11.16 seconds to synchronize with other trading bots for cny on bter
2015/09/16-05:52:26 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:52:41 ERROR: unable to retrieve order book for cny on bter: exception caught: [Errno -2] Name or service not known
2015/09/16-05:52:41 INFO: price of cny moved from 6.36890000 to 6.37225000, will try to delete orders on bter
2015/09/16-05:53:26 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:53:27 INFO: successfully deleted all orders for cny on bter
2015/09/16-05:53:31 INFO: successfully placed ask cny order of 0.5000 nbt at 7.23377820 on bter
2015/09/16-05:53:31 WARNING: need to resynchronize trading bot for cny on bter because the deviation reached 20.64
2015/09/16-05:53:32 INFO: waiting 12.83 seconds to synchronize with other trading bots for cny on bter
2015/09/16-05:53:51 INFO: successfully placed ask cny order of 0.5000 nbt at 7.23377820 on bter
2015/09/16-05:54:26 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:54:47 INFO: price of cny moved from 6.37225000 to 6.37530000, will try to delete orders on bter
2015/09/16-05:54:50 INFO: successfully deleted all orders for cny on bter
2015/09/16-05:54:53 INFO: successfully placed ask cny order of 0.5000 nbt at 7.23724056 on bter
2015/09/16-05:55:17 INFO: price of cny moved from 6.37530000 to 6.37210000, will try to delete orders on bter
2015/09/16-05:55:19 INFO: successfully deleted all orders for cny on bter
2015/09/16-05:55:23 INFO: successfully placed ask cny order of 0.5000 nbt at 7.23360792 on bter
2015/09/16-05:55:26 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:56:21 INFO: successfully placed ask cny order of 0.5000 nbt at 7.23360792 on bter
2015/09/16-05:56:26 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:57:22 INFO: successfully placed ask cny order of 0.5000 nbt at 7.23360792 on bter
2015/09/16-05:57:26 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:58:22 INFO: successfully placed ask cny order of 0.5000 nbt at 7.23360792 on bter
2015/09/16-05:58:27 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-05:59:21 INFO: successfully placed ask cny order of 0.5000 nbt at 7.23360792 on bter
2015/09/16-05:59:27 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-06:00:21 INFO: successfully placed ask cny order of 0.5000 nbt at 7.23360792 on bter
2015/09/16-06:00:27 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-06:01:21 INFO: successfully placed ask cny order of 0.5000 nbt at 7.23360792 on bter
2015/09/16-06:01:27 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-06:02:18 INFO: price of cny moved from 6.37210000 to 6.36885000, will try to delete orders on bter
2015/09/16-06:02:24 INFO: successfully deleted all orders for cny on bter
2015/09/16-06:02:27 INFO: successfully placed ask cny order of 0.5000 nbt at 7.22991852 on bter
2015/09/16-06:02:27 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-06:03:21 INFO: successfully placed ask cny order of 0.5000 nbt at 7.22991852 on bter
2015/09/16-06:03:27 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-06:04:21 INFO: successfully placed ask cny order of 0.5000 nbt at 7.22991852 on bter
2015/09/16-06:04:27 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-06:05:21 INFO: successfully placed ask cny order of 0.5000 nbt at 7.22991852 on bter
2015/09/16-06:05:27 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-06:06:21 INFO: successfully placed ask cny order of 0.5000 nbt at 7.22991852 on bter
2015/09/16-06:06:27 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-06:07:21 INFO: successfully placed ask cny order of 0.5000 nbt at 7.22991852 on bter
2015/09/16-06:07:27 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
I started the bot again with this result:
2015/09/16-11:31:12 ERROR: unable to delete all orders for cny on bter: exception caught: [Errno -2] Name or service not known
2015/09/16-11:31:12 INFO: adjusting nonce of bter to 1
2015/09/16-11:31:20 INFO: successfully deleted all orders for cny on bter
2015/09/16-11:31:24 INFO: waiting 4.33 seconds to synchronize with other trading bots for cny on bter
2015/09/16-11:31:34 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-11:32:09 INFO: successfully placed ask cny order of 20.9000 nbt at 7.23173484 on bter
2015/09/16-11:32:33 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-11:32:35 ERROR: submit: socket error (timed out)
2015/09/16-11:32:52 ERROR: submit: socket error (timed out)
2015/09/16-11:33:18 ERROR: submit: socket error (timed out)
2015/09/16-11:33:20 ERROR: submit: socket error (timed out)
2015/09/16-11:33:34 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-11:33:37 ERROR: submit: socket error (timed out)
2015/09/16-11:33:40 ERROR: unable to retrieve order book for cny on bter: exception caught: [Errno -2] Name or service not known
2015/09/16-11:33:41 WARNING: need to resynchronize trading bot for cny on bter because the deviation reached 31.75
2015/09/16-11:33:48 INFO: waiting 7.47 seconds to synchronize with other trading bots for cny on bter
2015/09/16-11:34:04 ERROR: submit: socket error (timed out)
2015/09/16-11:34:22 ERROR: submit: socket error (timed out)
2015/09/16-11:34:34 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-11:34:43 ERROR: submit: socket error (timed out)
2015/09/16-11:34:58 ERROR: submit: socket error (timed out)
2015/09/16-11:35:06 ERROR: submit: socket error (timed out)
2015/09/16-11:35:23 ERROR: submit: socket error (timed out)
2015/09/16-11:35:36 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
2015/09/16-11:35:45 ERROR: submit: socket error (timed out)
2015/09/16-11:35:50 ERROR: submit: socket error (timed out)
2015/09/16-11:35:51 ERROR: submit: socket error (timed out)
2015/09/16-11:35:54 WARNING: need to resynchronize trading bot for cny on bter because the deviation reached 63.36
2015/09/16-11:35:54 INFO: waiting 5.41 seconds to synchronize with other trading bots for cny on bter
2015/09/16-11:36:02 ERROR: submit: socket error (timed out)
2015/09/16-11:36:14 ERROR: submit: socket error (timed out)
2015/09/16-11:36:34 INFO: bter - balance: 0.00000000 rate: 0.00% ppm: 0.00000000 efficiency: 0.00% rejects: 0 missings: 0 - APIKEY
All other bots run fine.
Nagalim
September 16, 2015, 11:41am
#44
That’s a pain to code for me because 1) I’d need a custodial address on the test server and 2) I haven’t really looked into how rpc with a custodial address works or what commands are fun and stuff like that, so I’d be starting from the drawing board.
@masterOfDisaster Just use a normal offset please. Like 0.004
That’s what you get if you try to mess with the parameters
I don’t see how the offset is related to “ERROR: submit: socket error (timed out)”, but I followed your recommendation and set the offset to 0.004.
The bot still refuses to work
Is the server still running on 45.55.55.197:3333
?
Nagalim
September 16, 2015, 12:03pm
#46
Yah, I’ve been running on it fine overnight (using the fillfactor so I’m throwing in exactly 5 nbt). I’m heading to work now, but I can take another look later. This is why I’m not confident about pushing this to the rest of the network: there’s a lot of potential for issues.
Maybe I need to remake it using a bigger server. The socket issues are usually to do with connectivity or something.
Dunno how, but:
2015/09/16-12:04:10 ERROR: submit: socket error (timed out)
2015/09/16-12:04:17 ERROR: submit: socket error (timed out)
2015/09/16-12:04:45 INFO: bter - balance: 0.02894546 rate: 28.96% ppm: 0.00420286 efficiency: 100.00% rejects: 0 missings: 0 - cny - ask: 20.9000 x 28.96% -
It’s partly working again!
Nagalim
September 16, 2015, 12:08pm
#48
Hoorah! Try it with the fillfactor (if you dare) so you can play around with the ratios and get comfortable with what it’s doing with the rate. Remember I have exactly 5 nbt up so if you put up multiples of 5 you will probably see recognizable numbers.
willy
September 16, 2015, 1:19pm
#49
This thread is, obviously, very interesting for ALP. There are so many ideas and thoughts in only 48 posts, that I’m having a hard time tying all the information together.
How do you imagine a example proposal?
X-Pool
Exchanges:
Yexchange - 2500
Zcoin - 2500
Fixed rate: 0.3%
Grant: 5000 (0 pool fee in this example)
Where are the targets in this model or how can one force competition with a dutch auction?
1 Like
Nagalim
September 16, 2015, 1:32pm
#50
You’re a little confused I think. The grant would list pseudonym, exchange, type, strategy, SAF, tolerance, etc. Then, with regards to the reward, it would look like this:
7.5 NBT/day dual side, 450 NBT/month.
There are no targets or % rates. Competition is forced by the very concept of fixed cost in a much more aggressive way than on fixed reward pools.
Nagalim
September 16, 2015, 7:44pm
#51
Here’s the motion I was considering proposing soon. I was going to name the thread “Fixed Cost ALP on BTC/NBT Bter Nupond Term 4&5”:
Motion RIPEMD160 hash: tbc
=##=##=##=##=##=## Motion hash starts with this line ##=##=##=##=##=##=
Operator: @Nagalim
Type: Fixed Cost ALP
Exchange: Bter.com
Pair: NBT/BTC
Strategy: Moderate Peg
Spread After Fees: 1%
Tolerance: 1% (0.01)
Bid Cost: 7.5 NBT/day
Ask Cost: 7.5 NBT/day
Operator Fee: 100 NBT
Total Grant: 550 NBT
Term 5 Requested Funds: 450 NBT
If @Nagalim decides at any time that the use of the fixed cost software may compromise the NuPond brand, the pool may switch over to a fixed reward pool at dual side 2,500 NBT targets with 0.3%/day reward rates.
=##=##=##=##=##=## Motion hash ends with this line ##=##=##=##=##=##=
1 Like
willy
September 16, 2015, 8:01pm
#52
Let’s see if I came any further here with my understanding process:
You will pay 7.5 nubits every day.
The more liquidity one user provides on the pair, the greater his stake of said 7.5 nbt will be?
There is no way the daily payout will be less then 7.5 nbt?
1 Like
Nagalim
September 16, 2015, 8:05pm
#53
Every minute, I evaluate the maximum rate of distribution based on how much liquidity I register. I take 7.5 NBT/day and divide by the total liquidity received to get the daily rate for that minute. There are imperfections, but I’m pretty sure there’s no way I could possibly pay out more than 7.5 NBT/day. Less than can happen if people do weird stuff or if there’s no one providing. If just one person provides 1 NBT of liquidity they get a rate of 750%/day (per side if they play their cards right).
If you want to check it out get a normal cny/nbt pybot running on NuPond and switch to this server:
45.55.55.197:3333
mhps
September 17, 2015, 12:54am
#54
I think it’s better to get its own thread to limit discussions to bter-cny pool instance only, and to increase visbility of the motion. This current thread may see a lot of general discussion and ideas.
Also note that there have been only four persons participated in discussion. We need existing pool operators’, more LPs’ and developers’ input in this thread.@Cybnate @henry @woolly_sammoth @nmei @desrever
2 Likes
Nagalim
September 17, 2015, 1:19am
#55
Well, we’re still in testing stages. I wasn’t actually proposing that motion, willy wanted an example. But yes, other pool operators should check it out and weigh in. This may end up being something we all use.
Edit: So apparently there’s a call in the main loop of server.py that asks for the TxFee and errors out if it can’t find it. I can’t have Nu running cause it takes too much memory. So, it looks like I won’t be able to do long term continuous testing. However, the pseudo-continuous stuff is pretty promising.
By the way, to find the total liquidity being provided take 750 and divide by the current rate %. Like right now it’s 25.71%, so I can easily find that there’s 29.17 NBT being provided on sell side.
mhps
September 17, 2015, 1:16pm
#56
From the fixed cost client print out – rate goes above 100% out of the blue, for one line.
Nagalim
September 17, 2015, 1:28pm
#57
Probably because that’s when other people did pybot restarts and their liquidity dropped out for a minute. During that minute you were providing all the liquidity, so you got all the reward. If you have just 1 NBT of liquidity you can get up to 750% rates if no one else is providing with you.
mhps
September 17, 2015, 1:38pm
#58
It was soon after, but not right after, my bot restarted. Just to be sure this auto-restarting doesn’t happen at about the same time amoung all LPs, right?
Nagalim
September 17, 2015, 1:42pm
#59
I didn’t think it did, but I can look into it later. The time between restarts is an adjustable parameter but the phase may sinc up because of the way the server syncs all the pybots. It’s very possible that if you have the same restart period as everyone else you will all restart at the same time. Is that a big problem? Can you think of a solution? The only thing I can come up with is to roll a random number or something.
mhps
September 17, 2015, 1:56pm
#60
Nagalim:
roll a random number
That is what I am thinking… like sleep rand(20) minutes before restarting.