Skip to content

Handle when Exchange Server performs MarketClosed on an order #235

Description

@dfelton

At times when gemini performs maintenance on their servers they will close all open limit orders an a trading pair. When this happens, the application does not recognize that the order is not live anymore and will not re-place the original buy / sell order.

Example order status after this event has occurred:

Order Id           	71173822663
Id                 	71173822663
Symbol             	batusd
Exchange           	gemini
Avg Execution Price	0.00
Side               	sell
Type               	exchange limit
Timestamp          	1637985141
Timestampms        	1637985141681
Is Live            	false
Is Cancelled       	true
Is Hidden          	false
Was Forced         	false
Executed Amount    	0
Client Order Id    	repeater_42249_sell_1637985141.1653
Reason             	MarketClosed
Options            	
	0: maker-or-cancel
Price              	2.24251
Original Amount    	1.1725
Remaining Amount   	1.1725

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions