Skip to content

Getting order completed event #902

Answered by kernc
yoavweber asked this question in Q&A

You must be logged in to vote

There is nothing else besides the API, which should be simple enough to wrap one's head around.

You can track trades like so:

def init(self):
    self.seen_trades = set()

def next(self):
    for trade in self.trades:
        if trade not in self.seen_trades:
            self.seen_trades.add(trade)
            ...  # Create new order based on filled order's data
    ...

Replies: 1 comment

You must be logged in to vote
0 replies
Answer selected by yoavweber
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants