Cryptocurrency Exchange Operations · Intermediate level

Cryptocurrency Exchange Architecture

Understand the major components of a cryptocurrency exchange, including identity, wallets, order management, matching, ledgering, surveillance and resilience.

Academic draft: Full lesson text, learning activities and assessment questions are displayed as an academic draft for review. They are not an approved or open course. Enrolment, assessment submissions and recording, completion tracking and certificates are inactive.

COURSE OVERVIEW

What this course covers

Understand the major components of a cryptocurrency exchange, including identity, wallets, order management, matching, ledgering, surveillance and resilience. The course approaches the subject as a set of connected systems and decisions. Students are expected to distinguish verifiable facts from assumptions, identify where a model is incomplete and explain the operational or financial risks that follow.

This school focuses on the systems and controls behind a trading venue. Learners connect market structure with software architecture, custody, liquidity, settlement, compliance and operational resilience.

Related topics

  • crypto exchange architecture
  • centralized exchange system design
  • cryptocurrency exchange components
  • exchange order management system
  • matching engine architecture
  • crypto exchange ledger
  • wallet custody architecture
  • exchange settlement systems
  • exchange monitoring and reconciliation
  • crypto exchange disaster recovery

LEARNING OUTCOMES

What you should be able to explain

  • Map the core services in a centralised exchange architecture.
  • Explain the separation of order state, trade execution and ledger accounting.
  • Identify critical security, availability and reconciliation boundaries.

CURRICULUM

Course syllabus and module outline

  1. Exchange business models and system boundaries

    Study the concepts, operating assumptions and failure cases behind exchange business models and system boundaries. Connect the topic to the wider cryptocurrency exchange architecture framework, then record the evidence and limitations that matter in practice.

  2. Identity, account and entitlement services

    Study the concepts, operating assumptions and failure cases behind identity, account and entitlement services. Connect the topic to the wider cryptocurrency exchange architecture framework, then record the evidence and limitations that matter in practice.

  3. Order gateway, matching engine and trade events

    Study the concepts, operating assumptions and failure cases behind order gateway, matching engine and trade events. Connect the topic to the wider cryptocurrency exchange architecture framework, then record the evidence and limitations that matter in practice.

  4. Wallet custody, ledger and settlement services

    Study the concepts, operating assumptions and failure cases behind wallet custody, ledger and settlement services. Connect the topic to the wider cryptocurrency exchange architecture framework, then record the evidence and limitations that matter in practice.

  5. Monitoring, reconciliation and disaster recovery

    Study the concepts, operating assumptions and failure cases behind monitoring, reconciliation and disaster recovery. Connect the topic to the wider cryptocurrency exchange architecture framework, then record the evidence and limitations that matter in practice.

LEARNING MATERIAL

Course lessons and learning activities

This is academic-draft teaching content published for curriculum review. It is not an approved or open course. Enrolment, assessment submissions and recording, completion tracking and certificates are inactive.

Estimated study time: 4 hours

MODULE 01

Exchange business models and system boundaries

Module objective: exchange-business-models-system-boundaries

LESSON 1.1

Map exchange business models, participants, trust boundaries and the services an operator must control.

Learning objectives

Distinguish common exchange business models, identify the actors and trust boundaries in a centralised exchange, and define the system scope before selecting technology.

1. Exchange models and service scope

A centralised exchange (CEX) provides a venue or service through which customers can place orders or request conversions. A platform may operate a central limit order book, quote prices as a broker or market maker, route orders to external venues, or combine several models. These models allocate pricing, execution, inventory and counterparty responsibilities differently. A product description should state whether the platform acts as agent, principal, venue operator, custodian or technology intermediary. The legal and operational analysis depends on actual conduct, not the label used in marketing.

2. Core participants

Typical participants include retail and institutional customers, customer support, compliance, treasury, operations, market surveillance, liquidity providers, custodians, banking and payment partners, market-data vendors and infrastructure providers. Each participant has defined permissions and responsibilities. External providers create dependencies: contracts, service levels, incident contacts, data rights and exit plans should be documented.

