Databricks Genie One and Genie App Builder: Set Up a Cross-Border Liquidity Premium Management Workspace for a Proprietary Trading Firm
Speaker background
The speaker moved from an Amazon Prime delivery driver role into quantitative analysis. That operational background included international delivery-driver carrier management, where success depended on monitoring routes, cut-off times, capacity, exceptions, service-level risk, and cross-border handoffs.
The same operating mindset applies to liquidity management. A delivery network decides where capacity must be positioned before demand arrives. A cross-border liquidity desk decides where cash, credit, settlement access, and hedges must be positioned before market windows close. The key difference is that the cargo is capital and the delay cost appears as spread, funding cost, trapped capital, settlement risk, or missed premium capture.
This guide builds a learning and prototype workspace for a proprietary trading firm that monitors Singapore and South Korea liquidity corridors. It explains how Databricks Genie, Genie One, Genie Agents, Genie Ontology, Genie App Builder, and Agent Bricks can support research, monitoring, and controlled decision support.
Important scope and safety boundary
Databricks Free Edition is a no-cost, serverless-only, quota-limited environment intended for learning, experimentation, and prototyping. It does not provide guaranteed reliability, support, or a service-level agreement. Free Edition includes one SQL warehouse limited to 2X-Small, up to three Databricks Apps, limited serverless compute, and fair-use quotas that can stop compute for the rest of a day or, in extreme cases, a month. Treat the workspace created here as a research and demonstration environment, not a production trading, payment, treasury, or regulatory reporting system.
Genie App Builder is a Beta feature that must be enabled by an administrator through Databricks Previews. It also requires a supported region, partner-powered AI features, App Space permission, and possibly cross-Geo processing. These conditions may not be available in every Free Edition workspace. This guide therefore builds a Free Edition baseline first, then explains how to add the preview and enterprise capabilities when they are available.
Do not connect the prototype directly to an execution venue, bank payment rail, production order-management system, or treasury account. Do not allow an agent to submit orders, transfer funds, change limits, or send external instructions. Keep all proposed actions in read-only or human-approved form.
South Korean foreign-exchange activity can fall within the Foreign Exchange Transactions Act and related regulations. The Act covers foreign exchange in Korea, cross-border payments and receipts, and certain KRW-denominated transactions outside Korea. Legal, compliance, tax, sanctions, licensing, and market-conduct reviews are required before a firm operationalizes a Korean corridor.
Business objective
The workspace should help a liquidity analyst answer four recurring questions:
- Where is liquidity available now across SGD, USD, EUR, and KRW corridors?
- Which observed premium is economic after funding, fees, hedging, settlement delay, and capital lock-up?
- Is the premium caused by a temporary operational bottleneck, a market imbalance, or a regulatory constraint?
- Which permitted response should an analyst investigate, and what evidence supports it?
The system must distinguish observation from execution. Genie should explain and cite data. The app should surface opportunities, assumptions, and risks. A human should approve every consequential action outside the workspace.
Market context
Singapore acts as a major Southeast Asian foreign-exchange, payments, and digital-finance hub. South Korea combines an active retail digital-asset market with a more constrained foreign-exchange environment. This can create differences among onshore and offshore prices, available settlement windows, hedging costs, and the amount of capital that must be pre-positioned.
Traditional correspondent banking can introduce operating-hour restrictions, multiple intermediaries, reconciliation work, fees, and prefunding. Newer private and permissioned settlement networks attempt to reduce these frictions.
Partior describes a private permissioned ledger offering 24/7 atomic settlement, payment-versus-payment settlement, just-in-time funding, real-time finality, and ISO 20022 compatibility. This can reduce cut-off constraints and trapped liquidity, but a prop firm must still confirm participating institutions, supported currencies, onboarding eligibility, actual corridor coverage, and contractual finality.
Kinexys by J.P. Morgan provides bank-led permissioned blockchain services for programmable payments and near-real-time settlement. KB Kookmin Bank announced in September 2026 that it would use the Kinexys Blockchain Deposit Account network for corporate import and export payments, initially supporting USD remittances and serving Korea and Singapore among other markets. This is relevant evidence of improving institutional payment connectivity, not permission for a prop firm to access the network directly.
Citi Token Services supports 24/7 liquidity transfer between participating Citi branches. Citi also announced integration with its 24/7 USD Clearing network for institutional clients, initially in selected markets. The firm should model this as provider-specific capability with eligibility and geographic constraints, not as universal 24/7 coverage for SGD, USD, and EUR.
The 2026 architecture hypothesis is therefore not that liquidity premiums disappear. Tokenized deposits and always-on settlement can reduce some timing and prefunding components. Remaining premiums may reflect balance-sheet scarcity, credit limits, compliance checks, local-market regulation, conversion costs, counterparty concentration, market impact, and access restrictions.
Step 1: Create the Databricks Free Edition workspace
Open the Databricks Free Edition sign-up page and create an account using an approved personal or training identity. Free Edition replaced the legacy Community Edition.
After the workspace opens, confirm that the left navigation provides access to Workspace, Catalog, SQL Editor or SQL Warehouses, Dashboards, Genie, and Apps where available.
Use a workspace name that clearly marks the environment as non-production, for example:
sg_kr_liquidity_research_free_nonprod
Record the following limitations in the project README:
- No production service-level agreement.
- Serverless-only compute.
- Daily and monthly fair-use quotas.
- One SQL warehouse with a maximum 2X-Small size.
- A maximum of three Databricks Apps.
- Apps stop automatically after the documented Free Edition runtime window and must be restarted.
- Restricted outbound internet access.
- Some models, integrations, previews, regions, and administrator functions may be unavailable.
Create a workspace folder:
/Workspace/Users/<your-user>/cross_border_liquidity
Inside it, create these subfolders:
00_admin01_ingestion02_quality03_metrics04_genie05_app06_research
Create a notebook named 00_environment_check and run:
SELECT current_user() AS current_user, current_catalog() AS current_catalog, current_schema() AS current_schema, current_timestamp() AS checked_at; Save the result as evidence that the workspace and SQL surface are working.
Step 2: Define the liquidity premium operating model
Before loading data, define the unit of analysis. For this prototype, one record represents a tradable or observable corridor at a timestamp.
Use the following dimensions:
- Observation timestamp in UTC.
- Source market, such as Singapore or South Korea.
- Destination market.
- Base currency and quote currency.
- Venue or provider.
- Instrument type, such as spot FX, NDF, stablecoin pair, tokenized deposit rail, or bank payment rail.
- Settlement method.
- Expected settlement time.
- Cut-off time and calendar.
- Available notional.
- Bid, ask, and mid price.
- Funding rate.
- Hedging cost.
- Transaction fee.
- Network or withdrawal fee.
- Expected market impact.
- Capital lock-up duration.
- Counterparty, operational, regulatory, and model-risk flags.
Define gross premium in basis points:
gross_premium_bps = ((destination_executable_price / source_executable_price) - 1) * 10000
Define net premium:
net_premium_bps = gross_premium_bps - funding_bps - hedge_bps - fee_bps - slippage_bps - capital_lock_bps - risk_buffer_bps
Define executable capacity:
executable_notional = least(source_available_notional, destination_available_notional, corridor_limit, counterparty_limit, settlement_limit)
Define expected premium value:
expected_premium_value = executable_notional * net_premium_bps / 10000
A positive gross premium is not automatically an opportunity. The desk should only label a record as a candidate when all required data is fresh, the net premium exceeds a configured threshold, executable capacity is positive, compliance status is clear, and the settlement path is available.
For a learning prototype, use these example thresholds and clearly label them as assumptions rather than market facts:
- Market data freshness: no older than 60 seconds for live-style monitoring, or no older than the source batch interval for delayed data.
- Minimum net premium: 20 basis points.
- Minimum executable notional: USD-equivalent 100,000.
- Maximum single-provider concentration: 35 percent.
- Minimum settlement-confidence score: 0.90.
- Mandatory manual review for every Korea-related candidate.
Step 3: Create the Unity Catalog data model
Open SQL Editor and select the Free Edition SQL warehouse.
Create a catalog and schemas. If catalog creation is restricted in the workspace, use the default catalog and create only the schemas.
CREATE CATALOG IF NOT EXISTS liquidity_lab; CREATE SCHEMA IF NOT EXISTS liquidity_lab.raw; CREATE SCHEMA IF NOT EXISTS liquidity_lab.silver; CREATE SCHEMA IF NOT EXISTS liquidity_lab.gold; CREATE SCHEMA IF NOT EXISTS liquidity_lab.governance; Create a raw market observation table:
CREATE TABLE IF NOT EXISTS liquidity_lab.raw.market_observations ( observation_id STRING, observed_at TIMESTAMP, source_market STRING, destination_market STRING, base_currency STRING, quote_currency STRING, provider STRING, instrument_type STRING, bid DECIMAL(20,8), ask DECIMAL(20,8), available_notional DECIMAL(20,2), settlement_method STRING, expected_settlement_minutes INT, source_file STRING, ingested_at TIMESTAMP ) USING DELTA; Create provider and corridor reference tables:
CREATE TABLE IF NOT EXISTS liquidity_lab.governance.provider_registry ( provider_id STRING, provider_name STRING, provider_type STRING, permissioned_network BOOLEAN, currencies ARRAY<STRING>, operates_24x7 BOOLEAN, access_status STRING, due_diligence_status STRING, evidence_url STRING, last_reviewed_at TIMESTAMP ) USING DELTA; CREATE TABLE IF NOT EXISTS liquidity_lab.governance.corridor_limits ( corridor_id STRING, source_market STRING, destination_market STRING, base_currency STRING, quote_currency STRING, max_notional_usd DECIMAL(20,2), min_net_premium_bps DECIMAL(10,2), manual_review_required BOOLEAN, regulatory_status STRING, effective_from DATE, effective_to DATE ) USING DELTA; Create cost and risk inputs:
CREATE TABLE IF NOT EXISTS liquidity_lab.silver.corridor_costs ( observed_at TIMESTAMP, corridor_id STRING, funding_bps DECIMAL(10,2), hedge_bps DECIMAL(10,2), fee_bps DECIMAL(10,2), slippage_bps DECIMAL(10,2), capital_lock_bps DECIMAL(10,2), risk_buffer_bps DECIMAL(10,2), settlement_confidence DECIMAL(5,4), compliance_status STRING ) USING DELTA; Create a decision log that records human review but does not execute trades:
CREATE TABLE IF NOT EXISTS liquidity_lab.governance.decision_log ( decision_id STRING, candidate_id STRING, proposed_action STRING, analyst STRING, decision STRING, rationale STRING, decided_at TIMESTAMP, external_ticket_id STRING ) USING DELTA; Add comments so Genie can understand the business meaning:
COMMENT ON TABLE liquidity_lab.governance.decision_log IS 'Human review record for research candidates. This table does not authorize or execute trades or payments.'; Step 4: Load a safe prototype dataset
Do not use confidential positions, live customer data, bank credentials, personal data, or MNPI in Free Edition.
Prepare CSV files containing synthetic or properly licensed delayed data. If synthetic data is used, add is_synthetic = true and never present the results as live market evidence.
For each input file, include a data dictionary and source note. Recommended files are:
market_observations.csvcorridor_costs.csvcorridor_limits.csvprovider_registry.csvsettlement_calendar.csvfx_rates.csv
Upload the files through Catalog Explorer or the workspace file-upload interface. Create or replace the Delta tables from the uploaded CSVs.
Run quality checks:
SELECT COUNT(*) AS row_count, SUM(CASE WHEN observed_at IS NULL THEN 1 ELSE 0 END) AS missing_timestamp, SUM(CASE WHEN bid <= 0 OR ask <= 0 THEN 1 ELSE 0 END) AS invalid_price, SUM(CASE WHEN ask < bid THEN 1 ELSE 0 END) AS crossed_input, SUM(CASE WHEN available_notional < 0 THEN 1 ELSE 0 END) AS invalid_notional FROM liquidity_lab.raw.market_observations; Quarantine invalid records instead of silently deleting them. Add an issue reason and retain the original source identifier.
Normalize all timestamps to UTC. Store the relevant local time zone separately, such as Asia/Singapore or Asia/Seoul. Do not infer that two markets are open merely because a venue publishes a price.
Step 5: Build the curated liquidity and premium views
Create a clean view with executable prices and freshness:
CREATE OR REPLACE VIEW liquidity_lab.silver.market_clean AS SELECT *, (bid + ask) / 2 AS mid, (ask - bid) / NULLIF((bid + ask) / 2, 0) * 10000 AS spread_bps, unix_timestamp(current_timestamp()) - unix_timestamp(observed_at) AS age_seconds FROM liquidity_lab.raw.market_observations WHERE bid > 0 AND ask > 0 AND ask >= bid AND available_notional >= 0; Create a paired corridor view. The exact join depends on the instruments in the dataset. The following example pairs a buy leg and a sell leg for the same currency pair within the same observation minute:
CREATE OR REPLACE VIEW liquidity_lab.gold.premium_candidates AS WITH paired AS ( SELECT s.observation_id AS source_observation_id, d.observation_id AS destination_observation_id, date_trunc('minute', s.observed_at) AS observation_minute, concat(s.source_market, '_', d.source_market, '_', s.base_currency, '_', s.quote_currency) AS corridor_id, s.source_market, d.source_market AS destination_market, s.base_currency, s.quote_currency, s.provider AS source_provider, d.provider AS destination_provider, s.ask AS source_buy_price, d.bid AS destination_sell_price, least(s.available_notional, d.available_notional) AS venue_capacity, greatest(s.age_seconds, d.age_seconds) AS max_age_seconds, ((d.bid / NULLIF(s.ask, 0)) - 1) * 10000 AS gross_premium_bps FROM liquidity_lab.silver.market_clean s JOIN liquidity_lab.silver.market_clean d ON s.base_currency = d.base_currency AND s.quote_currency = d.quote_currency AND date_trunc('minute', s.observed_at) = date_trunc('minute', d.observed_at) AND s.source_market <> d.source_market ) SELECT p.*, c.funding_bps, c.hedge_bps, c.fee_bps, c.slippage_bps, c.capital_lock_bps, c.risk_buffer_bps, c.settlement_confidence, c.compliance_status, p.gross_premium_bps - coalesce(c.funding_bps, 0) - coalesce(c.hedge_bps, 0) - coalesce(c.fee_bps, 0) - coalesce(c.slippage_bps, 0) - coalesce(c.capital_lock_bps, 0) - coalesce(c.risk_buffer_bps, 0) AS net_premium_bps FROM paired p LEFT JOIN liquidity_lab.silver.corridor_costs c ON p.corridor_id = c.corridor_id AND p.observation_minute = date_trunc('minute', c.observed_at); Add a final eligibility view:
CREATE OR REPLACE VIEW liquidity_lab.gold.eligible_research_candidates AS SELECT p.*, least(p.venue_capacity, l.max_notional_usd) AS executable_notional, least(p.venue_capacity, l.max_notional_usd) * p.net_premium_bps / 10000 AS expected_premium_value, CASE WHEN p.max_age_seconds > 60 THEN 'STALE_DATA' WHEN p.compliance_status <> 'CLEAR' THEN 'COMPLIANCE_BLOCK' WHEN p.settlement_confidence < 0.90 THEN 'LOW_SETTLEMENT_CONFIDENCE' WHEN p.net_premium_bps < l.min_net_premium_bps THEN 'BELOW_THRESHOLD' WHEN l.manual_review_required THEN 'MANUAL_REVIEW' ELSE 'RESEARCH_CANDIDATE' END AS candidate_status FROM liquidity_lab.gold.premium_candidates p JOIN liquidity_lab.governance.corridor_limits l ON p.corridor_id = l.corridor_id WHERE current_date() BETWEEN l.effective_from AND coalesce(l.effective_to, DATE '9999-12-31'); Validate the calculation with at least one worked example. If the source executable ask is 1.3500 and the destination executable bid is 1.35675, gross premium is approximately 50 basis points. If funding, hedge, fees, slippage, capital lock, and risk buffer total 32 basis points, net premium is approximately 18 basis points. Under a 20-basis-point threshold, this is not a candidate.
Step 6: Create certified business metrics
Use metric views if the Free Edition workspace exposes the feature. Otherwise, create documented SQL views with stable names.
Certify these metrics:
gross_premium_bpsnet_premium_bpsexpected_premium_value_usdexecutable_notional_usdcapital_lock_bpssettlement_confidencedata_age_secondsprovider_concentration_pctmanual_review_count
Document the calculation grain, currency conversion rule, time zone, stale-data rule, fee treatment, and whether the value is observed, estimated, or modeled.
Create a glossary page in 06_research:
- Liquidity premium: compensation associated with scarce immediately executable liquidity after costs and constraints.
- Time premium: value attributable to settlement or operating-window delay.
- Capital lock premium: cost of cash or collateral that cannot be redeployed.
- Kimchi premium: an observed price difference between Korean and overseas digital-asset markets. It is not automatically executable, legal, transferable, or risk free.
- Tokenized deposit: a bank liability represented on a permissioned ledger, subject to the issuing bank and network rules.
- Atomic settlement: both legs settle together or neither settles.
- PvP: payment versus payment, intended to reduce principal settlement risk.
Step 7: Configure a domain-specific Genie Agent
If Genie Agents are available, open Genie Agents and create a new agent named:
SG-KR Cross-Border Liquidity Research
Genie Agents require Unity Catalog data and a pro or serverless SQL warehouse. An agent can include up to 50 tables, views, or metric views. Start with fewer than ten trusted assets to reduce ambiguity.
Add these sources:
liquidity_lab.gold.eligible_research_candidatesliquidity_lab.gold.premium_candidatesliquidity_lab.governance.provider_registryliquidity_lab.governance.corridor_limitsliquidity_lab.governance.decision_log
Add instructions:
You are a cross-border liquidity research assistant for a proprietary trading firm. Use only the approved Unity Catalog sources. Always separate gross premium from net premium. Always state the observation time, data age, currencies, providers, settlement method, capacity, and cost assumptions. Never describe a gross spread as arbitrage. Never recommend bypassing capital controls, reporting obligations, sanctions controls, exchange rules, bank conditions, or licensing requirements. Never execute or imply authorization to execute a trade, payment, transfer, hedge, or token transaction. For every South Korea corridor, state that manual compliance review is required. If data is synthetic, delayed, incomplete, stale, or modeled, say so prominently. When evidence conflicts, show the conflict rather than selecting a convenient answer. Add verified example questions and SQL:
- “Show the five highest net premiums for Singapore to South Korea during the last hour.”
- “Explain why the highest gross premium is not the highest net premium.”
- “Which candidates are blocked by stale data or settlement confidence?”
- “Compare capital lock cost between correspondent banking and permissioned-ledger settlement assumptions.”
- “Which provider assumption has the greatest effect on expected premium value?”
For every verified answer, inspect the generated SQL. Confirm that joins preserve the intended grain and that currency conversion does not double count.
Step 8: Use Genie One as the analyst entry point
Genie One provides a simpler interface for business users to ask natural-language questions, discover governed assets, view dashboards, and run Databricks Apps. Answers are grounded through Unity Catalog permissions.
Ask the following sequence during a desk review:
- “What changed in SGD-USD and USD-KRW net premium during the last available hour?”
- “Break the change into market spread, funding, hedging, fees, slippage, and capital-lock components.”
- “Show only records with fresh data and clear compliance status.”
- “List the evidence and assumptions behind each provider’s settlement-time estimate.”
- “Draft a research note for human review. Do not provide an execution instruction.”
When external connectors are available, Genie One can connect to Google Drive, Gmail, Google Calendar, Microsoft 365 services including SharePoint, Teams, Outlook, and Calendar, as well as other supported systems. Each user authenticates individually. The connections are governed through Unity Catalog and Unity Gateway, and write actions depend on user-approved scopes and source permissions.
For this use case, connect only approved research folders and mailboxes. Do not connect unrestricted executive mail, client communications, payment instructions, personal drives, or deal rooms.
Example prompt:
Use SharePoint to find the latest approved Korea FX compliance note. Compare it with the current corridor assumptions in Unity Catalog. Return the differences with citations. Do not update any record and do not draft an external message. Step 9: Apply Genie Ontology to business meaning
Genie Ontology is a governed context layer that combines modeled Unity Catalog semantics with inferred context from approved assets such as metric views, dashboards, SQL queries, and Genie Agents. It can rank context by relevance and authority and show source citations.
For the liquidity workspace, curate authoritative definitions for:
- “Net premium” means premium after all modeled costs and buffers.
- “Available liquidity” means executable notional after venue, corridor, counterparty, and settlement limits.
- “24/7” means the technical service may accept transactions continuously; it does not guarantee continuous market depth, compliance approval, bank availability, or unrestricted currency access.
- “Instant” means under the provider’s documented finality model; it does not guarantee end-to-end availability across every intermediary.
- “Korea candidate” always requires manual compliance review.
- “Research candidate” is not an order or trade recommendation.
Give the curated metric view and approved compliance page higher authority than ad hoc notebook comments. Review inferred ontology snippets for stale limits, informal definitions, or analyst shorthand.
Do not assume that Genie Ontology automatically converts all enterprise content into a perfect knowledge graph. It learns and ranks context from connected and governed assets. Accuracy still depends on source quality, permissions, freshness, conflict resolution, and human curation.
Step 10: Use deep research for multi-hypothesis analysis
Where the deep-research experience is available, use it for questions that require a plan, multiple hypotheses, and cited evidence rather than a single SQL answer.
Example research question:
Why did the modeled Singapore-to-Korea net liquidity premium increase during the selected period? Create a research plan and test at least these hypotheses: 1. The offshore market spread widened. 2. KRW hedging cost increased. 3. A settlement cut-off or holiday increased capital lock time. 4. Provider capacity decreased. 5. The apparent change is a stale-data or currency-conversion artifact. Use governed workspace data and approved connected documents. Cite every conclusion and identify unsupported hypotheses. Do not recommend or initiate a trade. The expected output should include the plan, data inspected, hypothesis-specific evidence, calculation lineage, conflicting evidence, confidence, and unresolved questions.
A strong answer may conclude that a 55-basis-point gross premium is reduced to 12 basis points after funding, hedge, fees, and capital lock, while the configured minimum is 20 basis points. The correct decision is then “no research candidate,” even though the headline spread appears attractive.