forked from igorek17000/alunajs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathorder.ts
29 lines (24 loc) · 877 Bytes
/
order.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { IAlunaExchangeAuthed } from '../../../../lib/core/IAlunaExchange'
import { IAlunaOrderWriteModule } from '../../../../lib/modules/authed/IAlunaOrderModule'
import { cancel } from './order/cancel'
import { edit } from './order/edit'
import { get } from './order/get'
import { getRaw } from './order/getRaw'
import { list } from './order/list'
import { listRaw } from './order/listRaw'
import { parse } from './order/parse'
import { parseMany } from './order/parseMany'
import { place } from './order/place'
export function order(exchange: IAlunaExchangeAuthed): IAlunaOrderWriteModule {
return {
cancel: cancel(exchange),
edit: edit(exchange),
get: get(exchange),
getRaw: getRaw(exchange),
list: list(exchange),
listRaw: listRaw(exchange),
parse: parse(exchange),
parseMany: parseMany(exchange),
place: place(exchange),
}
}