From a3620d23f0c924e7d1f52878e47da2dec075b7a6 Mon Sep 17 00:00:00 2001 From: George Hill Date: Wed, 18 Sep 2024 11:58:44 +0100 Subject: [PATCH] enable c++ build --- nautilus_trader/model/book.pxd | 2 +- nautilus_trader/model/book.pyx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nautilus_trader/model/book.pxd b/nautilus_trader/model/book.pxd index 0a756684f8bb..01c98ce4fb19 100644 --- a/nautilus_trader/model/book.pxd +++ b/nautilus_trader/model/book.pxd @@ -39,7 +39,7 @@ cdef class OrderBook(Data): cpdef void reset(self) cpdef void add(self, BookOrder order, uint64_t ts_event, uint8_t flags=*, uint64_t sequence=*) cpdef void update(self, BookOrder order, uint64_t ts_event, uint8_t flags=*, uint64_t sequence=*) - cpdef void delete(self, BookOrder order, uint64_t ts_event, uint8_t flags=*, uint64_t sequence=*) + cpdef void remove(self, BookOrder order, uint64_t ts_event, uint8_t flags=*, uint64_t sequence=*) cpdef void clear(self, uint64_t ts_event, uint64_t sequence=*) cpdef void clear_bids(self, uint64_t ts_event, uint64_t sequence=*) cpdef void clear_asks(self, uint64_t ts_event, uint64_t sequence=*) diff --git a/nautilus_trader/model/book.pyx b/nautilus_trader/model/book.pyx index c16f0b9220e9..87b865324df1 100644 --- a/nautilus_trader/model/book.pyx +++ b/nautilus_trader/model/book.pyx @@ -282,7 +282,7 @@ cdef class OrderBook(Data): orderbook_update(&self._mem, order._mem, flags, sequence, ts_event) - cpdef void delete(self, BookOrder order, uint64_t ts_event, uint8_t flags=0, uint64_t sequence=0): + cpdef void remove(self, BookOrder order, uint64_t ts_event, uint8_t flags=0, uint64_t sequence=0): """ Cancel the given order in the book.