Open erkarl opened 3 years ago
* [ ] got convertation err
2021-01-06 06:24:38.3838 [OpenDEX] trace: Base asset balance 30 (maxinbound: 0, maxoutbound: 30) and quote asset balance 2.5 (maxinbound: 2.4499095, maxoutbound: 2.45). 2021-01-06 06:24:38.3838 [OpenDEX] trace: Replacing ETH/BTC buy order with id arby-ETH/BTC-buy-order, quantity 0.36923458 and price 0.03362593 2021-01-06 06:24:38.3838 [OpenDEX] trace: Replacing ETH/BTC sell order with id arby-ETH/BTC-sell-order, quantity 0.5643896 and price 0.03465007 2021-01-06 06:24:38.3838 [OpenDEX] trace: Creating ETH/BTC sell order with id arby-ETH/BTC-sell-order, quantity 0.5643896 and price 0.03465007 2021-01-06 06:24:38.3838 [OpenDEX] trace: Creating ETH/BTC buy order with id arby-ETH/BTC-buy-order, quantity 0.36923458 and price 0.03362593 2021-01-06 06:24:38.3838 [Centralized] info: Base asset balance 0.37296423 and quote asset balance 0.01946175 2021-01-06 06:24:39.3939 [OpenDEX] warn: 2 UNKNOWN: The number 38769630.9 cannot be converted to a BigInt because it is not an integer. Retrying in 5000ms. 2021-01-06 06:24:44.4444 [Centralized] trace: New price: 0.034105 2021-01-06 06:24:44.4444 [OpenDEX] trace: Base asset balance 30 (maxinbound: 0, maxoutbound: 30) and quote asset balance 2.5 (maxinbound: 2.4499095, maxoutbound: 2.45). 2021-01-06 06:24:44.4444 [Centralized] info: Base asset balance 0.37296423 and quote asset balance 0.01946175 2021-01-06 06:24:44.4444 [OpenDEX] trace: Replacing ETH/BTC buy order with id arby-ETH/BTC-buy-order, quantity 0.36923458 and price 0.033593425 2021-01-06 06:24:44.4444 [OpenDEX] trace: Replacing ETH/BTC sell order with id arby-ETH/BTC-sell-order, quantity 0.56493571 and price 0.034616575 2021-01-06 06:24:44.4444 [OpenDEX] trace: Creating ETH/BTC buy order with id arby-ETH/BTC-buy-order, quantity 0.36923458 and price 0.033593425 2021-01-06 06:24:44.4444 [OpenDEX] warn: 2 UNKNOWN: The number 38769630.9 cannot be converted to a BigInt because it is not an integer. Retrying in 5000ms.
This is an issue with xud and fixed in https://github.com/ExchangeUnion/xud/pull/2054
* [ ] got convertation err
2021-01-06 06:24:38.3838 [OpenDEX] trace: Base asset balance 30 (maxinbound: 0, maxoutbound: 30) and quote asset balance 2.5 (maxinbound: 2.4499095, maxoutbound: 2.45). 2021-01-06 06:24:38.3838 [OpenDEX] trace: Replacing ETH/BTC buy order with id arby-ETH/BTC-buy-order, quantity 0.36923458 and price 0.03362593 2021-01-06 06:24:38.3838 [OpenDEX] trace: Replacing ETH/BTC sell order with id arby-ETH/BTC-sell-order, quantity 0.5643896 and price 0.03465007 2021-01-06 06:24:38.3838 [OpenDEX] trace: Creating ETH/BTC sell order with id arby-ETH/BTC-sell-order, quantity 0.5643896 and price 0.03465007 2021-01-06 06:24:38.3838 [OpenDEX] trace: Creating ETH/BTC buy order with id arby-ETH/BTC-buy-order, quantity 0.36923458 and price 0.03362593 2021-01-06 06:24:38.3838 [Centralized] info: Base asset balance 0.37296423 and quote asset balance 0.01946175 2021-01-06 06:24:39.3939 [OpenDEX] warn: 2 UNKNOWN: The number 38769630.9 cannot be converted to a BigInt because it is not an integer. Retrying in 5000ms. 2021-01-06 06:24:44.4444 [Centralized] trace: New price: 0.034105 2021-01-06 06:24:44.4444 [OpenDEX] trace: Base asset balance 30 (maxinbound: 0, maxoutbound: 30) and quote asset balance 2.5 (maxinbound: 2.4499095, maxoutbound: 2.45). 2021-01-06 06:24:44.4444 [Centralized] info: Base asset balance 0.37296423 and quote asset balance 0.01946175 2021-01-06 06:24:44.4444 [OpenDEX] trace: Replacing ETH/BTC buy order with id arby-ETH/BTC-buy-order, quantity 0.36923458 and price 0.033593425 2021-01-06 06:24:44.4444 [OpenDEX] trace: Replacing ETH/BTC sell order with id arby-ETH/BTC-sell-order, quantity 0.56493571 and price 0.034616575 2021-01-06 06:24:44.4444 [OpenDEX] trace: Creating ETH/BTC buy order with id arby-ETH/BTC-buy-order, quantity 0.36923458 and price 0.033593425 2021-01-06 06:24:44.4444 [OpenDEX] warn: 2 UNKNOWN: The number 38769630.9 cannot be converted to a BigInt because it is not an integer. Retrying in 5000ms.
This is an issue with xud and fixed in ExchangeUnion/xud#2054
got it, changed xud of master, to xud from the branch works fine with it.
2
digit)
2021-01-07 04:01:45.4545 [Centralized] info: Swap success. Accumulated ETH quantity: 0.0012
2021-01-07 04:01:45.4545 [Centralized] trace: New price: 0.032066
2021-01-07 04:01:45.4545 [OpenDEX] trace: Replacing ETH/BTC buy order with id arby-ETH/BTC-buy-order, quantity 0.36923458 and price 0.03158501
2021-01-07 04:01:45.4545 [OpenDEX] trace: Replacing ETH/BTC sell order with id arby-ETH/BTC-sell-order, quantity 0.60085861 and price 0.03254699
2021-01-07 04:01:45.4545 [Centralized] info: Starting centralized exchange ETH/BTC market sell order (quantity: 0.0012)
2021-01-07 04:01:45.4545 [OpenDEX] trace: Order arby-ETH/BTC-buy-order created
2021-01-07 04:01:45.4545 [Centralized] trace: New price: 0.032065
2021-01-07 04:01:46.4646 [Centralized] trace: New price: 0.032064
2021-01-07 04:01:46.4646 [OpenDEX] trace: Order arby-ETH/BTC-sell-order created
2021-01-07 04:01:46.4646 [Centralized] warn: Failed to execute CEX order: InvalidOrder: binance {"code":-1013,"msg":"Filter failure: MIN_NOTIONAL"}. Retrying in 1000ms
2021-01-07 04:01:46.4646 [Centralized] trace: New price: 0.032063
2021-01-07 04:01:46.4646 [Centralized] trace: New price: 0.032058
2021-01-07 04:01:46.4646 [Centralized] trace: New price: 0.032059
2021-01-07 04:01:46.4646 [Centralized] trace: New price: 0.032058
2021-01-07 04:01:47.4747 [Centralized] trace: New price: 0.032057
2021-01-07 04:01:47.4747 [Centralized] trace: New price: 0.032055
2021-01-07 04:01:47.4747 [Centralized] trace: New price: 0.032056
2021-01-07 04:01:47.4747 [Centralized] warn: Failed to execute CEX order: InvalidOrder: binance {"code":-1013,"msg":"Filter failure: MIN_NOTIONAL"}. Retrying in 1000ms
2021-01-07 04:01:47.4747 [Centralized] trace: New price: 0.032055
2021-01-07 04:01:47.4747 [Centralized] trace: New price: 0.032056
2021-01-07 04:01:47.4747 [Centralized] trace: New price: 0.032055
2021-01-07 04:01:47.4747 [Centralized] trace: New price: 0.032056
2021-01-07 04:01:48.4848 [Centralized] trace: New price: 0.032057
2021-01-07 04:01:48.4848 [Centralized] trace: New price: 0.032058
2021-01-07 04:01:48.4848 [Centralized] warn: Failed to execute CEX order: InvalidOrder: binance {"code":-1013,"msg":"Filter failure: MIN_NOTIONAL"}. Retrying in 1000ms
2021-01-07 04:01:48.4848 [Centralized] trace: New price: 0.03206
2021-01-07 04:01:49.4949 [Centralized] trace: New price: 0.032062
2021-01-07 04:01:49.4949 [Centralized] trace: New price: 0.03206
This PR adds support for dynamically calculating the minimum supported CEX order quantity. Previously, the limits were hardcoded. This was causing issues because the price increase made the hardcoded limits invalid.