3 Commits

Author SHA256 Message Date
minimons 8de6dc259e 19: Add 'collateralUsd' to JupiterPerpsPosition 2026-06-29 13:46:29 +02:00
minimons 86171c9440 X: Add publishGitHub.sh 2026-06-29 13:32:46 +02:00
minimons 092ea1e320 19: Add 'collateralUsd' to JupiterPerpsPosition 2026-06-29 13:09:40 +02:00
2 changed files with 25 additions and 2 deletions
+21
View File
@@ -0,0 +1,21 @@
#!/usr/bin/env bash
set -euo pipefail
SOURCE="$HOME/projects/com_r35157_nenjim-hubd-api"
TARGET="$HOME/projects/com_r35157_nenjim-hubd-api_github_snapshot"
rsync -a --delete \
--exclude '.git' \
"$SOURCE/" \
"$TARGET/"
cd "$TARGET"
git add -A
if git diff --cached --quiet; then
echo "No snapshot changes to publish."
exit 0
fi
git commit -m "Mirror snapshot"
git push
@@ -13,11 +13,13 @@ import java.math.BigDecimal;
* @param entryPrice the entry price of the position, denominated in USDC * @param entryPrice the entry price of the position, denominated in USDC
* @param direction whether the position is long or short * @param direction whether the position is long or short
* @param tradedTokenMint the mint address of the token being traded * @param tradedTokenMint the mint address of the token being traded
* @param collateralUsd the amount of USD representing the collateral for this position
*/ */
public record JupiterPerpsPosition( public record JupiterPerpsPositiono(
ΩJupiterPerpsPositionAccountΩ positionAccount, ΩJupiterPerpsPositionAccountΩ positionAccount,
ΩUSDCPriceΩ entryPrice, ΩUSDCPriceΩ entryPrice,
JupiterPerpsPositionDirection direction, JupiterPerpsPositionDirection direction,
ΩSPLMintAddressΩ tradedTokenMint ΩSPLMintAddressΩ tradedTokenMint,
ΩUSDCAmountΩ collateralUsd
) { ) {
} }