-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dev version of protobuf market order book protobuf timed data exports
- Loading branch information
Showing
102 changed files
with
2,102 additions
and
231 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ LICENSE | |
**/*secret.json | ||
data/log | ||
data/secret | ||
data/serialized | ||
!data/secret/secret_test.json | ||
monitoring | ||
resources |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#pragma once | ||
|
||
#include <compare> | ||
#include <string_view> | ||
|
||
#include "cct_string.hpp" | ||
#include "cct_type_traits.hpp" | ||
#include "market.hpp" | ||
#include "monetaryamount.hpp" | ||
#include "order.hpp" | ||
#include "orderid.hpp" | ||
#include "timedef.hpp" | ||
#include "tradeside.hpp" | ||
|
||
namespace cct { | ||
|
||
class ClosedOrder : public Order { | ||
public: | ||
ClosedOrder(OrderId id, MonetaryAmount matchedVolume, MonetaryAmount price, TimePoint placedTime, | ||
TimePoint matchedTime, TradeSide side); | ||
|
||
TimePoint matchedTime() const { return _matchedTime; } | ||
|
||
string matchedTimeStr() const; | ||
|
||
private: | ||
TimePoint _matchedTime; | ||
}; | ||
} // namespace cct |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#pragma once | ||
|
||
#include "monetaryamount.hpp" | ||
#include "order.hpp" | ||
#include "orderid.hpp" | ||
#include "timedef.hpp" | ||
#include "tradeside.hpp" | ||
|
||
namespace cct { | ||
|
||
class OpenedOrder : public Order { | ||
public: | ||
OpenedOrder(OrderId id, MonetaryAmount matchedVolume, MonetaryAmount remainingVolume, MonetaryAmount price, | ||
TimePoint placedTime, TradeSide side); | ||
|
||
MonetaryAmount originalVolume() const { return matchedVolume() + _remainingVolume; } | ||
MonetaryAmount remainingVolume() const { return _remainingVolume; } | ||
|
||
private: | ||
MonetaryAmount _remainingVolume; | ||
}; | ||
} // namespace cct |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include "closed-order.hpp" | ||
|
||
#include <utility> | ||
|
||
#include "cct_string.hpp" | ||
#include "monetaryamount.hpp" | ||
#include "order.hpp" | ||
#include "timedef.hpp" | ||
#include "timestring.hpp" | ||
#include "tradeside.hpp" | ||
|
||
namespace cct { | ||
|
||
ClosedOrder::ClosedOrder(OrderId id, MonetaryAmount matchedVolume, MonetaryAmount price, TimePoint placedTime, | ||
TimePoint matchedTime, TradeSide side) | ||
: Order(std::move(id), matchedVolume, price, placedTime, side), _matchedTime(matchedTime) {} | ||
|
||
string ClosedOrder::matchedTimeStr() const { return ToString(_matchedTime); } | ||
} // namespace cct |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#include "opened-order.hpp" | ||
|
||
#include <utility> | ||
|
||
namespace cct { | ||
|
||
OpenedOrder::OpenedOrder(string id, MonetaryAmount matchedVolume, MonetaryAmount remainingVolume, MonetaryAmount price, | ||
TimePoint placedTime, TradeSide side) | ||
: Order(std::move(id), matchedVolume, price, placedTime, side), _remainingVolume(remainingVolume) {} | ||
|
||
} // namespace cct |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.