Skip to content

SO: min orders amounts as asset thresholds? #554

@bitphage

Description

@bitphage

calculate_asset_thresholds() is inaccurate, it calculates min threshold to allocate based on center price. I did some thinking and it appears calculate_min_amounts() results can be also used as thresholds.

There is a rare bug when strategy need to place order, and allocation amount is less than min allowed amount, so check_min_order_size() will correct amount up, but the balance is less than new amount --> oops, worker is disabled.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions