mirror of
https://github.com/hanzo-labs/exchange-sdk.git
synced 2026-10-30 18:54:21 +00:00
2.3 KiB
2.3 KiB
@hanzo/matching-engine › Globals › "server"
External module: "server"
Index
Variables
Functions
Variables
Const app
• app: Express‹› = createHttp(books, candleTrees)
Defined in server.ts:98
Const books
• books: Map‹string, Book‹›› = new Map<string, Book>()
Defined in server.ts:14
Const candleTrees
• candleTrees: Map‹string, Map‹CandleInterval, CandleAVL‹››› = new Map<string,Map<CandleInterval, CandleAVL>>()
Defined in server.ts:15
Const exp
• exp: function = random.exponential(1)
Defined in server.ts:10
Type declaration:
▸ (): number
Const http
• http: any = createSocketIO(books, candleTrees, app, createBook)
Defined in server.ts:102
Const nrm
• nrm: function = random.normal(1, 1)
Defined in server.ts:11
Type declaration:
▸ (): number
Const port
• port: 4000 = 4000
Defined in server.ts:100
Functions
Const createBook
▸ createBook(name: string): undefined | Book‹›
Defined in server.ts:17
Parameters:
| Name | Type |
|---|---|
name |
string |
Returns: undefined | Book‹›