Skip to main content

Common Types

type Blockchain = 'solana' | 'polygon' | 'ethereum';

type VenueStatus = 'active' | 'paused' | 'deprecated';

type StrategyStatus = 'active' | 'paused';

type TransactionStatus = 'unsigned' | 'pending' | 'confirmed' | 'failed';

type OperationType = 'supply' | 'unwind';

/** Cancelled operations are reported as 'failed' via GET.
 *  The cancel endpoint returns 'CANCELLED' in its own response. */
type OperationStatus = 'pending' | 'awaiting_signature' | 'submitted' | 'confirmed' | 'failed';

Wallet Identifier Types

Several endpoints accept multiple ways to identify a wallet:
/** Identify by address or ID */
type WalletIdentifier = { walletAddress: string } | { walletId: number };

/** Identify by address, ID, or user ID */
type WalletOrUserIdentifier =
  | { walletAddress: string }
  | { walletId: number }
  | { userId: string };
Use whichever identifier is most convenient for your integration. All identifiers resolve to the same underlying wallet and return identical data.