Skip to content

Commit 12087dc

Browse files
committed
[paribu] naming fix
1 parent 23baad1 commit 12087dc

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

xchange-examples/src/main/java/org/knowm/xchange/examples/paribu/marketdata/ParibuTickerDemo.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ public class ParibuTickerDemo {
1919
public static void main(String[] args) throws IOException {
2020

2121
// Use the factory to get BTCTurk exchange API using default settings
22-
Exchange btcTurk = ParibuDemoUtils.createExchange();
22+
Exchange paribu = ParibuDemoUtils.createExchange();
2323

2424
// Interested in the public market data feed (no authentication)
25-
MarketDataService marketDataService = btcTurk.getMarketDataService();
25+
MarketDataService marketDataService = paribu.getMarketDataService();
2626

2727
generic(marketDataService);
2828
raw((ParibuMarketDataService) marketDataService);
@@ -34,7 +34,7 @@ private static void generic(MarketDataService marketDataService) throws IOExcept
3434
}
3535

3636
private static void raw(ParibuMarketDataService marketDataService) throws IOException {
37-
ParibuTicker btcTurkTicker = marketDataService.getParibuTicker();
38-
System.out.println(btcTurkTicker.toString());
37+
ParibuTicker paribuTicker = marketDataService.getParibuTicker();
38+
System.out.println(paribuTicker.toString());
3939
}
4040
}

xchange-paribu/src/test/java/org/knowm/xchange/paribu/ParibuAdapterTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ public void testTickerAdapter() throws IOException {
2424
InputStream is = ParibuAdapterTest.class.getResourceAsStream("/marketdata/example-ticker-data.json");
2525
// Use Jackson to parse it
2626
ObjectMapper mapper = new ObjectMapper();
27-
ParibuTicker btcTurkTicker = mapper.readValue(is, ParibuTicker.class);
27+
ParibuTicker paribuTicker = mapper.readValue(is, ParibuTicker.class);
2828

29-
Ticker ticker = ParibuAdapters.adaptTicker(btcTurkTicker,new CurrencyPair("BTC","TRY"));
29+
Ticker ticker = ParibuAdapters.adaptTicker(paribuTicker,new CurrencyPair("BTC","TRY"));
3030
assertThat(ticker).isNotNull();
3131
assertThat(ticker.getLast()).isEqualTo(new BigDecimal("41400"));
3232
assertThat(ticker.getAsk()).isEqualTo(new BigDecimal("41450.89"));

xchange-paribu/src/test/java/org/knowm/xchange/paribu/dto/marketdata/ParibuTickerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ public void testUnmarshal() throws IOException {
2121
// Read in the JSON from the example resources
2222
InputStream is = ParibuTickerTest.class.getResourceAsStream("/marketdata/example-ticker-data.json");
2323
ObjectMapper mapper = new ObjectMapper();
24-
ParibuTicker btcTurkTicker = mapper.readValue(is, ParibuTicker.class);
24+
ParibuTicker paribuTicker = mapper.readValue(is, ParibuTicker.class);
2525

2626
// Verify that the example data was unmarshalled correctly
27-
BTC_TL btcTL = btcTurkTicker.getBtcTL();
27+
BTC_TL btcTL = paribuTicker.getBtcTL();
2828
assertThat(btcTL.getLast()).isEqualTo(new BigDecimal("41400"));
2929
assertThat(btcTL.getLowestAsk()).isEqualTo(new BigDecimal("41450.89"));
3030
assertThat(btcTL.getHighestBid()).isEqualTo(new BigDecimal("41400"));

0 commit comments

Comments
 (0)