Skip to content

Commit

Permalink
Add test for specific user DCA stats retrieval
Browse files Browse the repository at this point in the history
Introduce a new test method `testSpecificUserAdhoc` in JupiterTest.java, which retrieves and logs DCA statistics for a specific user using the JupiterManager. This enhances test coverage by validating the statistics retrieval functionality for individual users.
  • Loading branch information
skynetcap committed Oct 31, 2024
1 parent 8504ada commit 482875e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions jupiter/src/test/java/JupiterTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,14 @@ public void testGetRecentDcaOrders() {
log.info("Recent DCA Orders [{}]: {}", recentDcaOrders.size(), recentDcaOrders);
}

@Test
public void testSpecificUserAdhoc() {
JupiterManager manager = new JupiterManager(client);
var stats = manager.getUserDcaStatistics(new PublicKey("F4KpkufKgrPD5j1JaDTpvTb36cGHBYUnXtmGgnsVHRkB"));

log.info("Stats F4KpkufKgrPD5j1JaDTpvTb36cGHBYUnXtmGgnsVHRkB: {}", stats.toString());
}

@Test
public void testGetActiveDcaOrders() {
JupiterManager manager = new JupiterManager(client);
Expand Down

0 comments on commit 482875e

Please sign in to comment.