Skip to content

Add spot support for canceling an order by oid #25

@Thomasvanderlinden

Description

@Thomasvanderlinden

Would be nice to be able to cancel spot orders

func (api *ExchangeAPI) CancelOrderByOID(coin string, orderID int64, isSpot bool) (*CancelOrderResponse, error) {
assetId := api.meta[coin].AssetId
if isSpot {
assetId += 10000
}
return api.BulkCancelOrders([]CancelOidWire{{Asset: assetId, Oid: int(orderID)}})
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions