Skip to content

Commit

Permalink
Merge pull request #16 from hablapps/neutropolis-patch-1
Browse files Browse the repository at this point in the history
Update 2024-07-02-PostPairsTrading.md
  • Loading branch information
neutropolis authored Jul 4, 2024
2 parents bf998c3 + 14cdb4e commit 7f6f12c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _posts/2024-07-02-PostPairsTrading.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ Here, we assume that `ms` points to the MS component (similar to how `hdb` was u
Real-time components can manifest their interest in a particular table and a subset of symbols. Naturally, we are only interested in getting quotes associated with one of the indexes in our `ix` pair:

```q
tp"(.u.sub[`quote;",(.Q.s1 ix),"])"
tp(".u.sub";`quote;ix)
```

As usual, we assume that `tp` is a pointer to the TP process. Essentially, `.u.sub` registers the RPT handle in the TP so it can later notify the recently subscribed component about new events. It assumes that the subscriber has defined an `upd` function as a kind of callback:
Expand Down

0 comments on commit 7f6f12c

Please sign in to comment.