3. System boundaries and trust zones

Separate public web and mobile clients from identity services, API gateways, order entry, matching, account services, wallet infrastructure, ledger accounting, analytics and administrative tools. Treat the matching engine, signing infrastructure, privileged administration and financial ledger as high-impact trust zones. Network segmentation, service identity, least privilege and authenticated service-to-service communication limit lateral movement. A user-facing request must never be treated as authority to alter balances or bypass server-side checks.

4. Define authoritative records

An exchange should identify which system is authoritative for each fact. The order service owns order lifecycle state; the matching engine emits execution events; the ledger records financial obligations and postings; the custody or wallet service tracks blockchain transfers and signing status. These records must be linked by stable identifiers and reconciled. A chart, cache or browser response is not an accounting record.

5. Non-functional requirements

Specify throughput, latency, availability, recovery objectives, auditability, privacy, security, data retention and operational support. Requirements should be measurable and tested under normal, peak and failure conditions. A design that is fast but cannot reconstruct a customer balance or explain a rejected order is not production-ready.

Applied case

A fictional startup plans spot trading, hosted wallets and fiat deposits. Draw the system boundary, identify internal and external actors, classify critical services and list which records prove an order, trade, deposit and customer balance. Explain which functions must remain unavailable if their authoritative service is unhealthy.

Key takeaways

• Exchange business models allocate execution, pricing and counterparty responsibilities differently.

• Trust boundaries should separate public clients from financial and privileged services.

• Each critical fact needs a clearly designated authoritative system.

• External providers are operational dependencies requiring oversight and exit planning.

• Performance, recovery, security and auditability must be explicit design requirements.

Exercise

Create a context diagram for a fictional spot exchange. Label customer, operator, liquidity, custody, banking and compliance actors; mark trust boundaries; identify authoritative records; and state three measurable non-functional requirements.

MODULE 02

Identity, account and entitlement services

Module objective: identity-account-entitlement-services

LESSON 2.1

Design identity, authentication, account controls and least-privilege entitlements for exchange services.

Learning objectives

Explain the separation between identity, authentication, account state and authorisation; map customer and staff access controls; and identify safeguards for sensitive account operations.

1. Identity and customer lifecycle

An identity service represents a person or organisation and links verified attributes, onboarding status and risk decisions to a stable internal identifier. A customer account represents the commercial relationship and may contain one or more portfolios, wallets or trading permissions. Do not use email address, phone number or a mutable username as the primary financial identity key. Account lifecycle states should be explicit, such as pending verification, active, restricted, suspended and closed, with documented transition rules.

2. Authentication and session security

Authentication establishes control of an account. Use modern password hashing, multi-factor authentication where appropriate, secure recovery, session expiry, device/session management and protections against credential stuffing. High-risk actions may require step-up authentication and a fresh risk evaluation. Recovery channels are part of the security perimeter: weak recovery can defeat strong login controls. Never log passwords, authentication secrets, recovery codes or full session tokens.

3. Authorisation and entitlements

Authentication alone does not grant permission to trade, withdraw or administer. Authorisation evaluates the subject, action, resource, account state and applicable policy. Enforce checks server-side for every sensitive operation. Apply least privilege, deny by default, separate customer permissions from employee roles and use scoped service identities between backend components. A support agent who can view a case should not automatically be able to change a balance or approve a withdrawal.

4. Customer and staff controls

Customer controls can include verification status, jurisdiction, product eligibility, transaction limits, sanctions or fraud restrictions and account lock state. Staff controls should include role-based access, approval thresholds, just-in-time elevation, strong authentication, audit trails and periodic access reviews. Sensitive changes such as beneficiary updates, withdrawal destination changes and recovery events should trigger risk-based review and customer notification where appropriate.

5. Secure state transitions and audit

Represent account restrictions and permissions as explicit state transitions, not scattered UI flags. Every transition should record actor, reason, timestamp, source, correlation identifier and approval where required. Avoid relying on frontend hiding or disabled buttons as security controls. Test horizontal privilege escalation, cross-account access, stale sessions, replayed requests and race conditions around account restriction.

