-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
-
Hey People,
Is there any callback/way to get notified when an order gets filled?
My goal is to create a new order based on the filled order's data.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions
Answered by
kernc
Feb 6, 2023
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
-
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 ...
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Answer selected by
yoavweber
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment