32 lines
789 B
C++
32 lines
789 B
C++
#pragma once
|
|
#include "Currency.h"
|
|
#include "Price.h"
|
|
#include "SecurityID.h"
|
|
#include "lib/api/domain/Currency.pb.h"
|
|
#include "lib/api/domain/SecurityType.pb.h"
|
|
#include "lib/api/domain/Venue.pb.h"
|
|
#include <string>
|
|
|
|
namespace bts::domain {
|
|
|
|
// All the security common params, ie regardless of Future, Spot, Spread etc
|
|
class SecurityCommon {
|
|
public:
|
|
api::domain::Venue venue;
|
|
SecurityID id{};
|
|
api::domain::SecurityType type;
|
|
api::domain::Currency currency;
|
|
double display_factor{};
|
|
double cash_per_point{};
|
|
std::string symbol;
|
|
std::string group;
|
|
std::string asset;
|
|
std::string desc;
|
|
Price min_price_increment{};
|
|
double min_price_increment_ammount = 0;
|
|
bool implied_matching = false;
|
|
std::string cme_security_type;
|
|
};
|
|
|
|
} // namespace bts::domain
|