Skip to main content

Common Types

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

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.