Skip to content

0.24.2

Compare
Choose a tag to compare
@joelvai joelvai released this 31 Mar 11:23

API Nodes Interaction Improvements and Fixes

  • Fix API error details (#692) by updating to current bitshares libraries. Now instead of Execution error you will get a more meaningful error message
  • We're tracked down the causes of trx.ref_block_prefix == tapos_block_summary.block_id._hash[1] exception and added a handling for it. Now if will happen, worker will not be disabled, instead, API node will be changed and transaction resubmitted. See #680 and xeroc/python-graphenelib#144
  • The program can now better detect whether API node became stale by checking it's 'time' field of global properties (#728). This check will eliminate situation when the bot doing a reconnection to the next node and it's stale. This may be critical if you run arbitrage strategies on top of DEXBot
  • When worker failed to execute a transaction, TransactionBuilder buffer is now reset before switching to another worker. Previously it may cause an error when for some reason worker's account active key become incorrect or missing. #505

Staggered Orders New Features

  • Stop Loss feature (#730). If market bid price goes below worker lower bound, you can optionally enable Stop Loss to sell some percent of trading asset
  • Switch to disable fallback logic (#723). Sometimes, worker can fall into situation when it doesn't have enough funds to reach target spread. Such situation may occur normally in some circumstances. To overcome this, SO worker begins to cancel furthest buy orders and use these funds to place closer orders. This change allows you to disable this logic.

Staggered Orders Bugfixes

  • #720 - Fix price inversion for virtual sell orders in Staggered Orders. This fixes wrong prices in "Placing virtual sell order" log messages.
  • #750 - Add common handling of broadcasts exceptions into Staggered Orders. In previous versions, SO has own exception handling when broadcasting batch transactions. Though this custom handling didn't contain everything that retry_action() does. Now SO uses retry_action() wrapping too.
  • #706 - Make upper/lower bounds description more clear (Staggered Orders)
  • #554 - Fix Staggered Orders asset threshold. Minor issue, the change should reduce number of allocate_asset() calls, which means less log messages in debug mode
  • #721, #739 - Fix several Staggered Orders tests

King of The Hill

  • #677 KOTH is now see margin call orders. As call orders are not shown in orderbook API call, they were not visible to KOTH previously.
  • #715 - In "both" mode, when worker has 0 balance of some asset, it was an error message displayed Cannot place buy/sell order with 0 amount. Now this message will be logged only in debug mode.

Bugfixes

  • #686 - Fix GUI crash due to error in get_sorted_nodelist() call
  • #473 - Fix strategy template. There was a small error in error()
  • #727 - Fix order data reconstruction when getting order which was instantly filled. Fix is critical to upcoming arb strategies.
  • #631 - Fix validation of config file when custom config provided via --configfile cli option

Other Changes

  • #729 - Add CLI command to drop worker data. Sometimes, you may need to drop worker database data, now you can do this by invoking dexbot-cli drop-state myworker
  • #717 - Added pre-commit hooks and re-formatted code base. Code is now more clear-looking and formatted in single style
  • #731 - Added a decorator to check last run and log maintenance time. This is for strategy-makers.

Contributors:
@bitfag, @froooze