public async Task <OrderResponse> MarketOrderAsync(string pair, decimal quantity, Side side) { CoinbaseProApi.NetCore.Entities.SIDE cbpSide = this.CoinbaseProSideReConverter(side); var response = await coinbasePro.PlaceMarketOrderAsync(cbpSide, pair, quantity); return(this.CoinbaseProOrderResponseConverter(response)); }
public async Task <OrderResponse> StopLossOrderAsync(string pair, decimal quantity, decimal price, decimal stopPrice, Side side) { CoinbaseProApi.NetCore.Entities.SIDE cbpSide = this.CoinbaseProSideReConverter(side); var response = await coinbasePro.PlaceStopOrderAsync(CoinbaseProApi.NetCore.Entities.StopType.LIMIT, cbpSide, pair, price, stopPrice, quantity); return(this.CoinbaseProOrderResponseConverter(response)); }
public OrderResponse LimitOrder(string pair, decimal price, decimal quantity, Side side) { CoinbaseProApi.NetCore.Entities.SIDE cbpSide = this.CoinbaseProSideReConverter(side); var response = coinbasePro.PlaceLimitOrder(cbpSide, pair, quantity, price); return(this.CoinbaseProOrderResponseConverter(response)); }