BuildΒΆ
There are two ways to use NQS SDK, each with its own advantages and use cases:
- Configuration-based approach
The configuration-based approach allows you to define your simulation using YAML or JSON configuration files. This approach is:
Declarative: Define what you want to simulate rather than how to simulate it
Structured: Clear organization of simulation parameters, market conditions, and agent strategies
Reusable: Easily share, version, and modify configurations without changing code
Accessible: Ideal for users who prefer configuration over programming
This approach is recommended for:
Users who want to quickly set up and run simulations without writing much code
Scenarios where you need to run many variations of similar simulations
When you want to clearly separate simulation parameters from execution logic
For reproducible research where configuration can be shared and versioned
Learn more in Configuration-based approach.
API based approach
The API-based approach gives you programmatic control over every aspect of the simulation. This approach is:
Flexible: Full control over simulation logic and execution flow
Extensible: Easily integrate custom components and algorithms
Interactive: Dynamically adjust simulation parameters during execution
Powerful: Access to low-level functionality for advanced use cases
This approach is recommended for:
Developers who need maximum flexibility and control
Complex strategies that require custom logic or state management
When you need to integrate with external systems or data sources
For research and development of new trading algorithms
Learn more in API based approach.