protected override IDictionary <string, object> CreateOrderBody(Order order) { var body = base.CreateOrderBody(order); body["isisolated"] = "FALSE"; body["sideEffectType"] = "MARGIN_BUY"; return(body); }
/// <summary> /// Cancels the order with the specified ID /// </summary> /// <param name="order">The order to cancel</param> /// <returns>True if the request was made for the order to be canceled, false otherwise</returns> public override bool CancelOrder(Order order) { return(_api.CancelOrder(order)); }
/// <summary> /// Updates the order with the same id /// </summary> /// <param name="order">The new order information</param> /// <returns>True if the request was made for the order to be updated, false otherwise</returns> public override bool UpdateOrder(Order order) { return(_api.UpdateOrder(order)); }
/// <summary> /// Places a new order and assigns a new broker ID to the order /// </summary> /// <param name="order">The order to be placed</param> /// <returns>True if the request for a new order has been placed, false otherwise</returns> public override bool PlaceOrder(Order order) { return(_api.PlaceOrder(order)); }