Applied case

A customer passes onboarding but is later restricted after a risk alert. A previously authenticated session attempts to place an order and submit a withdrawal. Specify how account state, entitlement policy and session controls should interact. Then define which staff roles may review, release or escalate the restriction.

Key takeaways

• Identity, account relationship, authentication and authorisation are distinct concepts.

• Stable internal identifiers should anchor financial records.

• Sensitive actions require server-side policy checks and least privilege.

• Recovery flows and staff tools are part of the security boundary.

• Account state changes need traceable, controlled transitions.

Exercise

Build an access matrix for customer, support, compliance, treasury, engineer and administrator roles. Include read, trade, withdraw, restrict, approve and system-configure actions; mark prohibited combinations and required approvals.

MODULE 03

Order gateway, matching engine and trade events

Module objective: order-gateway-matching-engine-trade-events

LESSON 3.1

Trace an order through validation, matching, execution events and deterministic trade-state handling.

Learning objectives

Describe the order lifecycle, distinguish an order gateway from a matching engine, and explain how execution events should be validated, persisted and consumed safely.

1. Order entry and validation

The order gateway authenticates the customer and validates account eligibility, instrument status, order type, quantity, price increments, minimum size, available funds or assets, rate limits and applicable risk controls. Validation should use authoritative server-side data. Client-side checks improve usability but cannot protect the exchange. Every accepted request should receive a unique order identifier and idempotency strategy so retries do not create unintended duplicate orders.

2. Order lifecycle

A simplified lifecycle includes received, validated, accepted, open, partially filled, filled, cancelled, rejected or expired. State transitions must be explicit and monotonic where possible. A cancel request is not proof that an order has been cancelled: it must be processed against the current order state. If execution races with cancellation, the system must report the final quantity filled and remaining quantity accurately.

3. Matching engine responsibilities

A central limit order book typically ranks bids by price descending and asks by price ascending, then applies a time or other defined priority rule within a price level. The matching engine determines whether incoming eligible orders cross resting orders and emits executions according to the published matching policy. Market, limit, post-only, immediate-or-cancel and fill-or-kill instructions have distinct semantics and must be specified precisely. The engine should not independently invent customer balances; it operates within controlled reservation and risk boundaries.

4. Trade events and durable processing

A match may generate one or more trade events with unique execution identifiers, instrument, price, quantity, counterparties or internal account references, fees and timestamps. Events should be durably recorded before downstream consumers treat them as final. Consumers such as ledger, notifications, surveillance and reporting need idempotent processing, event versioning, replay procedures and dead-letter handling. At-least-once delivery is common; duplicate delivery must not create duplicate financial postings.

5. Market integrity and operational controls

Pre-trade controls can reject orders that exceed limits, reference stale instruments or breach account restrictions. Post-trade surveillance can identify unusual patterns for investigation. Monitor order rejection rates, matching latency, queue depth, event lag, cancellation rates and engine health. Define safe behaviour for overload, clock anomalies, corrupted book state and partial service failure. A kill switch should stop new risk-taking without destroying the audit history of existing orders and executions.

Applied case

A customer submits a limit buy, receives an accepted response, then retries after a network timeout. Meanwhile, the order partially matches and a cancellation request arrives. Describe the idempotency, state transitions and events required to return one coherent final order and execution history.

Key takeaways

• The gateway validates customer intent and risk; the matching engine applies deterministic matching rules.

• Order state and trade execution are related but distinct records.

• Retries and event redelivery require idempotency.

• Cancellation and execution can race and must resolve to a coherent final state.

• Monitoring and kill switches should preserve evidence and support safe degradation.

Exercise

Draw a sequence diagram for order submission, reservation, matching, partial fill, cancellation and ledger notification. Identify every durable identifier and the response returned for a retried request.

MODULE 04

Wallet custody, ledger and settlement services

Module objective: wallet-custody-ledger-settlement-services

LESSON 4.1

