Skip to content

Commit

Permalink
PhoenixTest: clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
skynetcap committed Nov 28, 2023
1 parent 2031168 commit 84a31ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions phoenix/src/test/java/PhoenixTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ public void orderNormalizedTest() {
MetaplexManager metaplexManager = new MetaplexManager(client);
phoenixManager.getPhoenixMarkets().forEach(market -> {
log.info("Market: {}", market.getMarketId().toBase58());
metaplexManager.getTokenMetadata(market.getPhoenixMarketHeader().getBaseMintKey()).ifPresent(metadata -> log.info("Base token: {}", metadata.getSymbol()));
metaplexManager.getTokenMetadata(market.getPhoenixMarketHeader().getQuoteMintKey()).ifPresent(metadata -> log.info(
"Quote token: {}", metadata.getSymbol()));
metaplexManager.getTokenMetadata(market.getPhoenixMarketHeader().getBaseMintKey())
.ifPresent(metadata -> log.info("Base token: {}", metadata.getSymbol()));
metaplexManager.getTokenMetadata(market.getPhoenixMarketHeader().getQuoteMintKey())
.ifPresent(metadata -> log.info("Quote token: {}", metadata.getSymbol()));

// log.info("Detail: {}", market);
market.getBidListNormalized().forEach(phoenixOrder -> {
log.info(String.format("Bid: %.10f x %.4f, Trader: %s", phoenixOrder.getPrice(),
phoenixOrder.getSize(), phoenixOrder.getTrader().toBase58()));
Expand Down

0 comments on commit 84a31ed

Please sign in to comment.