Name | |
---|---|
MamdaOrderBookEntryManager(int approxCount) | |
void | clear() |
void | clear(String symbol) |
void | addEntry(MamdaOrderBookEntry entry) |
void | addEntry(MamdaOrderBookEntry entry, String entryId) |
MamdaOrderBookEntry | findEntry(String entryId, boolean mustExist) |
void | removeEntry(String entryId) |
inline MamdaOrderBookEntryManager(
int approxCount
)
Parameters:
Default constructor. Create an empty order book entry manager.
inline void clear()
Clear all entries from the manager.
inline void clear(
String symbol
)
Parameters:
Clear all entries for a particular symbol from the manager.
inline void addEntry(
MamdaOrderBookEntry entry
)
Parameters:
Add an entry to the manager. This method may throw a MamdaOrderBookDuplicateEntry exception.
inline void addEntry(
MamdaOrderBookEntry entry,
String entryId
)
Parameters:
Add an entry to the manager using a specific entry ID, which may be different from the entry’s entry ID. This method may throw a MamdaOrderBookDuplicateEntry exception.
inline MamdaOrderBookEntry findEntry(
String entryId,
boolean mustExist
)
Parameters:
Return: the entry if found.
Find an entry in the manager. If no entry matches the unique entry ID and “mustExist” is true then a MamdaOrderBookMissingEntryException exception is thrown, otherwise it returns NULL.
inline void removeEntry(
String entryId
)
Parameters:
Remove an entry from the manager. This method does not actually delete the MamdaOrderBookEntry object itself.
Updated on 2023-03-31 at 15:30:38 +0100