Separate blockchain custody, internal accounting, customer liabilities and settlement reconciliation.

Learning objectives

Distinguish wallet operations from the exchange ledger, explain deposit and withdrawal lifecycles, and identify controls that protect customer asset accounting and settlement integrity.

1. Wallet and custody architecture

A wallet service manages blockchain addresses, transaction construction, signing workflows, broadcast and confirmation monitoring. Hot, warm and cold storage describe different operational exposure and availability profiles. Signing keys should be isolated, access-controlled and governed by documented approval policies. A withdrawal request should pass account, compliance, limit, destination and risk checks before any signing operation. The web application must never receive private keys or direct authority to sign arbitrary transactions.

2. Internal ledger as financial record

An exchange ledger records customer and house assets, liabilities, fees, holds and movements. A double-entry design records balanced debits and credits in a defined asset and accounting context. The ledger should be append-oriented: corrections are represented by compensating entries rather than silently overwriting history. Each posting should reference its business event, idempotency key, account, asset, amount, status and timestamp. A displayed balance is derived from ledger entries and holds, not trusted as an independently editable number.

3. Deposits and confirmations

A deposit workflow detects an on-chain transaction, validates network and asset, associates it with a customer address or memo, evaluates confirmations and risk policy, and then posts a credit when the defined criteria are satisfied. Reorganizations, wrong-network deposits, unsupported tokens, duplicate observations and missing memos require explicit exception handling. Blockchain confirmation does not by itself prove that the exchange has correctly identified the customer or completed all compliance checks.

4. Withdrawals and settlement

A withdrawal moves through request, policy validation, balance reservation, approval, transaction construction, signing, broadcast, confirmation and final reconciliation. Each stage needs a durable status and correlation identifier. A timeout after broadcast is ambiguous: operators must query transaction state rather than assume failure and submit a second payment. Internal trade settlement should link executions, fees, customer ledger postings and any external asset movement.

5. Reconciliation and segregation

Reconcile customer and house ledger balances against wallet or custodian balances, pending transactions, bank or payment partner statements and trade obligations. Investigate differences with controlled exception queues and independent review. Customer assets, company assets, operational funds and fee revenue should be classified and safeguarded according to applicable legal and accounting requirements. Reconciliation must be repeatable and evidence retained.

Applied case

A withdrawal is broadcast but the provider times out before returning a transaction hash. The customer retries and support sees no completed status. Describe how the platform should prevent duplicate payment, recover transaction evidence and reconcile the eventual on-chain result to the ledger.

Key takeaways

• Wallet infrastructure controls blockchain movement; the internal ledger records exchange accounting.

• Double-entry postings and immutable audit history support balance integrity.

• Deposit and withdrawal workflows need explicit states and exception handling.

• Ambiguous broadcast outcomes must be investigated before retrying a transfer.

• Reconciliation links ledger, custody, payment and trade records.

Exercise

Create deposit and withdrawal state diagrams. For each state, specify the responsible service, evidence required, idempotency key, failure path and reconciliation control.

MODULE 05

Monitoring, reconciliation and disaster recovery

Module objective: monitoring-reconciliation-disaster-recovery

LESSON 5.1

Define exchange observability, financial control checks, incident response and tested recovery objectives.

Learning objectives

Select operational and financial control metrics, explain reconciliation as a continuous control, and design recovery plans that preserve data integrity and customer protection.

1. Observability across critical services

Collect structured logs, metrics and traces with consistent correlation identifiers across API gateway, identity, order, matching, event streaming, ledger, wallet and external providers. Monitor availability, latency percentiles, error rates, queue depth, event lag, database health, signing requests and provider connectivity. Logs should support investigations without exposing passwords, private keys, recovery codes or unnecessary personal data. Alert thresholds need ownership, runbooks and escalation paths.

2. Financial and operational reconciliation

Reconciliation compares independent records to detect missing, duplicated, delayed or inconsistent activity. Examples include matching executions to ledger postings, deposits to blockchain observations, withdrawals to signed and broadcast transactions, and payment-provider records to internal cash movements. Define frequency, tolerances, evidence, exception ownership and escalation. An unexplained difference should not be hidden by a manual balance adjustment.

