Exemplo n.º 1
0
        /// <summary>
        /// This is the first API call required to cancel an order.
        /// Only orders with makes and with an available_amount of more than 0 can be cancelled.
        /// </summary>
        /// <param name="apiParams"></param>
        /// <returns></returns>
        public async Task <CreateResponse> CreateCancellation(string apiParams)
        {
            var httpContent = new StringContent(apiParams, Encoding.UTF8, "application/json");
            var result      = await ExecuteCall(cancellationRequest, httpContent);

            return(CreateResponse.FromJson(result));
        }