Search in sources :

Example 96 with TradeService

use of org.knowm.xchange.service.trade.TradeService in project XChange by knowm.

the class QuoineOrdersListDemo method main.

public static void main(String[] args) throws IOException {
    Exchange exchange = QuoineExamplesUtils.createExchange();
    TradeService tradeService = exchange.getTradeService();
    raw((QuoineTradeServiceRaw) tradeService);
}
Also used : Exchange(org.knowm.xchange.Exchange) TradeService(org.knowm.xchange.service.trade.TradeService)

Example 97 with TradeService

use of org.knowm.xchange.service.trade.TradeService in project XChange by knowm.

the class TradeDemo method main.

public static void main(String[] args) throws IOException {
    Exchange exchange = QuoineExamplesUtils.createExchange();
    TradeService tradeService = exchange.getTradeService();
    generic(tradeService);
    raw((QuoineTradeServiceRaw) tradeService);
}
Also used : Exchange(org.knowm.xchange.Exchange) TradeService(org.knowm.xchange.service.trade.TradeService)

Example 98 with TradeService

use of org.knowm.xchange.service.trade.TradeService in project XChange by knowm.

the class KunaExchangeTestIntegration method test_exchange_services.

@Test
public void test_exchange_services() {
    AccountService accountService = getExchange().getAccountService();
    TradeService tradeService = getExchange().getTradeService();
    MarketDataService marketDataService = getExchange().getMarketDataService();
    assertThat(accountService).isNotNull();
    assertThat(tradeService).isNotNull();
    assertThat(marketDataService).isNotNull();
    assertThat(accountService instanceof KunaAccountService);
    assertThat(tradeService instanceof KunaTradeService);
    assertThat(marketDataService instanceof KunaMarketDataService);
}
Also used : KunaAccountService(org.knowm.xchange.kuna.service.KunaAccountService) KunaTradeService(org.knowm.xchange.kuna.service.KunaTradeService) TradeService(org.knowm.xchange.service.trade.TradeService) MarketDataService(org.knowm.xchange.service.marketdata.MarketDataService) KunaMarketDataService(org.knowm.xchange.kuna.service.KunaMarketDataService) KunaTradeService(org.knowm.xchange.kuna.service.KunaTradeService) AccountService(org.knowm.xchange.service.account.AccountService) KunaAccountService(org.knowm.xchange.kuna.service.KunaAccountService) KunaMarketDataService(org.knowm.xchange.kuna.service.KunaMarketDataService) Test(org.junit.Test)

Aggregations

TradeService (org.knowm.xchange.service.trade.TradeService)98 Exchange (org.knowm.xchange.Exchange)65 LimitOrder (org.knowm.xchange.dto.trade.LimitOrder)29 BigDecimal (java.math.BigDecimal)28 OpenOrders (org.knowm.xchange.dto.trade.OpenOrders)22 Test (org.junit.Test)19 IOException (java.io.IOException)16 ExchangeSpecification (org.knowm.xchange.ExchangeSpecification)14 CurrencyPair (org.knowm.xchange.currency.CurrencyPair)14 MarketOrder (org.knowm.xchange.dto.trade.MarketOrder)11 OpenOrdersParamCurrencyPair (org.knowm.xchange.service.trade.params.orders.OpenOrdersParamCurrencyPair)9 UserTrades (org.knowm.xchange.dto.trade.UserTrades)8 CoinsuperExchange (org.knowm.xchange.coinsuper.CoinsuperExchange)7 Order (org.knowm.xchange.dto.Order)7 Date (java.util.Date)6 OrderType (org.knowm.xchange.dto.Order.OrderType)5 Trades (org.knowm.xchange.dto.marketdata.Trades)5 DVChainExchange (org.knowm.xchange.dvchain.DVChainExchange)5 OpenOrdersParams (org.knowm.xchange.service.trade.params.orders.OpenOrdersParams)5 UserTrade (org.knowm.xchange.dto.trade.UserTrade)4