File tree Expand file tree Collapse file tree
xchange-examples/src/main/java/org/knowm/xchange/examples/paribu/marketdata
xchange-paribu/src/test/java/org/knowm/xchange/paribu Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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" ));
Original file line number Diff line number Diff 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" ));
You can’t perform that action at this time.
0 commit comments