3. Incident response and containment

Prepare procedures for compromised credentials, suspected key exposure, matching-engine faults, ledger inconsistencies, market-data outages, provider failures and data breaches. Assign incident command, technical leads, compliance and customer communications. Containment may include disabling withdrawals, pausing a market, restricting affected accounts or switching to read-only mode. Decisions should be proportionate, authorised and logged. Preserve forensic evidence and maintain clear customer status messages.

4. Backup and disaster recovery

Define recovery time objective (RTO) and recovery point objective (RPO) for each critical service. Backups should be encrypted, access-controlled, monitored and periodically restored in an isolated environment. A backup that has never been restored is unproven. Recovery procedures must account for databases, event logs, configuration, signing dependencies, secrets recovery, network controls and third-party services. Never restore a test backup over production as an experiment.

5. Safe restart and reconciliation after recovery

Restart order matters. Validate identity and access, authoritative database state, event offsets, order and trade consistency, ledger integrity, wallet provider state and external dependencies before reopening customer actions. Reconcile any gap between the last durable event and recovered state. A system may be technically online but remain unsafe for trading or withdrawals until control owners certify the relevant records.

Applied case

A region-wide outage interrupts order processing after some matches have occurred but before all downstream ledger consumers confirm processing. Develop a recovery sequence that prevents duplicate execution or posting, reconciles outstanding events and defines criteria for resuming markets and withdrawals.

Key takeaways

• Observability must connect technical events to business and financial records.

• Reconciliation is a core control, not merely a month-end task.

• Incident response should protect customers and preserve forensic evidence.

• RTO and RPO must be defined and tested for each critical service.

• Recovery requires reconciliation and explicit authorisation before resuming sensitive operations.

Exercise

Write a recovery runbook for a fictional exchange. Include service dependencies, RTO/RPO, backup verification, event replay, ledger checks, wallet checks, incident roles, customer communications and measurable restart gates.

LEARNER ASSESSMENT

Cryptocurrency Exchange Architecture — Final Knowledge Assessment

Total: 100 marks. Pass threshold: proposed 70%, subject to academic approval. These questions are displayed for review only; learners cannot submit or record an assessment result on this page.

Multiple-choice knowledge assessment (100 marks)

Select one answer for each question. This assessment is educational and uses fictional exchange scenarios. It does not authorise or enable live trading, custody or financial operations.

Question 1: Which statement best describes a centralised exchange operating model?

  1. The platform provides controlled services for account access, order handling and/or custody under defined responsibilities
  2. All users directly control the exchange matching engine
  3. A blockchain automatically performs every customer and accounting function
  4. The browser is the authoritative source for customer balances

Question 2: Why should an exchange identify an authoritative system for each financial fact?

  1. To let every microservice independently overwrite balances
  2. To establish which durable record governs a fact and support reconciliation
  3. To remove the need for audit identifiers
  4. To make browser caches authoritative

Question 3: What is the distinction between authentication and authorisation?

  1. Authentication identifies or verifies a claimant; authorisation decides whether an action is permitted
  2. They are identical processes
  3. Authorisation proves a password is correct
  4. Authentication determines the customer's trading limits only

Question 4: Why should sensitive exchange permissions be enforced server-side?

  1. Frontend controls can be bypassed and are not a security boundary
  2. It improves button styling
  3. It removes the need for identity checks
  4. It guarantees network availability

Question 5: What is the principal responsibility of a matching engine?

  1. Maintain customer passwords
  2. Apply defined matching rules to eligible orders and emit execution results
  3. Approve customer identity documents
  4. Sign blockchain withdrawals

Question 6: What is idempotency intended to prevent in order processing?

  1. All partial fills
  2. Duplicate effects when a request is retried
  3. The use of order identifiers
  4. Monitoring of order latency

