Skip to content

Commit

Permalink
feat: websocket
Browse files Browse the repository at this point in the history
  • Loading branch information
kirosc committed Jun 29, 2021
1 parent 446c4b6 commit d3af516
Show file tree
Hide file tree
Showing 6 changed files with 2,313 additions and 56 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,16 @@ getDeal(id: number)
getDealSafetyOrders(id: number)
```

### Websocket

```ts
subscribeSmartTrade(callback?: (data: WebSocket.Data) => void)

subscribeDeal(callback?: (data: WebSocket.Data) => void)

unsubscribe()
```

## Response Type

The Order type returned by smart trade endpoint is generated using [quicktype](https://github.com/quicktype/quicktype).
Expand Down
Loading

0 comments on commit d3af516

Please sign in to comment.