mirror of
https://github.com/hanzo-labs/exchange-sdk.git
synced 2026-10-30 18:54:21 +00:00
master
typescript 7.0.2 is the native compiler and exports no JavaScript API, so ts-jest, typedoc and ts-node cannot read it. It comes in aliased as tsgo and does the typechecking; typescript moves from 3.7.2 to the 6 line for the tools. 3.7.2 could not parse its own installed @types — all 177 of its diagnostics were syntax errors inside node_modules d.ts files, and none of them reached the source. The modern compiler parses them, so what is left is the source: 11 diagnostics, the same on both compilers. Declaring types ["node", "jest"] restores the globals TS7 no longer sweeps in, and skipLibCheck stops this project typechecking its dependencies' declarations. Co-authored-by: Hanzo Dev <[email protected]>
Hanzo Exchange SDK
This is the Hanzo Exchange SDK, which enables anyone to integrate advanced trading functionality into an application. Includes a spec-compliant order matching engine and WS server for building exchange applications.
Running tests
npm
npm test
npm test --watch
Dev mode
When developing you can run:
npm run watch
This will regenerate the build files each time a source file is changed and serve on http://127.0.0.1:5000.
References
Basic Matching Engine based on hyobyun/exchangeengine and Ian Kaplan's Paper
Languages
HTML
54.1%
TypeScript
44.8%
JavaScript
1.1%