-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add DCA statistics and aggregation methods
Introduced JupiterUserDcaStats class for aggregating user's DCA statistics. Enhanced JupiterManager with methods for DCA order filtering, aggregation, and detailed statistics. Updated test cases to validate these new functionalities.
- Loading branch information
Showing
4 changed files
with
444 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
jupiter/src/main/java/com/mmorrell/jupiter/model/JupiterUserDcaStats.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.mmorrell.jupiter.model; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
|
||
import java.util.Set; | ||
import org.p2p.solanaj.core.PublicKey; | ||
|
||
/** | ||
* Data Transfer Object for aggregating a user's DCA statistics. | ||
*/ | ||
@Data | ||
@AllArgsConstructor | ||
public class JupiterUserDcaStats { | ||
private long totalOrders; | ||
private double totalVolumeUsd; | ||
private Set<PublicKey> uniqueInputTokens; | ||
private Set<PublicKey> uniqueOutputTokens; | ||
} |
Oops, something went wrong.