示例#1
0
        private async Task <BitmexApiResult <OrderDto> > SellInternal(string symbol, int amount, decimal price)
        {
            var posOrderParams = OrderPOSTRequestParams.CreateSimpleLimit(symbol, amount, price, OrderSide.Sell);

            return(await _client.Execute(BitmexApiUrls.Order.PostOrder, posOrderParams));
        }
示例#2
0
        async Task <OrderDto> Sell(string symbol, int quantity, decimal price)
        {
            var cmd = OrderPOSTRequestParams.CreateSimpleLimit(symbol, quantity, price, OrderSide.Sell);

            return(await _bitmexSvc.Execute(BitmexApiUrls.Order.PostOrder, cmd));
        }