Question 7: Which statement correctly distinguishes a wallet service from an internal exchange ledger?

  1. The wallet service manages blockchain movement and signing; the ledger records internal accounting entries
  2. The ledger stores private keys for browser access
  3. Wallet confirmations automatically create complete accounting records
  4. The wallet service replaces all reconciliation

Question 8: A withdrawal broadcast times out before a transaction hash is returned. What is the safest next step?

  1. Immediately submit a second withdrawal
  2. Investigate provider and network state before retrying to avoid duplicate payment
  3. Delete the withdrawal request
  4. Credit the customer without evidence

Question 9: What does reconciliation primarily detect?

  1. Only slow page rendering
  2. Missing, duplicated, delayed or inconsistent records across independent systems
  3. Whether users like the interface
  4. Whether a password is strong

Question 10: When should a recovered exchange resume withdrawals after a major outage?

  1. As soon as the login page responds
  2. After relevant data, ledger, wallet and dependency checks pass and authorised owners approve resumption
  3. Before checking event replay
  4. Whenever a single engineer requests it

COURSE COMPLETION

Learning completion requirements

  • Review all five modules and their lessons.
  • Complete the applied exercises using fictional or synthetic information.
  • Review the final knowledge assessment; submissions and results are inactive.
  • Complete academic review before this material is approved for enrolment.

Completion tracking and certificates are not active until the Academy learning platform is implemented and approved.

GLOSSARY

Key terminology

APPLIED LEARNING

Practical case exercise

Create a component and data-flow diagram for a small spot exchange and mark trust boundaries, failure points and audit evidence.

The exercise is educational and uses hypothetical or historical information. It does not connect to a live brokerage, exchange, customer wallet or payment account.

ASSESSMENT DESIGN

How learning will be assessed

Knowledge checks, applied case analysis and a final assessment aligned to the published learning outcomes. Assessment formats and pass requirements will be confirmed in the live course syllabus.

When the assessment system is released, the approved Academy policy will allow up to three attempts per final examination. The proposed pass threshold is 70%, subject to the published syllabus and academic controls. Results are intended to be marked automatically where answers have objectively verifiable keys; assignments requiring judgement may require instructor review.

ENTRY GUIDANCE

Who this course is for

This intermediate-level course is intended for learners who want a structured understanding of cryptocurrency exchange architecture. It may be useful to students, analysts, fintech builders, operations teams and professionals who need to understand the subject's terminology and control environment.

Suggested preparation: Learners should be comfortable with the relevant foundation concepts and basic numerical reasoning.

FURTHER READING

Primary and institutional references

Use original standards, technical documentation and institutional publications when checking details. Regulatory requirements vary by jurisdiction and may change.

COURSE QUESTIONS

Frequently asked questions

What are the main components of a cryptocurrency exchange?

A centralised exchange commonly includes identity and entitlement services, wallet and custody systems, order gateways, matching, trade capture, ledger accounting, surveillance, monitoring and support operations.

Why should order state and ledger accounting be separated?

Order state describes instructions and execution progress, while the ledger records financial entitlements and obligations. Separating them supports reconciliation, auditability and controlled recovery.

What is the role of a matching engine?

A matching engine applies venue rules to compatible buy and sell instructions and emits execution events. It should not be treated as the authoritative customer accounting ledger.

Does this course build or connect a live exchange?

No. The course uses architecture diagrams and fictional scenarios. It does not enable live trading, custody, deposits, withdrawals or financial transactions.

Is this course currently open for enrolment?

This page contains academic-draft learning material for review, but the course is not approved or open for enrolment. Assessment questions are displayed for review only; submissions, assessment recording, completion tracking and certificates are inactive. Check the live education catalogue for courses explicitly published as available.

Does this course provide trading signals or promise profits?

No. It is an educational curriculum. It does not provide guaranteed outcomes, trading signals or personal investment recommendations.

Will I receive a NexaCrypto Academy certificate?

The approved Academy model distinguishes a Certificate of Completion from an examination-based Professional Certificate. Automated issuance will operate only after the learning, assessment and certificate systems are implemented and the learner meets the published eligibility rules.