Kraken Embed

kraken_embed

Domain types

KrakenEmbedCancelCustomOrderInput = { user_id }

Request body for cancelling a custom order.

KrakenEmbedCancelCustomOrderPath = { order_id }

Path parameters for cancelling a custom order.

KrakenEmbedCancelCustomOrderResponse = { result, error, errors }

Response body for cancelling a custom order.

KrakenEmbedCancelCustomOrderResult = { order }

Result payload for cancel custom order response.

KrakenEmbedCreateCustomOrderInput = { action, name, trigger, 1 more... }

Request body for creating a custom order.

KrakenEmbedCreateCustomOrderResponse = { result, error, errors }

Response body for creating a custom order.

KrakenEmbedCreateCustomOrderResult = { order }

Result payload for create custom order response.

KrakenEmbedCurrentDayPnl = { pnl, since }

Current day profit and loss for a portfolio, calculated from the most recent available balance.

KrakenEmbedCustomOrder = { id, action, created_at, 4 more... }

Full custom order object.

KrakenEmbedCustomOrderAction = { amount, fee_bps, quote, 2 more... }

Trade action for a custom order.

KrakenEmbedCustomOrderAmount = { amount, asset, asset_class }

Asset amount for custom order actions.

KrakenEmbedCustomOrderOccurrence = { id, created_at, status, 5 more... }

A single execution occurrence of a custom order.

KrakenEmbedCustomOrderOccurrenceExecutedAction = { quote_id }

Executed action details for a custom order occurrence.

KrakenEmbedCustomOrderOccurrenceTrigger = { type }

Trigger metadata for a custom order occurrence.

KrakenEmbedCustomOrderQuoteAsset = { asset }

Target asset for the other side of the custom order trade.

KrakenEmbedCustomOrderStatus = { status, reason }

Custom order status with optional reason for cancelled or paused states.

KrakenEmbedCustomOrderTrigger = { base_asset, condition, quote_asset, 2 more... }

Price trigger for a custom order. The order executes when base_asset/quote_asset rate meets the condition against target_price.

KrakenEmbedEarnAmount = { converted, native }

An earn amount with native and converted values.

KrakenEmbedEarnAprEstimate = { high, low }

Low and high estimate of the yield of an earn asset.

KrakenEmbedEarnAsset = { apr_estimate, user_allocation }

A single asset that can yield rewards.

KrakenEmbedEarnUserAllocation = { total_allocated, total_rewarded, upcoming_reward_date }

User allocation for an earn asset.

KrakenEmbedGetAssetListQueryParamsSchema = { filter[assets], filter[platform_statuses], filter[tradable_only], 6 more... }

Query parameters for listing and filtering available assets.

KrakenEmbedGetCustomOrderHistoryQueryParams = { order_id, user_id }

Query parameters for getting custom order history.

KrakenEmbedGetCustomOrderHistoryResponse = { result, error, errors }

Response body for getting custom order execution history.

KrakenEmbedGetCustomOrderHistoryResult = { history }

Result payload for custom order history response.

KrakenEmbedGetCustomOrderQueryParams = { order_id, user_id }

Query parameters for getting a single custom order.

KrakenEmbedGetCustomOrderResponse = { result, error, errors }

Response body for getting a single custom order.

KrakenEmbedGetCustomOrderResult = { order }

Result payload for get custom order response.

KrakenEmbedGetEarnAssetsKrakenResponse = { result, error, errors }

Kraken API response envelope for earn assets.

KrakenEmbedGetEarnAssetsQueryParams = { assets, currency, user }

Query parameters for listing earn assets.

KrakenEmbedGetEarnAssetsResponse = { data }

List of earn assets with APR estimates and optional user allocations.

KrakenEmbedGetEarnAssetsResult = { assets }

Result payload for earn assets response.

KrakenEmbedGetEarnSummaryKrakenResponse = { result, error, errors }

Kraken API response envelope for earn summary.

KrakenEmbedGetEarnSummaryQueryParams = { currency }

Query parameters for getting an earn summary.

KrakenEmbedGetEarnSummaryResponse = { data }

Earn summary for a user including Auto-Earn status, total rewards, and upcoming payouts.

KrakenEmbedGetEarnSummaryResult = { auto_earn_eligible, auto_earn_enabled, num_earning_assets, 6 more... }

Result payload for earn summary response.

KrakenEmbedGetPortfolioDetailsQueryParamsSchema = { quote }

Query parameters for portfolio details endpoint.

KrakenEmbedGetPortfolioSummaryQueryParams = { include[current_day_pnl], quote }

Query parameters for getting a portfolio summary.

KrakenEmbedGetPortfolioSummaryResponse = { data }

High-level summary of a user's portfolio including total value, available balance, and unrealized P&L.

KrakenEmbedGetPortfolioTransactionsQueryParamsSchema = { assets, cursor, from_time, 8 more... }

Query parameters for filtering and paginating portfolio transactions.

KrakenEmbedGetQuoteQueryParams = { user_id }

Query parameters for getting a quote status.

KrakenEmbedListCustomOrdersQueryParams = { user_id, cursor, statuses }

Query parameters for listing custom orders.

KrakenEmbedListCustomOrdersResponse = { result, error, errors }

Response body for listing custom orders.

KrakenEmbedListCustomOrdersResult = { orders }

Result payload for list custom orders response.

KrakenEmbedStartAddressMetadata = { address, document_number, document_type, 1 more... }

Optional best-effort metadata hints for proof of address verification.

KrakenEmbedStartAddressVerificationURLInput = { document_url, type, debug, 1 more... }

Input payload for starting proof of address verification via URL.

KrakenEmbedStartIdentityInfo = { date_of_birth, full_name }

Identity information hints including full name and date of birth for proof of identity verification.

KrakenEmbedStartIdentityMetadata = { document_number, document_type, expiration_date, 3 more... }

Optional best-effort metadata hints for proof of identity verification.

KrakenEmbedStartIdentityVerificationURLInput = { front_url, type, back_url, 2 more... }

Input payload for starting proof of identity verification via URLs.

KrakenEmbedStartLivenessVerificationURLInput = { center_url, left_url, right_url, 2 more... }

Input payload for starting proof of liveness verification via URLs.

KrakenEmbedStartVerificationDebug = { outcome }

Debug options for start verification. Only works in non-production environments.

Discriminated union of all start verification URL input types.

KrakenEmbedStartVerificationURLResponse = { result }

Response body for starting verification via URL.

KrakenEmbedStartVerificationURLResult = { verification_id }

Result payload for start verification URL response.

KrakenEmbedToggleAutoEarnKrakenResponse = { error, errors, result }

Kraken API response envelope for toggle auto-earn. Result is null on success.

KrakenEmbedToggleAutoEarnQueryParams = { want_enabled }

Query parameters for toggling Auto-Earn.

KrakenEmbedToggleAutoEarnResponse = { data }

Response from toggling Auto-Earn. The response body is empty on success.

KrakenEmbedUpcomingReward = { accumulated_amount, asset, date, 1 more... }

An upcoming earn reward for a specific asset.