Skip to content

Type Alias: UserNonFundingLedgerDelta ​

ts
type UserNonFundingLedgerDelta = 
  | {
  toPerp: boolean;
  type: "accountClassTransfer";
  usdc: string;
}
  | {
  type: "deposit";
  usdc: string;
}
  | {
  fee: string;
  nonce: number;
  type: "withdraw";
  usdc: string;
}
  | {
  destination: string;
  fee: string;
  type: "internalTransfer";
  usdc: string;
  user: string;
}
  | {
  destination: string;
  type: "subAccountTransfer";
  usdc: string;
  user: string;
}
  | {
  accountValue: string;
  leverageType: "Cross" | "Isolated";
  liquidatedNtlPos?: string;
  liquidatedPositions: object[];
  type: "liquidation";
}
  | {
  amount: string;
  token?: string;
  type: "rewardsClaim";
}
  | {
  amount: string;
  destination: string;
  fee: string;
  feeToken?: string;
  nativeTokenFee?: string;
  nonce?: number | null;
  token: string;
  type: "spotTransfer";
  usdcValue: string;
  user: string;
}
  | {
  fee?: string;
  type: "vaultCreate";
  usdc: string;
  vault: string;
}
  | {
  type: "vaultDeposit" | "vaultDistribution";
  usdc: string;
  vault: string;
}
  | {
  basis: string;
  closingCost: string;
  commission: string;
  netWithdrawnUsd: string;
  requestedUsd: string;
  type: "vaultWithdraw";
  user: string;
  vault: string;
}
  | {
  type: "vaultLeaderCommission";
  usdc: string;
  user: string;
}
  | {
  amount: string;
  destination: string;
  destinationDex: string;
  fee: string;
  feeToken: string;
  nativeTokenFee: string;
  nonce: number;
  sourceDex: string;
  token: string;
  type: "send";
  usdcValue: string;
  user: string;
}
  | {
  amount: string;
  token: string;
  type: "deployGasAuction" | "spotGenesis";
}
  | {
  amount: string;
  isDeposit: boolean;
  token: string;
  type: "cStakingTransfer";
}
  | {
  amount: string;
  interestAmount: string;
  operation: "borrow" | "repay" | "supply" | "withdraw";
  token: string;
  type: "borrowLend";
}
  | {
  amount: string;
  dex: string;
  token: string;
  type: "activateDexAbstraction";
};

Non-funding ledger entries, shared by Info and WebSocket history.

Built by Siebly. Open source SDKs for exchange APIs.