Пример #1
0
        /// <summary>
        /// Get balances Get current currency balance from all or single exchange.
        /// </summary>
        /// <exception cref="CoinAPI.OMS.API.SDK.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="exchangeId">Filter the balances to the specific exchange. (optional)</param>
        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
        /// <returns>Task of List&lt;Balance&gt;</returns>
        public async System.Threading.Tasks.Task <List <Balance> > V1BalancesGetAsync(string exchangeId = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            CoinAPI.OMS.API.SDK.Client.ApiResponse <List <Balance> > localVarResponse = await V1BalancesGetWithHttpInfoAsync(exchangeId, cancellationToken).ConfigureAwait(false);

            return(localVarResponse.Data);
        }
Пример #2
0
        /// <summary>
        /// Get balances Get current currency balance from all or single exchange.
        /// </summary>
        /// <exception cref="CoinAPI.OMS.API.SDK.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="exchangeId">Filter the balances to the specific exchange. (optional)</param>
        /// <returns>Task of List&lt;Balance&gt;</returns>
        public async System.Threading.Tasks.Task <List <Balance> > V1BalancesGetAsync(string exchangeId = default(string))
        {
            CoinAPI.OMS.API.SDK.Client.ApiResponse <List <Balance> > localVarResponse = await V1BalancesGetAsyncWithHttpInfo(exchangeId);

            return(localVarResponse.Data);
        }
Пример #3
0
 /// <summary>
 /// Get balances Get current currency balance from all or single exchange.
 /// </summary>
 /// <exception cref="CoinAPI.OMS.API.SDK.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="exchangeId">Filter the balances to the specific exchange. (optional)</param>
 /// <returns>List&lt;Balance&gt;</returns>
 public List <Balance> V1BalancesGet(string exchangeId = default(string))
 {
     CoinAPI.OMS.API.SDK.Client.ApiResponse <List <Balance> > localVarResponse = V1BalancesGetWithHttpInfo(exchangeId);
     return(localVarResponse.Data);
 }
Пример #4
0
        /// <summary>
        /// Send new order This request creating new order for the specific exchange.
        /// </summary>
        /// <exception cref="CoinAPI.OMS.API.SDK.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="orderNewSingleRequest">OrderNewSingleRequest object.</param>
        /// <returns>Task of OrderExecutionReport</returns>
        public async System.Threading.Tasks.Task <OrderExecutionReport> V1OrdersPostAsync(OrderNewSingleRequest orderNewSingleRequest)
        {
            CoinAPI.OMS.API.SDK.Client.ApiResponse <OrderExecutionReport> localVarResponse = await V1OrdersPostAsyncWithHttpInfo(orderNewSingleRequest);

            return(localVarResponse.Data);
        }
Пример #5
0
 /// <summary>
 /// Get order execution report Get the last order execution report for the specified order. The requested order does not need to be active or opened.
 /// </summary>
 /// <exception cref="CoinAPI.OMS.API.SDK.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="clientOrderId">The unique identifier of the order assigned by the client.</param>
 /// <returns>OrderExecutionReport</returns>
 public OrderExecutionReport V1OrdersStatusClientOrderIdGet(string clientOrderId)
 {
     CoinAPI.OMS.API.SDK.Client.ApiResponse <OrderExecutionReport> localVarResponse = V1OrdersStatusClientOrderIdGetWithHttpInfo(clientOrderId);
     return(localVarResponse.Data);
 }
Пример #6
0
 /// <summary>
 /// Send new order This request creating new order for the specific exchange.
 /// </summary>
 /// <exception cref="CoinAPI.OMS.API.SDK.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="orderNewSingleRequest">OrderNewSingleRequest object.</param>
 /// <returns>OrderExecutionReport</returns>
 public OrderExecutionReport V1OrdersPost(OrderNewSingleRequest orderNewSingleRequest)
 {
     CoinAPI.OMS.API.SDK.Client.ApiResponse <OrderExecutionReport> localVarResponse = V1OrdersPostWithHttpInfo(orderNewSingleRequest);
     return(localVarResponse.Data);
 }
Пример #7
0
 /// <summary>
 /// Get open orders Get last execution reports for open orders across all or single exchange.
 /// </summary>
 /// <exception cref="CoinAPI.OMS.API.SDK.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="exchangeId">Filter the open orders to the specific exchange. (optional)</param>
 /// <returns>List&lt;OrderExecutionReport&gt;</returns>
 public List <OrderExecutionReport> V1OrdersGet(string exchangeId = default(string))
 {
     CoinAPI.OMS.API.SDK.Client.ApiResponse <List <OrderExecutionReport> > localVarResponse = V1OrdersGetWithHttpInfo(exchangeId);
     return(localVarResponse.Data);
 }
Пример #8
0
        /// <summary>
        /// Cancel all orders request This request cancels all open orders on single specified exchange.
        /// </summary>
        /// <exception cref="CoinAPI.OMS.API.SDK.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="orderCancelAllRequest">OrderCancelAllRequest object.</param>
        /// <returns>Task of Message</returns>
        public async System.Threading.Tasks.Task <Message> V1OrdersCancelAllPostAsync(OrderCancelAllRequest orderCancelAllRequest)
        {
            CoinAPI.OMS.API.SDK.Client.ApiResponse <Message> localVarResponse = await V1OrdersCancelAllPostAsyncWithHttpInfo(orderCancelAllRequest);

            return(localVarResponse.Data);
        }
Пример #9
0
 /// <summary>
 /// Cancel all orders request This request cancels all open orders on single specified exchange.
 /// </summary>
 /// <exception cref="CoinAPI.OMS.API.SDK.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="orderCancelAllRequest">OrderCancelAllRequest object.</param>
 /// <returns>Message</returns>
 public Message V1OrdersCancelAllPost(OrderCancelAllRequest orderCancelAllRequest)
 {
     CoinAPI.OMS.API.SDK.Client.ApiResponse <Message> localVarResponse = V1OrdersCancelAllPostWithHttpInfo(orderCancelAllRequest);
     return(localVarResponse.Data);
 }
Пример #10
0
        /// <summary>
        /// Get order execution report Get the last order execution report for the specified order. The requested order does not need to be active or opened.
        /// </summary>
        /// <exception cref="CoinAPI.OMS.API.SDK.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="clientOrderId">The unique identifier of the order assigned by the client.</param>
        /// <returns>Task of OrderExecutionReport</returns>
        public async System.Threading.Tasks.Task <OrderExecutionReport> V1OrdersStatusClientOrderIdGetAsync(string clientOrderId)
        {
            CoinAPI.OMS.API.SDK.Client.ApiResponse <OrderExecutionReport> localVarResponse = await V1OrdersStatusClientOrderIdGetAsyncWithHttpInfo(clientOrderId);

            return(localVarResponse.Data);
        }