sedolCapMarkets(Trading)

Mock Jutsu HOW-TO | UK

The Stock Exchange Daily Official List, commonly known as a SEDOL, is a unique seven-character identifier assigned to securities traded on the London Stock Exchange and other regional exchanges across the United Kingdom and Ireland. For developers working within the capital markets domain, generating realistic sedol identifiers is essential for building robust financial applications. The mock-jutsu library provides a dedicated function to produce valid sedol strings, ensuring that your test data mirrors the complexity and structure of real-world financial instruments without the need for manual entry or scraping production databases.

Each sedol generated by mock-jutsu adheres to the strict alphanumeric standards established by the London Stock Exchange Group. The identifier consists of six alphanumeric characters followed by a trailing check digit, which is calculated using a specific weighted sum algorithm. By implementing this precise logic, mock-jutsu ensures that every piece of mock data produced passes checksum validation scripts, making it ideal for testing data ingestion pipelines, trade reconciliation engines, and database integrity constraints. This level of accuracy is vital for financial software where incorrect identifier formats can lead to significant processing errors or failed transactions during the settlement cycle.

Incorporating these identifiers into your development workflow is straightforward, whether you are using the Python API, the command-line interface, or JMeter for performance testing. For instance, executing "mockjutsu generate sedol" via the CLI or calling jutsu.generate('sedol') in a Python script allows for the rapid creation of large datasets. This flexibility is particularly beneficial for quality assurance engineers who need to simulate diverse portfolios or stress-test trading platforms with thousands of unique security records. Using high-quality test data from mock-jutsu reduces the risk of production bugs related to security master data management and improves the reliability of financial reporting tools.

Beyond simple data generation, the sedol function facilitates comprehensive end-to-end testing of trading lifecycle applications. From order management systems to downstream settlement engines, having access to valid mock data ensures that developers can verify the logic of their applications without relying on sensitive or restricted production information. By leveraging mock-jutsu, engineering teams can streamline their CI/CD pipelines, improve test coverage, and accelerate the delivery of high-performance financial software while maintaining the highest standards of data accuracy and regulatory compliance.

CLI Usage
mockjutsu generate sedolmockjutsu bulk sedol --count 10mockjutsu export sedol --count 10 --format jsonmockjutsu export sedol --count 10 --format csvmockjutsu export sedol --count 10 --format sql
Python API
from mockjutsu import jutsujutsu.generate('sedol')jutsu.bulk('sedol', count=10)jutsu.template(['sedol'], count=5)
JMeter
${__mockjutsu_markets(sedol)}# JMeter Function: __mockjutsu_markets# Parameter 1: sedol# Parameter 2: (not required for this function)
REST API
GET /generate/sedol# → {"type":"sedol","result":"...","status":"ok"}GET /bulk/sedol?count=10POST /template {"types":["sedol"],"count":1}

Other Languages