diff --git a/Documents/backendapi.md b/Documents/backendapi.md
index 3fc9f5768..bee3015f0 100644
--- a/Documents/backendapi.md
+++ b/Documents/backendapi.md
@@ -239,7 +239,7 @@ http://[ip]:[port]/marketdata/future/min?code=[]&start=[]&end=[]
```
-http://[ip]:[port]/accounts
+http://[ip]:[port]/accounts/all
```
#### 4.5.2 单个账户查询
diff --git a/QUANTAXIS/QAARP/QAAccount.py b/QUANTAXIS/QAARP/QAAccount.py
index 439236d07..ed567b1ac 100755
--- a/QUANTAXIS/QAARP/QAAccount.py
+++ b/QUANTAXIS/QAARP/QAAccount.py
@@ -152,7 +152,7 @@ def __init__(self, strategy_name=None, user_cookie=None, portfolio_cookie=None,
self.frequence = frequence
self.running_environment = running_environment
########################################################################
- self.market_data = None
+ self._market_data = None
self._currenttime = None
self.commission_coeff = commission_coeff
self.tax_coeff = tax_coeff
@@ -295,6 +295,10 @@ def end_date(self):
raise RuntimeWarning(
'QAACCOUNT: THIS ACCOUNT DOESNOT HAVE ANY TRADE')
+ @property
+ def market_data(self):
+ return self._market_data
+
@property
def trade_range(self):
return QA_util_get_trade_range(self.start_date, self.end_date)
@@ -930,13 +934,17 @@ def run(self, event):
"""update the market_data
1. update the inside market_data struct
2. tell the on_bar methods
+
+ # 这样有点慢
+
+
"""
self._currenttime = event.market_data.datetime[0]
- if self.market_data is None:
- self.market_data = event.market_data
+ if self._market_data is None:
+ self._market_data = event.market_data
else:
- self.market_data = self.market_data + event.market_data
+ self._market_data = self._market_data + event.market_data
self.on_bar(event)
if event.callback:
diff --git a/QUANTAXIS/QAAnalysis/QAAnalysis_block.py b/QUANTAXIS/QAAnalysis/QAAnalysis_block.py
index 9e5a121df..2c69e07b2 100755
--- a/QUANTAXIS/QAAnalysis/QAAnalysis_block.py
+++ b/QUANTAXIS/QAAnalysis/QAAnalysis_block.py
@@ -43,7 +43,7 @@ def __repr__(self):
@lru_cache()
def market_data(self):
return QA_quotation(self.code, self.start, self.end, self.frequence,
- market=MARKET_TYPE.STOCK_CN, source=DATASOURCE.MONGO, output=OUTPUT_FORMAT.DATASTRUCT)
+ market=MARKET_TYPE.STOCK_CN, source=DATASOURCE.MONGO, output=OUTPUT_FORMAT.DATASTRUCT).to_qfq()
@property
@lru_cache()
diff --git a/QUANTAXIS/QAData/QADataStruct.py b/QUANTAXIS/QAData/QADataStruct.py
index 75b5a8d76..23cd31fb5 100755
--- a/QUANTAXIS/QAData/QADataStruct.py
+++ b/QUANTAXIS/QAData/QADataStruct.py
@@ -47,8 +47,6 @@
from QUANTAXIS.QAData.base_datastruct import _quotation_base
from QUANTAXIS.QAData.data_fq import QA_data_stock_to_fq
from QUANTAXIS.QAData.data_resample import QA_data_tick_resample, QA_data_day_resample, QA_data_min_resample
-from QUANTAXIS.QAData.proto import stock_day_pb2 # protobuf import
-from QUANTAXIS.QAData.proto import stock_min_pb2
from QUANTAXIS.QAIndicator import EMA, HHV, LLV, SMA
from QUANTAXIS.QAUtil import (DATABASE, QA_util_log_info,
QA_util_random_with_topic,
diff --git a/QUANTAXIS/QAData/dsmethods.py b/QUANTAXIS/QAData/dsmethods.py
index 5e1a762e6..95401185e 100644
--- a/QUANTAXIS/QAData/dsmethods.py
+++ b/QUANTAXIS/QAData/dsmethods.py
@@ -26,11 +26,14 @@
"""DataStruct的方法
"""
import pandas as pd
-
+import numpy as np
from QUANTAXIS.QAData.QADataStruct import (QA_DataStruct_Index_day,
QA_DataStruct_Index_min,
+ QA_DataStruct_Future_day,
+ QA_DataStruct_Future_min,
QA_DataStruct_Stock_day,
QA_DataStruct_Stock_min)
+from QUANTAXIS.QAUtil.QAParameter import FREQUENCE, MARKET_TYPE
def concat(lists):
@@ -48,6 +51,66 @@ def concat(lists):
return lists[0].new(pd.concat([lists.data for lists in lists]).drop_duplicates())
+def datastruct_formater(data, frequence=FREQUENCE.DAY, market_type=MARKET_TYPE.STOCK_CN, default_header=[]):
+ """一个任意格式转化为DataStruct的方法
+
+ Arguments:
+ data {[type]} -- [description]
+
+ Keyword Arguments:
+ frequence {[type]} -- [description] (default: {FREQUENCE.DAY})
+ market_type {[type]} -- [description] (default: {MARKET_TYPE.STOCK_CN})
+ default_header {list} -- [description] (default: {[]})
+
+ Returns:
+ [type] -- [description]
+ """
+
+ if isinstance(data, list):
+ try:
+ res = pd.DataFrame(data, columns=default_header)
+ if frequence is FREQUENCE.DAY:
+ if market_type is MARKET_TYPE.STOCK_CN:
+ return QA_DataStruct_Stock_day(
+ res.assign(date=pd.to_datetime(res.date)).set_index(
+ ['date', 'code'], drop=False),
+ dtype='stock_day')
+ elif frequence in [FREQUENCE.ONE_MIN, FREQUENCE.FIVE_MIN, FREQUENCE.FIFTEEN_MIN, FREQUENCE.THIRTY_MIN, FREQUENCE.SIXTY_MIN]:
+ if market_type is MARKET_TYPE.STOCK_CN:
+ return QA_DataStruct_Stock_min(
+ res.assign(datetime=pd.to_datetime(res.datetime)).set_index(
+ ['datetime', 'code'], drop=False),
+ dtype='stock_min')
+ except:
+ pass
+ elif isinstance(data, np.ndarray):
+ try:
+ res = pd.DataFrame(data, columns=default_header)
+ if frequence is FREQUENCE.DAY:
+ if market_type is MARKET_TYPE.STOCK_CN:
+ return QA_DataStruct_Stock_day(
+ res.assign(date=pd.to_datetime(res.date)).set_index(
+ ['date', 'code'], drop=False),
+ dtype='stock_day')
+ elif frequence in [FREQUENCE.ONE_MIN, FREQUENCE.FIVE_MIN, FREQUENCE.FIFTEEN_MIN, FREQUENCE.THIRTY_MIN, FREQUENCE.SIXTY_MIN]:
+ if market_type is MARKET_TYPE.STOCK_CN:
+ return QA_DataStruct_Stock_min(
+ res.assign(datetime=pd.to_datetime(res.datetime)).set_index(
+ ['datetime', 'code'], drop=False),
+ dtype='stock_min')
+ except:
+ pass
+
+ elif isinstance(data, pd.DataFrame):
+ index = data.index
+ if isinstance(index, pd.MultiIndex):
+ pass
+ elif isinstance(index, pd.DatetimeIndex):
+ pass
+ elif isinstance(index, pd.Index):
+ pass
+
+
def from_tushare(dataframe, dtype='day'):
"""dataframe from tushare
@@ -71,7 +134,6 @@ def QDS_StockDayWarpper(func):
def warpper(*args, **kwargs):
data = func(*args, **kwargs)
-
if isinstance(data.index, pd.MultiIndex):
return QA_DataStruct_Stock_day(data)
@@ -94,6 +156,7 @@ def warpper(*args, **kwargs):
return QA_DataStruct_Stock_min(data.assign(datetime=pd.to_datetime(data.datetime)).set_index(['datetime', 'code'], drop=False), dtype='stock_min')
return warpper
+
def QDS_IndexDayWarpper(func, *args, **kwargs):
"""
指数日线QDS装饰器
@@ -124,9 +187,9 @@ def warpper(*args, **kwargs):
return warpper
-if __name__ =='__main__':
+if __name__ == '__main__':
"""演示QDS装饰器
-
+
Returns:
[type] -- [description]
"""
@@ -142,7 +205,7 @@ def warpper(*args, **kwargs):
"""
import tushare as ts
- print(from_tushare(ts.get_k_data('000001','2018-01-01','2018-06-26')))
+ print(from_tushare(ts.get_k_data('000001', '2018-01-01', '2018-06-26')))
"""[summary]
"""
diff --git a/QUANTAXIS/QAData/proto/Order.cs b/QUANTAXIS/QAData/proto/Order.cs
deleted file mode 100755
index c18e24a41..000000000
--- a/QUANTAXIS/QAData/proto/Order.cs
+++ /dev/null
@@ -1,581 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: order.proto
-#pragma warning disable 1591, 0612, 3021
-#region Designer generated code
-
-using pb = global::Google.Protobuf;
-using pbc = global::Google.Protobuf.Collections;
-using pbr = global::Google.Protobuf.Reflection;
-using scg = global::System.Collections.Generic;
-/// Holder for reflection information generated from order.proto
-public static partial class OrderReflection {
-
- #region Descriptor
- /// File descriptor for order.proto
- public static pbr::FileDescriptor Descriptor {
- get { return descriptor; }
- }
- private static pbr::FileDescriptor descriptor;
-
- static OrderReflection() {
- byte[] descriptorData = global::System.Convert.FromBase64String(
- string.Concat(
- "CgtvcmRlci5wcm90byKlAgoNUUFfTWFya2V0X2JpZBINCgVwcmljZRgBIAEo",
- "AhIMCgRkYXRlGAIgASgJEhAKCGRhdGV0aW1lGAMgASgJEhQKDHNlbmRpbmdf",
- "dGltZRgEIAEoCRIVCg10cmFuc2FjdF90aW1lGAUgASgJEg4KBmFtb3VudBgG",
- "IAEoAhIPCgd0b3dhcmRzGAcgASgDEgwKBGNvZGUYCCABKAkSDAoEdXNlchgJ",
- "IAEoCRIQCghzdHJhdGVneRgKIAEoCRIMCgR0eXBlGAsgASgJEhEKCWJpZF9t",
- "b2RlbBgMIAEoCRIUCgxhbW91bnRfbW9kZWwYDSABKAkSEAoIb3JkZXJfaWQY",
- "DiABKAkSEAoIdHJhZGVfaWQYDyABKAkSDgoGc3RhdHVzGBAgASgJYgZwcm90",
- "bzM="));
- descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { },
- new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
- new pbr::GeneratedClrTypeInfo(typeof(global::QA_Market_order), global::QA_Market_order.Parser, new[]{ "Price", "Date", "Datetime", "SendingTime", "TransactTime", "Amount", "Towards", "Code", "User", "Strategy", "Type", "BidModel", "AmountModel", "OrderId", "TradeId", "Status" }, null, null, null)
- }));
- }
- #endregion
-
-}
-#region Messages
-public sealed partial class QA_Market_order : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new QA_Market_order());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::OrderReflection.Descriptor.MessageTypes[0]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public QA_Market_order() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public QA_Market_order(QA_Market_order other) : this() {
- price_ = other.price_;
- date_ = other.date_;
- datetime_ = other.datetime_;
- sendingTime_ = other.sendingTime_;
- transactTime_ = other.transactTime_;
- amount_ = other.amount_;
- towards_ = other.towards_;
- code_ = other.code_;
- user_ = other.user_;
- strategy_ = other.strategy_;
- type_ = other.type_;
- bidModel_ = other.bidModel_;
- amountModel_ = other.amountModel_;
- orderId_ = other.orderId_;
- tradeId_ = other.tradeId_;
- status_ = other.status_;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public QA_Market_order Clone() {
- return new QA_Market_order(this);
- }
-
- /// Field number for the "price" field.
- public const int PriceFieldNumber = 1;
- private float price_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float Price {
- get { return price_; }
- set {
- price_ = value;
- }
- }
-
- /// Field number for the "date" field.
- public const int DateFieldNumber = 2;
- private string date_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string Date {
- get { return date_; }
- set {
- date_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// Field number for the "datetime" field.
- public const int DatetimeFieldNumber = 3;
- private string datetime_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string Datetime {
- get { return datetime_; }
- set {
- datetime_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// Field number for the "sending_time" field.
- public const int SendingTimeFieldNumber = 4;
- private string sendingTime_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string SendingTime {
- get { return sendingTime_; }
- set {
- sendingTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// Field number for the "transact_time" field.
- public const int TransactTimeFieldNumber = 5;
- private string transactTime_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string TransactTime {
- get { return transactTime_; }
- set {
- transactTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// Field number for the "amount" field.
- public const int AmountFieldNumber = 6;
- private float amount_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float Amount {
- get { return amount_; }
- set {
- amount_ = value;
- }
- }
-
- /// Field number for the "towards" field.
- public const int TowardsFieldNumber = 7;
- private long towards_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public long Towards {
- get { return towards_; }
- set {
- towards_ = value;
- }
- }
-
- /// Field number for the "code" field.
- public const int CodeFieldNumber = 8;
- private string code_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string Code {
- get { return code_; }
- set {
- code_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// Field number for the "user" field.
- public const int UserFieldNumber = 9;
- private string user_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string User {
- get { return user_; }
- set {
- user_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// Field number for the "strategy" field.
- public const int StrategyFieldNumber = 10;
- private string strategy_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string Strategy {
- get { return strategy_; }
- set {
- strategy_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// Field number for the "type" field.
- public const int TypeFieldNumber = 11;
- private string type_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string Type {
- get { return type_; }
- set {
- type_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// Field number for the "order_model" field.
- public const int BidModelFieldNumber = 12;
- private string bidModel_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string BidModel {
- get { return bidModel_; }
- set {
- bidModel_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// Field number for the "amount_model" field.
- public const int AmountModelFieldNumber = 13;
- private string amountModel_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string AmountModel {
- get { return amountModel_; }
- set {
- amountModel_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// Field number for the "order_id" field.
- public const int OrderIdFieldNumber = 14;
- private string orderId_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string OrderId {
- get { return orderId_; }
- set {
- orderId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// Field number for the "trade_id" field.
- public const int TradeIdFieldNumber = 15;
- private string tradeId_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string TradeId {
- get { return tradeId_; }
- set {
- tradeId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// Field number for the "status" field.
- public const int StatusFieldNumber = 16;
- private string status_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string Status {
- get { return status_; }
- set {
- status_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as QA_Market_order);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(QA_Market_order other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Price != other.Price) return false;
- if (Date != other.Date) return false;
- if (Datetime != other.Datetime) return false;
- if (SendingTime != other.SendingTime) return false;
- if (TransactTime != other.TransactTime) return false;
- if (Amount != other.Amount) return false;
- if (Towards != other.Towards) return false;
- if (Code != other.Code) return false;
- if (User != other.User) return false;
- if (Strategy != other.Strategy) return false;
- if (Type != other.Type) return false;
- if (BidModel != other.BidModel) return false;
- if (AmountModel != other.AmountModel) return false;
- if (OrderId != other.OrderId) return false;
- if (TradeId != other.TradeId) return false;
- if (Status != other.Status) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (Price != 0F) hash ^= Price.GetHashCode();
- if (Date.Length != 0) hash ^= Date.GetHashCode();
- if (Datetime.Length != 0) hash ^= Datetime.GetHashCode();
- if (SendingTime.Length != 0) hash ^= SendingTime.GetHashCode();
- if (TransactTime.Length != 0) hash ^= TransactTime.GetHashCode();
- if (Amount != 0F) hash ^= Amount.GetHashCode();
- if (Towards != 0L) hash ^= Towards.GetHashCode();
- if (Code.Length != 0) hash ^= Code.GetHashCode();
- if (User.Length != 0) hash ^= User.GetHashCode();
- if (Strategy.Length != 0) hash ^= Strategy.GetHashCode();
- if (Type.Length != 0) hash ^= Type.GetHashCode();
- if (BidModel.Length != 0) hash ^= BidModel.GetHashCode();
- if (AmountModel.Length != 0) hash ^= AmountModel.GetHashCode();
- if (OrderId.Length != 0) hash ^= OrderId.GetHashCode();
- if (TradeId.Length != 0) hash ^= TradeId.GetHashCode();
- if (Status.Length != 0) hash ^= Status.GetHashCode();
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (Price != 0F) {
- output.WriteRawTag(13);
- output.WriteFloat(Price);
- }
- if (Date.Length != 0) {
- output.WriteRawTag(18);
- output.WriteString(Date);
- }
- if (Datetime.Length != 0) {
- output.WriteRawTag(26);
- output.WriteString(Datetime);
- }
- if (SendingTime.Length != 0) {
- output.WriteRawTag(34);
- output.WriteString(SendingTime);
- }
- if (TransactTime.Length != 0) {
- output.WriteRawTag(42);
- output.WriteString(TransactTime);
- }
- if (Amount != 0F) {
- output.WriteRawTag(53);
- output.WriteFloat(Amount);
- }
- if (Towards != 0L) {
- output.WriteRawTag(56);
- output.WriteInt64(Towards);
- }
- if (Code.Length != 0) {
- output.WriteRawTag(66);
- output.WriteString(Code);
- }
- if (User.Length != 0) {
- output.WriteRawTag(74);
- output.WriteString(User);
- }
- if (Strategy.Length != 0) {
- output.WriteRawTag(82);
- output.WriteString(Strategy);
- }
- if (Type.Length != 0) {
- output.WriteRawTag(90);
- output.WriteString(Type);
- }
- if (BidModel.Length != 0) {
- output.WriteRawTag(98);
- output.WriteString(BidModel);
- }
- if (AmountModel.Length != 0) {
- output.WriteRawTag(106);
- output.WriteString(AmountModel);
- }
- if (OrderId.Length != 0) {
- output.WriteRawTag(114);
- output.WriteString(OrderId);
- }
- if (TradeId.Length != 0) {
- output.WriteRawTag(122);
- output.WriteString(TradeId);
- }
- if (Status.Length != 0) {
- output.WriteRawTag(130, 1);
- output.WriteString(Status);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (Price != 0F) {
- size += 1 + 4;
- }
- if (Date.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Date);
- }
- if (Datetime.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Datetime);
- }
- if (SendingTime.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(SendingTime);
- }
- if (TransactTime.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(TransactTime);
- }
- if (Amount != 0F) {
- size += 1 + 4;
- }
- if (Towards != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(Towards);
- }
- if (Code.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Code);
- }
- if (User.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(User);
- }
- if (Strategy.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Strategy);
- }
- if (Type.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Type);
- }
- if (BidModel.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(BidModel);
- }
- if (AmountModel.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(AmountModel);
- }
- if (OrderId.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(OrderId);
- }
- if (TradeId.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(TradeId);
- }
- if (Status.Length != 0) {
- size += 2 + pb::CodedOutputStream.ComputeStringSize(Status);
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(QA_Market_order other) {
- if (other == null) {
- return;
- }
- if (other.Price != 0F) {
- Price = other.Price;
- }
- if (other.Date.Length != 0) {
- Date = other.Date;
- }
- if (other.Datetime.Length != 0) {
- Datetime = other.Datetime;
- }
- if (other.SendingTime.Length != 0) {
- SendingTime = other.SendingTime;
- }
- if (other.TransactTime.Length != 0) {
- TransactTime = other.TransactTime;
- }
- if (other.Amount != 0F) {
- Amount = other.Amount;
- }
- if (other.Towards != 0L) {
- Towards = other.Towards;
- }
- if (other.Code.Length != 0) {
- Code = other.Code;
- }
- if (other.User.Length != 0) {
- User = other.User;
- }
- if (other.Strategy.Length != 0) {
- Strategy = other.Strategy;
- }
- if (other.Type.Length != 0) {
- Type = other.Type;
- }
- if (other.BidModel.Length != 0) {
- BidModel = other.BidModel;
- }
- if (other.AmountModel.Length != 0) {
- AmountModel = other.AmountModel;
- }
- if (other.OrderId.Length != 0) {
- OrderId = other.OrderId;
- }
- if (other.TradeId.Length != 0) {
- TradeId = other.TradeId;
- }
- if (other.Status.Length != 0) {
- Status = other.Status;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 13: {
- Price = input.ReadFloat();
- break;
- }
- case 18: {
- Date = input.ReadString();
- break;
- }
- case 26: {
- Datetime = input.ReadString();
- break;
- }
- case 34: {
- SendingTime = input.ReadString();
- break;
- }
- case 42: {
- TransactTime = input.ReadString();
- break;
- }
- case 53: {
- Amount = input.ReadFloat();
- break;
- }
- case 56: {
- Towards = input.ReadInt64();
- break;
- }
- case 66: {
- Code = input.ReadString();
- break;
- }
- case 74: {
- User = input.ReadString();
- break;
- }
- case 82: {
- Strategy = input.ReadString();
- break;
- }
- case 90: {
- Type = input.ReadString();
- break;
- }
- case 98: {
- BidModel = input.ReadString();
- break;
- }
- case 106: {
- AmountModel = input.ReadString();
- break;
- }
- case 114: {
- OrderId = input.ReadString();
- break;
- }
- case 122: {
- TradeId = input.ReadString();
- break;
- }
- case 130: {
- Status = input.ReadString();
- break;
- }
- }
- }
- }
-
-}
-
-#endregion
-
-
-#endregion Designer generated code
diff --git a/QUANTAXIS/QAData/proto/StockDay.cs b/QUANTAXIS/QAData/proto/StockDay.cs
deleted file mode 100755
index 8da4111d7..000000000
--- a/QUANTAXIS/QAData/proto/StockDay.cs
+++ /dev/null
@@ -1,448 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: stock_day.proto
-#pragma warning disable 1591, 0612, 3021
-#region Designer generated code
-
-using pb = global::Google.Protobuf;
-using pbc = global::Google.Protobuf.Collections;
-using pbr = global::Google.Protobuf.Reflection;
-using scg = global::System.Collections.Generic;
-/// Holder for reflection information generated from stock_day.proto
-public static partial class StockDayReflection {
-
- #region Descriptor
- /// File descriptor for stock_day.proto
- public static pbr::FileDescriptor Descriptor {
- get { return descriptor; }
- }
- private static pbr::FileDescriptor descriptor;
-
- static StockDayReflection() {
- byte[] descriptorData = global::System.Convert.FromBase64String(
- string.Concat(
- "Cg9zdG9ja19kYXkucHJvdG8isgEKCXN0b2NrX2RheRIMCgRjb2RlGAEgASgJ",
- "EgwKBG9wZW4YAiABKAISDAoEaGlnaBgDIAEoAhILCgNsb3cYBCABKAISDQoF",
- "Y2xvc2UYBSABKAISDgoGdm9sdW1lGAYgASgCEgwKBGRhdGUYByABKAkSDgoG",
- "YW1vdW50GAggASgCEhIKCmRhdGVfc3RhbXAYCSABKAkSEAoIcHJlY2xvc2UY",
- "CiABKAISCwoDYWRqGAsgASgCMjEKDVNlYXJjaFNlcnZpY2USIAoGU2VhcmNo",
- "Egouc3RvY2tfZGF5Ggouc3RvY2tfZGF5YgZwcm90bzM="));
- descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { },
- new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
- new pbr::GeneratedClrTypeInfo(typeof(global::stock_day), global::stock_day.Parser, new[]{ "Code", "Open", "High", "Low", "Close", "Volume", "Date", "Amount", "DateStamp", "Preclose", "Adj" }, null, null, null)
- }));
- }
- #endregion
-
-}
-#region Messages
-public sealed partial class stock_day : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new stock_day());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::StockDayReflection.Descriptor.MessageTypes[0]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public stock_day() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public stock_day(stock_day other) : this() {
- code_ = other.code_;
- open_ = other.open_;
- high_ = other.high_;
- low_ = other.low_;
- close_ = other.close_;
- volume_ = other.volume_;
- date_ = other.date_;
- amount_ = other.amount_;
- dateStamp_ = other.dateStamp_;
- preclose_ = other.preclose_;
- adj_ = other.adj_;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public stock_day Clone() {
- return new stock_day(this);
- }
-
- /// Field number for the "code" field.
- public const int CodeFieldNumber = 1;
- private string code_ = "";
- ///
- /// code
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string Code {
- get { return code_; }
- set {
- code_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// Field number for the "open" field.
- public const int OpenFieldNumber = 2;
- private float open_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float Open {
- get { return open_; }
- set {
- open_ = value;
- }
- }
-
- /// Field number for the "high" field.
- public const int HighFieldNumber = 3;
- private float high_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float High {
- get { return high_; }
- set {
- high_ = value;
- }
- }
-
- /// Field number for the "low" field.
- public const int LowFieldNumber = 4;
- private float low_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float Low {
- get { return low_; }
- set {
- low_ = value;
- }
- }
-
- /// Field number for the "close" field.
- public const int CloseFieldNumber = 5;
- private float close_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float Close {
- get { return close_; }
- set {
- close_ = value;
- }
- }
-
- /// Field number for the "volume" field.
- public const int VolumeFieldNumber = 6;
- private float volume_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float Volume {
- get { return volume_; }
- set {
- volume_ = value;
- }
- }
-
- /// Field number for the "date" field.
- public const int DateFieldNumber = 7;
- private string date_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string Date {
- get { return date_; }
- set {
- date_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// Field number for the "amount" field.
- public const int AmountFieldNumber = 8;
- private float amount_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float Amount {
- get { return amount_; }
- set {
- amount_ = value;
- }
- }
-
- /// Field number for the "date_stamp" field.
- public const int DateStampFieldNumber = 9;
- private string dateStamp_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string DateStamp {
- get { return dateStamp_; }
- set {
- dateStamp_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// Field number for the "preclose" field.
- public const int PrecloseFieldNumber = 10;
- private float preclose_;
- ///
- ///fq data
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float Preclose {
- get { return preclose_; }
- set {
- preclose_ = value;
- }
- }
-
- /// Field number for the "adj" field.
- public const int AdjFieldNumber = 11;
- private float adj_;
- ///
- ///fq data
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float Adj {
- get { return adj_; }
- set {
- adj_ = value;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as stock_day);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(stock_day other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Code != other.Code) return false;
- if (Open != other.Open) return false;
- if (High != other.High) return false;
- if (Low != other.Low) return false;
- if (Close != other.Close) return false;
- if (Volume != other.Volume) return false;
- if (Date != other.Date) return false;
- if (Amount != other.Amount) return false;
- if (DateStamp != other.DateStamp) return false;
- if (Preclose != other.Preclose) return false;
- if (Adj != other.Adj) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (Code.Length != 0) hash ^= Code.GetHashCode();
- if (Open != 0F) hash ^= Open.GetHashCode();
- if (High != 0F) hash ^= High.GetHashCode();
- if (Low != 0F) hash ^= Low.GetHashCode();
- if (Close != 0F) hash ^= Close.GetHashCode();
- if (Volume != 0F) hash ^= Volume.GetHashCode();
- if (Date.Length != 0) hash ^= Date.GetHashCode();
- if (Amount != 0F) hash ^= Amount.GetHashCode();
- if (DateStamp.Length != 0) hash ^= DateStamp.GetHashCode();
- if (Preclose != 0F) hash ^= Preclose.GetHashCode();
- if (Adj != 0F) hash ^= Adj.GetHashCode();
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (Code.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(Code);
- }
- if (Open != 0F) {
- output.WriteRawTag(21);
- output.WriteFloat(Open);
- }
- if (High != 0F) {
- output.WriteRawTag(29);
- output.WriteFloat(High);
- }
- if (Low != 0F) {
- output.WriteRawTag(37);
- output.WriteFloat(Low);
- }
- if (Close != 0F) {
- output.WriteRawTag(45);
- output.WriteFloat(Close);
- }
- if (Volume != 0F) {
- output.WriteRawTag(53);
- output.WriteFloat(Volume);
- }
- if (Date.Length != 0) {
- output.WriteRawTag(58);
- output.WriteString(Date);
- }
- if (Amount != 0F) {
- output.WriteRawTag(69);
- output.WriteFloat(Amount);
- }
- if (DateStamp.Length != 0) {
- output.WriteRawTag(74);
- output.WriteString(DateStamp);
- }
- if (Preclose != 0F) {
- output.WriteRawTag(85);
- output.WriteFloat(Preclose);
- }
- if (Adj != 0F) {
- output.WriteRawTag(93);
- output.WriteFloat(Adj);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (Code.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Code);
- }
- if (Open != 0F) {
- size += 1 + 4;
- }
- if (High != 0F) {
- size += 1 + 4;
- }
- if (Low != 0F) {
- size += 1 + 4;
- }
- if (Close != 0F) {
- size += 1 + 4;
- }
- if (Volume != 0F) {
- size += 1 + 4;
- }
- if (Date.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Date);
- }
- if (Amount != 0F) {
- size += 1 + 4;
- }
- if (DateStamp.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(DateStamp);
- }
- if (Preclose != 0F) {
- size += 1 + 4;
- }
- if (Adj != 0F) {
- size += 1 + 4;
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(stock_day other) {
- if (other == null) {
- return;
- }
- if (other.Code.Length != 0) {
- Code = other.Code;
- }
- if (other.Open != 0F) {
- Open = other.Open;
- }
- if (other.High != 0F) {
- High = other.High;
- }
- if (other.Low != 0F) {
- Low = other.Low;
- }
- if (other.Close != 0F) {
- Close = other.Close;
- }
- if (other.Volume != 0F) {
- Volume = other.Volume;
- }
- if (other.Date.Length != 0) {
- Date = other.Date;
- }
- if (other.Amount != 0F) {
- Amount = other.Amount;
- }
- if (other.DateStamp.Length != 0) {
- DateStamp = other.DateStamp;
- }
- if (other.Preclose != 0F) {
- Preclose = other.Preclose;
- }
- if (other.Adj != 0F) {
- Adj = other.Adj;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- Code = input.ReadString();
- break;
- }
- case 21: {
- Open = input.ReadFloat();
- break;
- }
- case 29: {
- High = input.ReadFloat();
- break;
- }
- case 37: {
- Low = input.ReadFloat();
- break;
- }
- case 45: {
- Close = input.ReadFloat();
- break;
- }
- case 53: {
- Volume = input.ReadFloat();
- break;
- }
- case 58: {
- Date = input.ReadString();
- break;
- }
- case 69: {
- Amount = input.ReadFloat();
- break;
- }
- case 74: {
- DateStamp = input.ReadString();
- break;
- }
- case 85: {
- Preclose = input.ReadFloat();
- break;
- }
- case 93: {
- Adj = input.ReadFloat();
- break;
- }
- }
- }
- }
-
-}
-
-#endregion
-
-
-#endregion Designer generated code
diff --git a/QUANTAXIS/QAData/proto/StockMin.cs b/QUANTAXIS/QAData/proto/StockMin.cs
deleted file mode 100755
index 915cb8a7c..000000000
--- a/QUANTAXIS/QAData/proto/StockMin.cs
+++ /dev/null
@@ -1,438 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: stock_min.proto
-#pragma warning disable 1591, 0612, 3021
-#region Designer generated code
-
-using pb = global::Google.Protobuf;
-using pbc = global::Google.Protobuf.Collections;
-using pbr = global::Google.Protobuf.Reflection;
-using scg = global::System.Collections.Generic;
-/// Holder for reflection information generated from stock_min.proto
-public static partial class StockMinReflection {
-
- #region Descriptor
- /// File descriptor for stock_min.proto
- public static pbr::FileDescriptor Descriptor {
- get { return descriptor; }
- }
- private static pbr::FileDescriptor descriptor;
-
- static StockMinReflection() {
- byte[] descriptorData = global::System.Convert.FromBase64String(
- string.Concat(
- "Cg9zdG9ja19taW4ucHJvdG8iuQEKCXN0b2NrX21pbhIMCgRjb2RlGAEgASgJ",
- "EgwKBG9wZW4YAiABKAISDAoEaGlnaBgDIAEoAhILCgNsb3cYBCABKAISDQoF",
- "Y2xvc2UYBSABKAISDgoGdm9sdW1lGAYgASgCEgwKBGRhdGUYByABKAkSDgoG",
- "YW1vdW50GAggASgCEhIKCmRhdGVfc3RhbXAYCSABKAkSEAoIZGF0ZXRpbWUY",
- "CiABKAkSEgoKdGltZV9zdGFtcBgLIAEoCWIGcHJvdG8z"));
- descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { },
- new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
- new pbr::GeneratedClrTypeInfo(typeof(global::stock_min), global::stock_min.Parser, new[]{ "Code", "Open", "High", "Low", "Close", "Volume", "Date", "Amount", "DateStamp", "Datetime", "TimeStamp" }, null, null, null)
- }));
- }
- #endregion
-
-}
-#region Messages
-public sealed partial class stock_min : pb::IMessage {
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new stock_min());
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser Parser { get { return _parser; } }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor {
- get { return global::StockMinReflection.Descriptor.MessageTypes[0]; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public stock_min() {
- OnConstruction();
- }
-
- partial void OnConstruction();
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public stock_min(stock_min other) : this() {
- code_ = other.code_;
- open_ = other.open_;
- high_ = other.high_;
- low_ = other.low_;
- close_ = other.close_;
- volume_ = other.volume_;
- date_ = other.date_;
- amount_ = other.amount_;
- dateStamp_ = other.dateStamp_;
- datetime_ = other.datetime_;
- timeStamp_ = other.timeStamp_;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public stock_min Clone() {
- return new stock_min(this);
- }
-
- /// Field number for the "code" field.
- public const int CodeFieldNumber = 1;
- private string code_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string Code {
- get { return code_; }
- set {
- code_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// Field number for the "open" field.
- public const int OpenFieldNumber = 2;
- private float open_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float Open {
- get { return open_; }
- set {
- open_ = value;
- }
- }
-
- /// Field number for the "high" field.
- public const int HighFieldNumber = 3;
- private float high_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float High {
- get { return high_; }
- set {
- high_ = value;
- }
- }
-
- /// Field number for the "low" field.
- public const int LowFieldNumber = 4;
- private float low_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float Low {
- get { return low_; }
- set {
- low_ = value;
- }
- }
-
- /// Field number for the "close" field.
- public const int CloseFieldNumber = 5;
- private float close_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float Close {
- get { return close_; }
- set {
- close_ = value;
- }
- }
-
- /// Field number for the "volume" field.
- public const int VolumeFieldNumber = 6;
- private float volume_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float Volume {
- get { return volume_; }
- set {
- volume_ = value;
- }
- }
-
- /// Field number for the "date" field.
- public const int DateFieldNumber = 7;
- private string date_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string Date {
- get { return date_; }
- set {
- date_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// Field number for the "amount" field.
- public const int AmountFieldNumber = 8;
- private float amount_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public float Amount {
- get { return amount_; }
- set {
- amount_ = value;
- }
- }
-
- /// Field number for the "date_stamp" field.
- public const int DateStampFieldNumber = 9;
- private string dateStamp_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string DateStamp {
- get { return dateStamp_; }
- set {
- dateStamp_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// Field number for the "datetime" field.
- public const int DatetimeFieldNumber = 10;
- private string datetime_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string Datetime {
- get { return datetime_; }
- set {
- datetime_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- /// Field number for the "time_stamp" field.
- public const int TimeStampFieldNumber = 11;
- private string timeStamp_ = "";
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public string TimeStamp {
- get { return timeStamp_; }
- set {
- timeStamp_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other) {
- return Equals(other as stock_min);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(stock_min other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Code != other.Code) return false;
- if (Open != other.Open) return false;
- if (High != other.High) return false;
- if (Low != other.Low) return false;
- if (Close != other.Close) return false;
- if (Volume != other.Volume) return false;
- if (Date != other.Date) return false;
- if (Amount != other.Amount) return false;
- if (DateStamp != other.DateStamp) return false;
- if (Datetime != other.Datetime) return false;
- if (TimeStamp != other.TimeStamp) return false;
- return true;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode() {
- int hash = 1;
- if (Code.Length != 0) hash ^= Code.GetHashCode();
- if (Open != 0F) hash ^= Open.GetHashCode();
- if (High != 0F) hash ^= High.GetHashCode();
- if (Low != 0F) hash ^= Low.GetHashCode();
- if (Close != 0F) hash ^= Close.GetHashCode();
- if (Volume != 0F) hash ^= Volume.GetHashCode();
- if (Date.Length != 0) hash ^= Date.GetHashCode();
- if (Amount != 0F) hash ^= Amount.GetHashCode();
- if (DateStamp.Length != 0) hash ^= DateStamp.GetHashCode();
- if (Datetime.Length != 0) hash ^= Datetime.GetHashCode();
- if (TimeStamp.Length != 0) hash ^= TimeStamp.GetHashCode();
- return hash;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output) {
- if (Code.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(Code);
- }
- if (Open != 0F) {
- output.WriteRawTag(21);
- output.WriteFloat(Open);
- }
- if (High != 0F) {
- output.WriteRawTag(29);
- output.WriteFloat(High);
- }
- if (Low != 0F) {
- output.WriteRawTag(37);
- output.WriteFloat(Low);
- }
- if (Close != 0F) {
- output.WriteRawTag(45);
- output.WriteFloat(Close);
- }
- if (Volume != 0F) {
- output.WriteRawTag(53);
- output.WriteFloat(Volume);
- }
- if (Date.Length != 0) {
- output.WriteRawTag(58);
- output.WriteString(Date);
- }
- if (Amount != 0F) {
- output.WriteRawTag(69);
- output.WriteFloat(Amount);
- }
- if (DateStamp.Length != 0) {
- output.WriteRawTag(74);
- output.WriteString(DateStamp);
- }
- if (Datetime.Length != 0) {
- output.WriteRawTag(82);
- output.WriteString(Datetime);
- }
- if (TimeStamp.Length != 0) {
- output.WriteRawTag(90);
- output.WriteString(TimeStamp);
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize() {
- int size = 0;
- if (Code.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Code);
- }
- if (Open != 0F) {
- size += 1 + 4;
- }
- if (High != 0F) {
- size += 1 + 4;
- }
- if (Low != 0F) {
- size += 1 + 4;
- }
- if (Close != 0F) {
- size += 1 + 4;
- }
- if (Volume != 0F) {
- size += 1 + 4;
- }
- if (Date.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Date);
- }
- if (Amount != 0F) {
- size += 1 + 4;
- }
- if (DateStamp.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(DateStamp);
- }
- if (Datetime.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Datetime);
- }
- if (TimeStamp.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(TimeStamp);
- }
- return size;
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(stock_min other) {
- if (other == null) {
- return;
- }
- if (other.Code.Length != 0) {
- Code = other.Code;
- }
- if (other.Open != 0F) {
- Open = other.Open;
- }
- if (other.High != 0F) {
- High = other.High;
- }
- if (other.Low != 0F) {
- Low = other.Low;
- }
- if (other.Close != 0F) {
- Close = other.Close;
- }
- if (other.Volume != 0F) {
- Volume = other.Volume;
- }
- if (other.Date.Length != 0) {
- Date = other.Date;
- }
- if (other.Amount != 0F) {
- Amount = other.Amount;
- }
- if (other.DateStamp.Length != 0) {
- DateStamp = other.DateStamp;
- }
- if (other.Datetime.Length != 0) {
- Datetime = other.Datetime;
- }
- if (other.TimeStamp.Length != 0) {
- TimeStamp = other.TimeStamp;
- }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- Code = input.ReadString();
- break;
- }
- case 21: {
- Open = input.ReadFloat();
- break;
- }
- case 29: {
- High = input.ReadFloat();
- break;
- }
- case 37: {
- Low = input.ReadFloat();
- break;
- }
- case 45: {
- Close = input.ReadFloat();
- break;
- }
- case 53: {
- Volume = input.ReadFloat();
- break;
- }
- case 58: {
- Date = input.ReadString();
- break;
- }
- case 69: {
- Amount = input.ReadFloat();
- break;
- }
- case 74: {
- DateStamp = input.ReadString();
- break;
- }
- case 82: {
- Datetime = input.ReadString();
- break;
- }
- case 90: {
- TimeStamp = input.ReadString();
- break;
- }
- }
- }
- }
-
-}
-
-#endregion
-
-
-#endregion Designer generated code
diff --git a/QUANTAXIS/QAData/proto/__init__.py b/QUANTAXIS/QAData/proto/__init__.py
deleted file mode 100755
index e69de29bb..000000000
diff --git a/QUANTAXIS/QAData/proto/account_message.proto b/QUANTAXIS/QAData/proto/account_message.proto
deleted file mode 100755
index e69de29bb..000000000
diff --git a/QUANTAXIS/QAData/proto/market_response.proto b/QUANTAXIS/QAData/proto/market_response.proto
deleted file mode 100755
index e69de29bb..000000000
diff --git a/QUANTAXIS/QAData/proto/order.pb.cc b/QUANTAXIS/QAData/proto/order.pb.cc
deleted file mode 100755
index 7097d23db..000000000
--- a/QUANTAXIS/QAData/proto/order.pb.cc
+++ /dev/null
@@ -1,1935 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: order.proto
-
-#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
-#include "order.pb.h"
-
-#include
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-// @@protoc_insertion_point(includes)
-class QA_Market_orderDefaultTypeInternal {
-public:
- ::google::protobuf::internal::ExplicitlyConstructed
- _instance;
-} _QA_Market_order_default_instance_;
-
-namespace protobuf_order_2eproto {
-
-
-namespace {
-
-::google::protobuf::Metadata file_level_metadata[1];
-
-} // namespace
-
-PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::ParseTableField
- const TableStruct::entries[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- {0, 0, 0, ::google::protobuf::internal::kInvalidMask, 0, 0},
-};
-
-PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::AuxillaryParseTableField
- const TableStruct::aux[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- ::google::protobuf::internal::AuxillaryParseTableField(),
-};
-PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::ParseTable const
- TableStruct::schema[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
-};
-
-const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QA_Market_order, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QA_Market_order, price_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QA_Market_order, date_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QA_Market_order, datetime_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QA_Market_order, sending_time_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QA_Market_order, transact_time_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QA_Market_order, amount_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QA_Market_order, towards_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QA_Market_order, code_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QA_Market_order, user_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QA_Market_order, strategy_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QA_Market_order, type_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QA_Market_order, order_model_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QA_Market_order, amount_model_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QA_Market_order, order_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QA_Market_order, trade_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(QA_Market_order, status_),
-};
-static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- { 0, -1, sizeof(QA_Market_order)},
-};
-
-static ::google::protobuf::Message const * const file_default_instances[] = {
- reinterpret_cast(&_QA_Market_order_default_instance_),
-};
-
-namespace {
-
-void protobuf_AssignDescriptors() {
- AddDescriptors();
- ::google::protobuf::MessageFactory* factory = NULL;
- AssignDescriptors(
- "order.proto", schemas, file_default_instances, TableStruct::offsets, factory,
- file_level_metadata, NULL, NULL);
-}
-
-void protobuf_AssignDescriptorsOnce() {
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
- ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
-}
-
-void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD;
-void protobuf_RegisterTypes(const ::std::string&) {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1);
-}
-
-} // namespace
-void TableStruct::InitDefaultsImpl() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
-
- ::google::protobuf::internal::InitProtobufDefaults();
- _QA_Market_order_default_instance_._instance.DefaultConstruct();
- ::google::protobuf::internal::OnShutdownDestroyMessage(
- &_QA_Market_order_default_instance_);}
-
-void InitDefaults() {
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
- ::google::protobuf::GoogleOnceInit(&once, &TableStruct::InitDefaultsImpl);
-}
-namespace {
-void AddDescriptorsImpl() {
- InitDefaults();
- static const char descriptor[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- "\n\013order.proto\"\245\002\n\rQA_Market_order\022\r\n\005price"
- "\030\001 \001(\002\022\014\n\004date\030\002 \001(\t\022\020\n\010datetime\030\003 \001(\t\022\024"
- "\n\014sending_time\030\004 \001(\t\022\025\n\rtransact_time\030\005 "
- "\001(\t\022\016\n\006amount\030\006 \001(\002\022\017\n\007towards\030\007 \001(\003\022\014\n\004"
- "code\030\010 \001(\t\022\014\n\004user\030\t \001(\t\022\020\n\010strategy\030\n \001"
- "(\t\022\014\n\004type\030\013 \001(\t\022\021\n\torder_model\030\014 \001(\t\022\024\n\014a"
- "mount_model\030\r \001(\t\022\020\n\010order_id\030\016 \001(\t\022\020\n\010t"
- "rade_id\030\017 \001(\t\022\016\n\006status\030\020 \001(\tb\006proto3"
- };
- ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
- descriptor, 317);
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
- "order.proto", &protobuf_RegisterTypes);
-}
-} // anonymous namespace
-
-void AddDescriptors() {
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
- ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
-}
-// Force AddDescriptors() to be called at dynamic initialization time.
-struct StaticDescriptorInitializer {
- StaticDescriptorInitializer() {
- AddDescriptors();
- }
-} static_descriptor_initializer;
-
-} // namespace protobuf_order_2eproto
-
-
-// ===================================================================
-
-#if !defined(_MSC_VER) || _MSC_VER >= 1900
-const int QA_Market_order::kPriceFieldNumber;
-const int QA_Market_order::kDateFieldNumber;
-const int QA_Market_order::kDatetimeFieldNumber;
-const int QA_Market_order::kSendingTimeFieldNumber;
-const int QA_Market_order::kTransactTimeFieldNumber;
-const int QA_Market_order::kAmountFieldNumber;
-const int QA_Market_order::kTowardsFieldNumber;
-const int QA_Market_order::kCodeFieldNumber;
-const int QA_Market_order::kUserFieldNumber;
-const int QA_Market_order::kStrategyFieldNumber;
-const int QA_Market_order::kTypeFieldNumber;
-const int QA_Market_order::kBidModelFieldNumber;
-const int QA_Market_order::kAmountModelFieldNumber;
-const int QA_Market_order::kOrderIdFieldNumber;
-const int QA_Market_order::kTradeIdFieldNumber;
-const int QA_Market_order::kStatusFieldNumber;
-#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
-
-QA_Market_order::QA_Market_order()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
- protobuf_order_2eproto::InitDefaults();
- }
- SharedCtor();
- // @@protoc_insertion_point(constructor:QA_Market_order)
-}
-QA_Market_order::QA_Market_order(const QA_Market_order& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _cached_size_(0) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- date_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.date().size() > 0) {
- date_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.date_);
- }
- datetime_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.datetime().size() > 0) {
- datetime_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.datetime_);
- }
- sending_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.sending_time().size() > 0) {
- sending_time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.sending_time_);
- }
- transact_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.transact_time().size() > 0) {
- transact_time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.transact_time_);
- }
- code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.code().size() > 0) {
- code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.code_);
- }
- user_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.user().size() > 0) {
- user_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.user_);
- }
- strategy_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.strategy().size() > 0) {
- strategy_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.strategy_);
- }
- type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.type().size() > 0) {
- type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_);
- }
- order_model_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.order_model().size() > 0) {
- order_model_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.order_model_);
- }
- amount_model_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.amount_model().size() > 0) {
- amount_model_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.amount_model_);
- }
- order_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.order_id().size() > 0) {
- order_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.order_id_);
- }
- trade_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.trade_id().size() > 0) {
- trade_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.trade_id_);
- }
- status_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.status().size() > 0) {
- status_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.status_);
- }
- ::memcpy(&price_, &from.price_,
- static_cast(reinterpret_cast(&towards_) -
- reinterpret_cast(&price_)) + sizeof(towards_));
- // @@protoc_insertion_point(copy_constructor:QA_Market_order)
-}
-
-void QA_Market_order::SharedCtor() {
- date_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- datetime_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- sending_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- transact_time_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- user_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- strategy_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- order_model_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- amount_model_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- order_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- trade_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- status_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- ::memset(&price_, 0, static_cast(
- reinterpret_cast(&towards_) -
- reinterpret_cast(&price_)) + sizeof(towards_));
- _cached_size_ = 0;
-}
-
-QA_Market_order::~QA_Market_order() {
- // @@protoc_insertion_point(destructor:QA_Market_order)
- SharedDtor();
-}
-
-void QA_Market_order::SharedDtor() {
- date_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- datetime_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- sending_time_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- transact_time_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- code_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- user_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- strategy_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- order_model_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- amount_model_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- order_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- trade_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- status_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-
-void QA_Market_order::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
-}
-const ::google::protobuf::Descriptor* QA_Market_order::descriptor() {
- protobuf_order_2eproto::protobuf_AssignDescriptorsOnce();
- return protobuf_order_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
-}
-
-const QA_Market_order& QA_Market_order::default_instance() {
- protobuf_order_2eproto::InitDefaults();
- return *internal_default_instance();
-}
-
-QA_Market_order* QA_Market_order::New(::google::protobuf::Arena* arena) const {
- QA_Market_order* n = new QA_Market_order;
- if (arena != NULL) {
- arena->Own(n);
- }
- return n;
-}
-
-void QA_Market_order::Clear() {
-// @@protoc_insertion_point(message_clear_start:QA_Market_order)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
-
- date_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- datetime_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- sending_time_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- transact_time_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- code_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- user_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- strategy_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- order_model_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- amount_model_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- order_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- trade_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- status_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- ::memset(&price_, 0, static_cast(
- reinterpret_cast(&towards_) -
- reinterpret_cast(&price_)) + sizeof(towards_));
- _internal_metadata_.Clear();
-}
-
-bool QA_Market_order::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:QA_Market_order)
- for (;;) {
- ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // float price = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
-
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &price_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
- // string date = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_date()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->date().data(), static_cast(this->date().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "QA_Market_order.date"));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
- // string datetime = 3;
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_datetime()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->datetime().data(), static_cast(this->datetime().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "QA_Market_order.datetime"));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
- // string sending_time = 4;
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_sending_time()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->sending_time().data(), static_cast(this->sending_time().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "QA_Market_order.sending_time"));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
- // string transact_time = 5;
- case 5: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_transact_time()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->transact_time().data(), static_cast(this->transact_time().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "QA_Market_order.transact_time"));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
- // float amount = 6;
- case 6: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(53u /* 53 & 0xFF */)) {
-
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &amount_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
- // int64 towards = 7;
- case 7: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
-
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
- input, &towards_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
- // string code = 8;
- case 8: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_code()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->code().data(), static_cast(this->code().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "QA_Market_order.code"));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
- // string user = 9;
- case 9: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_user()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->user().data(), static_cast(this->user().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "QA_Market_order.user"));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
- // string strategy = 10;
- case 10: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_strategy()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->strategy().data(), static_cast(this->strategy().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "QA_Market_order.strategy"));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
- // string type = 11;
- case 11: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_type()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->type().data(), static_cast(this->type().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "QA_Market_order.type"));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
- // string order_model = 12;
- case 12: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_order_model()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->order_model().data(), static_cast(this->order_model().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "QA_Market_order.order_model"));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
- // string amount_model = 13;
- case 13: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_amount_model()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->amount_model().data(), static_cast(this->amount_model().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "QA_Market_order.amount_model"));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
- // string order_id = 14;
- case 14: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(114u /* 114 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_order_id()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->order_id().data(), static_cast(this->order_id().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "QA_Market_order.order_id"));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
- // string trade_id = 15;
- case 15: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(122u /* 122 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_trade_id()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->trade_id().data(), static_cast(this->trade_id().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "QA_Market_order.trade_id"));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
- // string status = 16;
- case 16: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(130u /* 130 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_status()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->status().data(), static_cast(this->status().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "QA_Market_order.status"));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
-success:
- // @@protoc_insertion_point(parse_success:QA_Market_order)
- return true;
-failure:
- // @@protoc_insertion_point(parse_failure:QA_Market_order)
- return false;
-#undef DO_
-}
-
-void QA_Market_order::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:QA_Market_order)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
-
- // float price = 1;
- if (this->price() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->price(), output);
- }
-
- // string date = 2;
- if (this->date().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->date().data(), static_cast(this->date().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "QA_Market_order.date");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 2, this->date(), output);
- }
-
- // string datetime = 3;
- if (this->datetime().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->datetime().data(), static_cast(this->datetime().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "QA_Market_order.datetime");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 3, this->datetime(), output);
- }
-
- // string sending_time = 4;
- if (this->sending_time().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->sending_time().data(), static_cast(this->sending_time().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "QA_Market_order.sending_time");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 4, this->sending_time(), output);
- }
-
- // string transact_time = 5;
- if (this->transact_time().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->transact_time().data(), static_cast(this->transact_time().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "QA_Market_order.transact_time");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 5, this->transact_time(), output);
- }
-
- // float amount = 6;
- if (this->amount() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(6, this->amount(), output);
- }
-
- // int64 towards = 7;
- if (this->towards() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteInt64(7, this->towards(), output);
- }
-
- // string code = 8;
- if (this->code().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->code().data(), static_cast(this->code().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "QA_Market_order.code");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 8, this->code(), output);
- }
-
- // string user = 9;
- if (this->user().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->user().data(), static_cast(this->user().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "QA_Market_order.user");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 9, this->user(), output);
- }
-
- // string strategy = 10;
- if (this->strategy().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->strategy().data(), static_cast(this->strategy().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "QA_Market_order.strategy");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 10, this->strategy(), output);
- }
-
- // string type = 11;
- if (this->type().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->type().data(), static_cast(this->type().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "QA_Market_order.type");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 11, this->type(), output);
- }
-
- // string order_model = 12;
- if (this->order_model().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->order_model().data(), static_cast(this->order_model().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "QA_Market_order.order_model");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 12, this->order_model(), output);
- }
-
- // string amount_model = 13;
- if (this->amount_model().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->amount_model().data(), static_cast(this->amount_model().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "QA_Market_order.amount_model");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 13, this->amount_model(), output);
- }
-
- // string order_id = 14;
- if (this->order_id().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->order_id().data(), static_cast(this->order_id().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "QA_Market_order.order_id");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 14, this->order_id(), output);
- }
-
- // string trade_id = 15;
- if (this->trade_id().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->trade_id().data(), static_cast(this->trade_id().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "QA_Market_order.trade_id");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 15, this->trade_id(), output);
- }
-
- // string status = 16;
- if (this->status().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->status().data(), static_cast(this->status().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "QA_Market_order.status");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 16, this->status(), output);
- }
-
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:QA_Market_order)
-}
-
-::google::protobuf::uint8* QA_Market_order::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:QA_Market_order)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
-
- // float price = 1;
- if (this->price() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->price(), target);
- }
-
- // string date = 2;
- if (this->date().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->date().data(), static_cast(this->date().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "QA_Market_order.date");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 2, this->date(), target);
- }
-
- // string datetime = 3;
- if (this->datetime().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->datetime().data(), static_cast(this->datetime().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "QA_Market_order.datetime");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 3, this->datetime(), target);
- }
-
- // string sending_time = 4;
- if (this->sending_time().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->sending_time().data(), static_cast(this->sending_time().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "QA_Market_order.sending_time");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 4, this->sending_time(), target);
- }
-
- // string transact_time = 5;
- if (this->transact_time().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->transact_time().data(), static_cast(this->transact_time().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "QA_Market_order.transact_time");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 5, this->transact_time(), target);
- }
-
- // float amount = 6;
- if (this->amount() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(6, this->amount(), target);
- }
-
- // int64 towards = 7;
- if (this->towards() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(7, this->towards(), target);
- }
-
- // string code = 8;
- if (this->code().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->code().data(), static_cast(this->code().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "QA_Market_order.code");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 8, this->code(), target);
- }
-
- // string user = 9;
- if (this->user().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->user().data(), static_cast(this->user().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "QA_Market_order.user");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 9, this->user(), target);
- }
-
- // string strategy = 10;
- if (this->strategy().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->strategy().data(), static_cast(this->strategy().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "QA_Market_order.strategy");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 10, this->strategy(), target);
- }
-
- // string type = 11;
- if (this->type().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->type().data(), static_cast(this->type().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "QA_Market_order.type");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 11, this->type(), target);
- }
-
- // string order_model = 12;
- if (this->order_model().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->order_model().data(), static_cast(this->order_model().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "QA_Market_order.order_model");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 12, this->order_model(), target);
- }
-
- // string amount_model = 13;
- if (this->amount_model().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->amount_model().data(), static_cast(this->amount_model().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "QA_Market_order.amount_model");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 13, this->amount_model(), target);
- }
-
- // string order_id = 14;
- if (this->order_id().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->order_id().data(), static_cast(this->order_id().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "QA_Market_order.order_id");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 14, this->order_id(), target);
- }
-
- // string trade_id = 15;
- if (this->trade_id().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->trade_id().data(), static_cast(this->trade_id().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "QA_Market_order.trade_id");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 15, this->trade_id(), target);
- }
-
- // string status = 16;
- if (this->status().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->status().data(), static_cast(this->status().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "QA_Market_order.status");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 16, this->status(), target);
- }
-
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:QA_Market_order)
- return target;
-}
-
-size_t QA_Market_order::ByteSizeLong() const {
-// @@protoc_insertion_point(message_byte_size_start:QA_Market_order)
- size_t total_size = 0;
-
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // string date = 2;
- if (this->date().size() > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->date());
- }
-
- // string datetime = 3;
- if (this->datetime().size() > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->datetime());
- }
-
- // string sending_time = 4;
- if (this->sending_time().size() > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->sending_time());
- }
-
- // string transact_time = 5;
- if (this->transact_time().size() > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->transact_time());
- }
-
- // string code = 8;
- if (this->code().size() > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->code());
- }
-
- // string user = 9;
- if (this->user().size() > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->user());
- }
-
- // string strategy = 10;
- if (this->strategy().size() > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->strategy());
- }
-
- // string type = 11;
- if (this->type().size() > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->type());
- }
-
- // string order_model = 12;
- if (this->order_model().size() > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->order_model());
- }
-
- // string amount_model = 13;
- if (this->amount_model().size() > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->amount_model());
- }
-
- // string order_id = 14;
- if (this->order_id().size() > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->order_id());
- }
-
- // string trade_id = 15;
- if (this->trade_id().size() > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->trade_id());
- }
-
- // string status = 16;
- if (this->status().size() > 0) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->status());
- }
-
- // float price = 1;
- if (this->price() != 0) {
- total_size += 1 + 4;
- }
-
- // float amount = 6;
- if (this->amount() != 0) {
- total_size += 1 + 4;
- }
-
- // int64 towards = 7;
- if (this->towards() != 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int64Size(
- this->towards());
- }
-
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = cached_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- return total_size;
-}
-
-void QA_Market_order::MergeFrom(const ::google::protobuf::Message& from) {
-// @@protoc_insertion_point(generalized_merge_from_start:QA_Market_order)
- GOOGLE_DCHECK_NE(&from, this);
- const QA_Market_order* source =
- ::google::protobuf::internal::DynamicCastToGenerated(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:QA_Market_order)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:QA_Market_order)
- MergeFrom(*source);
- }
-}
-
-void QA_Market_order::MergeFrom(const QA_Market_order& from) {
-// @@protoc_insertion_point(class_specific_merge_from_start:QA_Market_order)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
-
- if (from.date().size() > 0) {
-
- date_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.date_);
- }
- if (from.datetime().size() > 0) {
-
- datetime_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.datetime_);
- }
- if (from.sending_time().size() > 0) {
-
- sending_time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.sending_time_);
- }
- if (from.transact_time().size() > 0) {
-
- transact_time_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.transact_time_);
- }
- if (from.code().size() > 0) {
-
- code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.code_);
- }
- if (from.user().size() > 0) {
-
- user_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.user_);
- }
- if (from.strategy().size() > 0) {
-
- strategy_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.strategy_);
- }
- if (from.type().size() > 0) {
-
- type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_);
- }
- if (from.order_model().size() > 0) {
-
- order_model_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.order_model_);
- }
- if (from.amount_model().size() > 0) {
-
- amount_model_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.amount_model_);
- }
- if (from.order_id().size() > 0) {
-
- order_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.order_id_);
- }
- if (from.trade_id().size() > 0) {
-
- trade_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.trade_id_);
- }
- if (from.status().size() > 0) {
-
- status_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.status_);
- }
- if (from.price() != 0) {
- set_price(from.price());
- }
- if (from.amount() != 0) {
- set_amount(from.amount());
- }
- if (from.towards() != 0) {
- set_towards(from.towards());
- }
-}
-
-void QA_Market_order::CopyFrom(const ::google::protobuf::Message& from) {
-// @@protoc_insertion_point(generalized_copy_from_start:QA_Market_order)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
-}
-
-void QA_Market_order::CopyFrom(const QA_Market_order& from) {
-// @@protoc_insertion_point(class_specific_copy_from_start:QA_Market_order)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
-}
-
-bool QA_Market_order::IsInitialized() const {
- return true;
-}
-
-void QA_Market_order::Swap(QA_Market_order* other) {
- if (other == this) return;
- InternalSwap(other);
-}
-void QA_Market_order::InternalSwap(QA_Market_order* other) {
- using std::swap;
- date_.Swap(&other->date_);
- datetime_.Swap(&other->datetime_);
- sending_time_.Swap(&other->sending_time_);
- transact_time_.Swap(&other->transact_time_);
- code_.Swap(&other->code_);
- user_.Swap(&other->user_);
- strategy_.Swap(&other->strategy_);
- type_.Swap(&other->type_);
- order_model_.Swap(&other->order_model_);
- amount_model_.Swap(&other->amount_model_);
- order_id_.Swap(&other->order_id_);
- trade_id_.Swap(&other->trade_id_);
- status_.Swap(&other->status_);
- swap(price_, other->price_);
- swap(amount_, other->amount_);
- swap(towards_, other->towards_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- swap(_cached_size_, other->_cached_size_);
-}
-
-::google::protobuf::Metadata QA_Market_order::GetMetadata() const {
- protobuf_order_2eproto::protobuf_AssignDescriptorsOnce();
- return protobuf_order_2eproto::file_level_metadata[kIndexInFileMessages];
-}
-
-#if PROTOBUF_INLINE_NOT_IN_HEADERS
-// QA_Market_order
-
-// float price = 1;
-void QA_Market_order::clear_price() {
- price_ = 0;
-}
-float QA_Market_order::price() const {
- // @@protoc_insertion_point(field_get:QA_Market_order.price)
- return price_;
-}
-void QA_Market_order::set_price(float value) {
-
- price_ = value;
- // @@protoc_insertion_point(field_set:QA_Market_order.price)
-}
-
-// string date = 2;
-void QA_Market_order::clear_date() {
- date_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-const ::std::string& QA_Market_order::date() const {
- // @@protoc_insertion_point(field_get:QA_Market_order.date)
- return date_.GetNoArena();
-}
-void QA_Market_order::set_date(const ::std::string& value) {
-
- date_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:QA_Market_order.date)
-}
-#if LANG_CXX11
-void QA_Market_order::set_date(::std::string&& value) {
-
- date_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:QA_Market_order.date)
-}
-#endif
-void QA_Market_order::set_date(const char* value) {
- GOOGLE_DCHECK(value != NULL);
-
- date_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:QA_Market_order.date)
-}
-void QA_Market_order::set_date(const char* value, size_t size) {
-
- date_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast(value), size));
- // @@protoc_insertion_point(field_set_pointer:QA_Market_order.date)
-}
-::std::string* QA_Market_order::mutable_date() {
-
- // @@protoc_insertion_point(field_mutable:QA_Market_order.date)
- return date_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-::std::string* QA_Market_order::release_date() {
- // @@protoc_insertion_point(field_release:QA_Market_order.date)
-
- return date_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-void QA_Market_order::set_allocated_date(::std::string* date) {
- if (date != NULL) {
-
- } else {
-
- }
- date_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), date);
- // @@protoc_insertion_point(field_set_allocated:QA_Market_order.date)
-}
-
-// string datetime = 3;
-void QA_Market_order::clear_datetime() {
- datetime_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-const ::std::string& QA_Market_order::datetime() const {
- // @@protoc_insertion_point(field_get:QA_Market_order.datetime)
- return datetime_.GetNoArena();
-}
-void QA_Market_order::set_datetime(const ::std::string& value) {
-
- datetime_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:QA_Market_order.datetime)
-}
-#if LANG_CXX11
-void QA_Market_order::set_datetime(::std::string&& value) {
-
- datetime_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:QA_Market_order.datetime)
-}
-#endif
-void QA_Market_order::set_datetime(const char* value) {
- GOOGLE_DCHECK(value != NULL);
-
- datetime_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:QA_Market_order.datetime)
-}
-void QA_Market_order::set_datetime(const char* value, size_t size) {
-
- datetime_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast(value), size));
- // @@protoc_insertion_point(field_set_pointer:QA_Market_order.datetime)
-}
-::std::string* QA_Market_order::mutable_datetime() {
-
- // @@protoc_insertion_point(field_mutable:QA_Market_order.datetime)
- return datetime_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-::std::string* QA_Market_order::release_datetime() {
- // @@protoc_insertion_point(field_release:QA_Market_order.datetime)
-
- return datetime_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-void QA_Market_order::set_allocated_datetime(::std::string* datetime) {
- if (datetime != NULL) {
-
- } else {
-
- }
- datetime_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), datetime);
- // @@protoc_insertion_point(field_set_allocated:QA_Market_order.datetime)
-}
-
-// string sending_time = 4;
-void QA_Market_order::clear_sending_time() {
- sending_time_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-const ::std::string& QA_Market_order::sending_time() const {
- // @@protoc_insertion_point(field_get:QA_Market_order.sending_time)
- return sending_time_.GetNoArena();
-}
-void QA_Market_order::set_sending_time(const ::std::string& value) {
-
- sending_time_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:QA_Market_order.sending_time)
-}
-#if LANG_CXX11
-void QA_Market_order::set_sending_time(::std::string&& value) {
-
- sending_time_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:QA_Market_order.sending_time)
-}
-#endif
-void QA_Market_order::set_sending_time(const char* value) {
- GOOGLE_DCHECK(value != NULL);
-
- sending_time_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:QA_Market_order.sending_time)
-}
-void QA_Market_order::set_sending_time(const char* value, size_t size) {
-
- sending_time_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast(value), size));
- // @@protoc_insertion_point(field_set_pointer:QA_Market_order.sending_time)
-}
-::std::string* QA_Market_order::mutable_sending_time() {
-
- // @@protoc_insertion_point(field_mutable:QA_Market_order.sending_time)
- return sending_time_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-::std::string* QA_Market_order::release_sending_time() {
- // @@protoc_insertion_point(field_release:QA_Market_order.sending_time)
-
- return sending_time_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-void QA_Market_order::set_allocated_sending_time(::std::string* sending_time) {
- if (sending_time != NULL) {
-
- } else {
-
- }
- sending_time_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), sending_time);
- // @@protoc_insertion_point(field_set_allocated:QA_Market_order.sending_time)
-}
-
-// string transact_time = 5;
-void QA_Market_order::clear_transact_time() {
- transact_time_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-const ::std::string& QA_Market_order::transact_time() const {
- // @@protoc_insertion_point(field_get:QA_Market_order.transact_time)
- return transact_time_.GetNoArena();
-}
-void QA_Market_order::set_transact_time(const ::std::string& value) {
-
- transact_time_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:QA_Market_order.transact_time)
-}
-#if LANG_CXX11
-void QA_Market_order::set_transact_time(::std::string&& value) {
-
- transact_time_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:QA_Market_order.transact_time)
-}
-#endif
-void QA_Market_order::set_transact_time(const char* value) {
- GOOGLE_DCHECK(value != NULL);
-
- transact_time_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:QA_Market_order.transact_time)
-}
-void QA_Market_order::set_transact_time(const char* value, size_t size) {
-
- transact_time_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast(value), size));
- // @@protoc_insertion_point(field_set_pointer:QA_Market_order.transact_time)
-}
-::std::string* QA_Market_order::mutable_transact_time() {
-
- // @@protoc_insertion_point(field_mutable:QA_Market_order.transact_time)
- return transact_time_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-::std::string* QA_Market_order::release_transact_time() {
- // @@protoc_insertion_point(field_release:QA_Market_order.transact_time)
-
- return transact_time_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-void QA_Market_order::set_allocated_transact_time(::std::string* transact_time) {
- if (transact_time != NULL) {
-
- } else {
-
- }
- transact_time_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), transact_time);
- // @@protoc_insertion_point(field_set_allocated:QA_Market_order.transact_time)
-}
-
-// float amount = 6;
-void QA_Market_order::clear_amount() {
- amount_ = 0;
-}
-float QA_Market_order::amount() const {
- // @@protoc_insertion_point(field_get:QA_Market_order.amount)
- return amount_;
-}
-void QA_Market_order::set_amount(float value) {
-
- amount_ = value;
- // @@protoc_insertion_point(field_set:QA_Market_order.amount)
-}
-
-// int64 towards = 7;
-void QA_Market_order::clear_towards() {
- towards_ = GOOGLE_LONGLONG(0);
-}
-::google::protobuf::int64 QA_Market_order::towards() const {
- // @@protoc_insertion_point(field_get:QA_Market_order.towards)
- return towards_;
-}
-void QA_Market_order::set_towards(::google::protobuf::int64 value) {
-
- towards_ = value;
- // @@protoc_insertion_point(field_set:QA_Market_order.towards)
-}
-
-// string code = 8;
-void QA_Market_order::clear_code() {
- code_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-const ::std::string& QA_Market_order::code() const {
- // @@protoc_insertion_point(field_get:QA_Market_order.code)
- return code_.GetNoArena();
-}
-void QA_Market_order::set_code(const ::std::string& value) {
-
- code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:QA_Market_order.code)
-}
-#if LANG_CXX11
-void QA_Market_order::set_code(::std::string&& value) {
-
- code_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:QA_Market_order.code)
-}
-#endif
-void QA_Market_order::set_code(const char* value) {
- GOOGLE_DCHECK(value != NULL);
-
- code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:QA_Market_order.code)
-}
-void QA_Market_order::set_code(const char* value, size_t size) {
-
- code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast(value), size));
- // @@protoc_insertion_point(field_set_pointer:QA_Market_order.code)
-}
-::std::string* QA_Market_order::mutable_code() {
-
- // @@protoc_insertion_point(field_mutable:QA_Market_order.code)
- return code_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-::std::string* QA_Market_order::release_code() {
- // @@protoc_insertion_point(field_release:QA_Market_order.code)
-
- return code_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-void QA_Market_order::set_allocated_code(::std::string* code) {
- if (code != NULL) {
-
- } else {
-
- }
- code_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), code);
- // @@protoc_insertion_point(field_set_allocated:QA_Market_order.code)
-}
-
-// string user = 9;
-void QA_Market_order::clear_user() {
- user_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-const ::std::string& QA_Market_order::user() const {
- // @@protoc_insertion_point(field_get:QA_Market_order.user)
- return user_.GetNoArena();
-}
-void QA_Market_order::set_user(const ::std::string& value) {
-
- user_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:QA_Market_order.user)
-}
-#if LANG_CXX11
-void QA_Market_order::set_user(::std::string&& value) {
-
- user_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:QA_Market_order.user)
-}
-#endif
-void QA_Market_order::set_user(const char* value) {
- GOOGLE_DCHECK(value != NULL);
-
- user_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:QA_Market_order.user)
-}
-void QA_Market_order::set_user(const char* value, size_t size) {
-
- user_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast(value), size));
- // @@protoc_insertion_point(field_set_pointer:QA_Market_order.user)
-}
-::std::string* QA_Market_order::mutable_user() {
-
- // @@protoc_insertion_point(field_mutable:QA_Market_order.user)
- return user_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-::std::string* QA_Market_order::release_user() {
- // @@protoc_insertion_point(field_release:QA_Market_order.user)
-
- return user_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-void QA_Market_order::set_allocated_user(::std::string* user) {
- if (user != NULL) {
-
- } else {
-
- }
- user_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), user);
- // @@protoc_insertion_point(field_set_allocated:QA_Market_order.user)
-}
-
-// string strategy = 10;
-void QA_Market_order::clear_strategy() {
- strategy_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-const ::std::string& QA_Market_order::strategy() const {
- // @@protoc_insertion_point(field_get:QA_Market_order.strategy)
- return strategy_.GetNoArena();
-}
-void QA_Market_order::set_strategy(const ::std::string& value) {
-
- strategy_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:QA_Market_order.strategy)
-}
-#if LANG_CXX11
-void QA_Market_order::set_strategy(::std::string&& value) {
-
- strategy_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:QA_Market_order.strategy)
-}
-#endif
-void QA_Market_order::set_strategy(const char* value) {
- GOOGLE_DCHECK(value != NULL);
-
- strategy_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:QA_Market_order.strategy)
-}
-void QA_Market_order::set_strategy(const char* value, size_t size) {
-
- strategy_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast(value), size));
- // @@protoc_insertion_point(field_set_pointer:QA_Market_order.strategy)
-}
-::std::string* QA_Market_order::mutable_strategy() {
-
- // @@protoc_insertion_point(field_mutable:QA_Market_order.strategy)
- return strategy_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-::std::string* QA_Market_order::release_strategy() {
- // @@protoc_insertion_point(field_release:QA_Market_order.strategy)
-
- return strategy_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-void QA_Market_order::set_allocated_strategy(::std::string* strategy) {
- if (strategy != NULL) {
-
- } else {
-
- }
- strategy_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), strategy);
- // @@protoc_insertion_point(field_set_allocated:QA_Market_order.strategy)
-}
-
-// string type = 11;
-void QA_Market_order::clear_type() {
- type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-const ::std::string& QA_Market_order::type() const {
- // @@protoc_insertion_point(field_get:QA_Market_order.type)
- return type_.GetNoArena();
-}
-void QA_Market_order::set_type(const ::std::string& value) {
-
- type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:QA_Market_order.type)
-}
-#if LANG_CXX11
-void QA_Market_order::set_type(::std::string&& value) {
-
- type_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:QA_Market_order.type)
-}
-#endif
-void QA_Market_order::set_type(const char* value) {
- GOOGLE_DCHECK(value != NULL);
-
- type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:QA_Market_order.type)
-}
-void QA_Market_order::set_type(const char* value, size_t size) {
-
- type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast(value), size));
- // @@protoc_insertion_point(field_set_pointer:QA_Market_order.type)
-}
-::std::string* QA_Market_order::mutable_type() {
-
- // @@protoc_insertion_point(field_mutable:QA_Market_order.type)
- return type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-::std::string* QA_Market_order::release_type() {
- // @@protoc_insertion_point(field_release:QA_Market_order.type)
-
- return type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-void QA_Market_order::set_allocated_type(::std::string* type) {
- if (type != NULL) {
-
- } else {
-
- }
- type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type);
- // @@protoc_insertion_point(field_set_allocated:QA_Market_order.type)
-}
-
-// string order_model = 12;
-void QA_Market_order::clear_order_model() {
- order_model_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-const ::std::string& QA_Market_order::order_model() const {
- // @@protoc_insertion_point(field_get:QA_Market_order.order_model)
- return order_model_.GetNoArena();
-}
-void QA_Market_order::set_order_model(const ::std::string& value) {
-
- order_model_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:QA_Market_order.order_model)
-}
-#if LANG_CXX11
-void QA_Market_order::set_order_model(::std::string&& value) {
-
- order_model_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:QA_Market_order.order_model)
-}
-#endif
-void QA_Market_order::set_order_model(const char* value) {
- GOOGLE_DCHECK(value != NULL);
-
- order_model_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:QA_Market_order.order_model)
-}
-void QA_Market_order::set_order_model(const char* value, size_t size) {
-
- order_model_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast(value), size));
- // @@protoc_insertion_point(field_set_pointer:QA_Market_order.order_model)
-}
-::std::string* QA_Market_order::mutable_order_model() {
-
- // @@protoc_insertion_point(field_mutable:QA_Market_order.order_model)
- return order_model_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-::std::string* QA_Market_order::release_order_model() {
- // @@protoc_insertion_point(field_release:QA_Market_order.order_model)
-
- return order_model_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-void QA_Market_order::set_allocated_order_model(::std::string* order_model) {
- if (order_model != NULL) {
-
- } else {
-
- }
- order_model_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), order_model);
- // @@protoc_insertion_point(field_set_allocated:QA_Market_order.order_model)
-}
-
-// string amount_model = 13;
-void QA_Market_order::clear_amount_model() {
- amount_model_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-const ::std::string& QA_Market_order::amount_model() const {
- // @@protoc_insertion_point(field_get:QA_Market_order.amount_model)
- return amount_model_.GetNoArena();
-}
-void QA_Market_order::set_amount_model(const ::std::string& value) {
-
- amount_model_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:QA_Market_order.amount_model)
-}
-#if LANG_CXX11
-void QA_Market_order::set_amount_model(::std::string&& value) {
-
- amount_model_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:QA_Market_order.amount_model)
-}
-#endif
-void QA_Market_order::set_amount_model(const char* value) {
- GOOGLE_DCHECK(value != NULL);
-
- amount_model_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:QA_Market_order.amount_model)
-}
-void QA_Market_order::set_amount_model(const char* value, size_t size) {
-
- amount_model_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast(value), size));
- // @@protoc_insertion_point(field_set_pointer:QA_Market_order.amount_model)
-}
-::std::string* QA_Market_order::mutable_amount_model() {
-
- // @@protoc_insertion_point(field_mutable:QA_Market_order.amount_model)
- return amount_model_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-::std::string* QA_Market_order::release_amount_model() {
- // @@protoc_insertion_point(field_release:QA_Market_order.amount_model)
-
- return amount_model_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-void QA_Market_order::set_allocated_amount_model(::std::string* amount_model) {
- if (amount_model != NULL) {
-
- } else {
-
- }
- amount_model_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), amount_model);
- // @@protoc_insertion_point(field_set_allocated:QA_Market_order.amount_model)
-}
-
-// string order_id = 14;
-void QA_Market_order::clear_order_id() {
- order_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-const ::std::string& QA_Market_order::order_id() const {
- // @@protoc_insertion_point(field_get:QA_Market_order.order_id)
- return order_id_.GetNoArena();
-}
-void QA_Market_order::set_order_id(const ::std::string& value) {
-
- order_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:QA_Market_order.order_id)
-}
-#if LANG_CXX11
-void QA_Market_order::set_order_id(::std::string&& value) {
-
- order_id_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:QA_Market_order.order_id)
-}
-#endif
-void QA_Market_order::set_order_id(const char* value) {
- GOOGLE_DCHECK(value != NULL);
-
- order_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:QA_Market_order.order_id)
-}
-void QA_Market_order::set_order_id(const char* value, size_t size) {
-
- order_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast(value), size));
- // @@protoc_insertion_point(field_set_pointer:QA_Market_order.order_id)
-}
-::std::string* QA_Market_order::mutable_order_id() {
-
- // @@protoc_insertion_point(field_mutable:QA_Market_order.order_id)
- return order_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-::std::string* QA_Market_order::release_order_id() {
- // @@protoc_insertion_point(field_release:QA_Market_order.order_id)
-
- return order_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-void QA_Market_order::set_allocated_order_id(::std::string* order_id) {
- if (order_id != NULL) {
-
- } else {
-
- }
- order_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), order_id);
- // @@protoc_insertion_point(field_set_allocated:QA_Market_order.order_id)
-}
-
-// string trade_id = 15;
-void QA_Market_order::clear_trade_id() {
- trade_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-const ::std::string& QA_Market_order::trade_id() const {
- // @@protoc_insertion_point(field_get:QA_Market_order.trade_id)
- return trade_id_.GetNoArena();
-}
-void QA_Market_order::set_trade_id(const ::std::string& value) {
-
- trade_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:QA_Market_order.trade_id)
-}
-#if LANG_CXX11
-void QA_Market_order::set_trade_id(::std::string&& value) {
-
- trade_id_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:QA_Market_order.trade_id)
-}
-#endif
-void QA_Market_order::set_trade_id(const char* value) {
- GOOGLE_DCHECK(value != NULL);
-
- trade_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:QA_Market_order.trade_id)
-}
-void QA_Market_order::set_trade_id(const char* value, size_t size) {
-
- trade_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast(value), size));
- // @@protoc_insertion_point(field_set_pointer:QA_Market_order.trade_id)
-}
-::std::string* QA_Market_order::mutable_trade_id() {
-
- // @@protoc_insertion_point(field_mutable:QA_Market_order.trade_id)
- return trade_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-::std::string* QA_Market_order::release_trade_id() {
- // @@protoc_insertion_point(field_release:QA_Market_order.trade_id)
-
- return trade_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-void QA_Market_order::set_allocated_trade_id(::std::string* trade_id) {
- if (trade_id != NULL) {
-
- } else {
-
- }
- trade_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), trade_id);
- // @@protoc_insertion_point(field_set_allocated:QA_Market_order.trade_id)
-}
-
-// string status = 16;
-void QA_Market_order::clear_status() {
- status_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-const ::std::string& QA_Market_order::status() const {
- // @@protoc_insertion_point(field_get:QA_Market_order.status)
- return status_.GetNoArena();
-}
-void QA_Market_order::set_status(const ::std::string& value) {
-
- status_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:QA_Market_order.status)
-}
-#if LANG_CXX11
-void QA_Market_order::set_status(::std::string&& value) {
-
- status_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:QA_Market_order.status)
-}
-#endif
-void QA_Market_order::set_status(const char* value) {
- GOOGLE_DCHECK(value != NULL);
-
- status_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:QA_Market_order.status)
-}
-void QA_Market_order::set_status(const char* value, size_t size) {
-
- status_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast(value), size));
- // @@protoc_insertion_point(field_set_pointer:QA_Market_order.status)
-}
-::std::string* QA_Market_order::mutable_status() {
-
- // @@protoc_insertion_point(field_mutable:QA_Market_order.status)
- return status_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-::std::string* QA_Market_order::release_status() {
- // @@protoc_insertion_point(field_release:QA_Market_order.status)
-
- return status_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-void QA_Market_order::set_allocated_status(::std::string* status) {
- if (status != NULL) {
-
- } else {
-
- }
- status_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), status);
- // @@protoc_insertion_point(field_set_allocated:QA_Market_order.status)
-}
-
-#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
-
-// @@protoc_insertion_point(namespace_scope)
-
-// @@protoc_insertion_point(global_scope)
diff --git a/QUANTAXIS/QAData/proto/order.pb.h b/QUANTAXIS/QAData/proto/order.pb.h
deleted file mode 100755
index cba669241..000000000
--- a/QUANTAXIS/QAData/proto/order.pb.h
+++ /dev/null
@@ -1,1111 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: order.proto
-
-#ifndef PROTOBUF_order_2eproto__INCLUDED
-#define PROTOBUF_order_2eproto__INCLUDED
-
-#include
-
-#include
-
-#if GOOGLE_PROTOBUF_VERSION < 3004000
-#error This file was generated by a newer version of protoc which is
-#error incompatible with your Protocol Buffer headers. Please update
-#error your headers.
-#endif
-#if 3004000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
-#error This file was generated by an older version of protoc which is
-#error incompatible with your Protocol Buffer headers. Please
-#error regenerate this file with a newer version of protoc.
-#endif
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include // IWYU pragma: export
-#include // IWYU pragma: export
-#include
-// @@protoc_insertion_point(includes)
-class QA_Market_order;
-class QA_Market_orderDefaultTypeInternal;
-extern QA_Market_orderDefaultTypeInternal _QA_Market_order_default_instance_;
-
-namespace protobuf_order_2eproto {
-// Internal implementation detail -- do not call these.
-struct TableStruct {
- static const ::google::protobuf::internal::ParseTableField entries[];
- static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
- static const ::google::protobuf::internal::ParseTable schema[];
- static const ::google::protobuf::uint32 offsets[];
- static const ::google::protobuf::internal::FieldMetadata field_metadata[];
- static const ::google::protobuf::internal::SerializationTable serialization_table[];
- static void InitDefaultsImpl();
-};
-void AddDescriptors();
-void InitDefaults();
-} // namespace protobuf_order_2eproto
-
-// ===================================================================
-
-class QA_Market_order : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:QA_Market_order) */ {
- public:
- QA_Market_order();
- virtual ~QA_Market_order();
-
- QA_Market_order(const QA_Market_order& from);
-
- inline QA_Market_order& operator=(const QA_Market_order& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- QA_Market_order(QA_Market_order&& from) noexcept
- : QA_Market_order() {
- *this = ::std::move(from);
- }
-
- inline QA_Market_order& operator=(QA_Market_order&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- static const ::google::protobuf::Descriptor* descriptor();
- static const QA_Market_order& default_instance();
-
- static inline const QA_Market_order* internal_default_instance() {
- return reinterpret_cast(
- &_QA_Market_order_default_instance_);
- }
- static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
- 0;
-
- void Swap(QA_Market_order* other);
- friend void swap(QA_Market_order& a, QA_Market_order& b) {
- a.Swap(&b);
- }
-
- // implements Message ----------------------------------------------
-
- inline QA_Market_order* New() const PROTOBUF_FINAL { return New(NULL); }
-
- QA_Market_order* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
- void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
- void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
- void CopyFrom(const QA_Market_order& from);
- void MergeFrom(const QA_Market_order& from);
- void Clear() PROTOBUF_FINAL;
- bool IsInitialized() const PROTOBUF_FINAL;
-
- size_t ByteSizeLong() const PROTOBUF_FINAL;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
- int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const PROTOBUF_FINAL;
- void InternalSwap(QA_Market_order* other);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return NULL;
- }
- inline void* MaybeArenaPtr() const {
- return NULL;
- }
- public:
-
- ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
-
- // nested types ----------------------------------------------------
-
- // accessors -------------------------------------------------------
-
- // string date = 2;
- void clear_date();
- static const int kDateFieldNumber = 2;
- const ::std::string& date() const;
- void set_date(const ::std::string& value);
- #if LANG_CXX11
- void set_date(::std::string&& value);
- #endif
- void set_date(const char* value);
- void set_date(const char* value, size_t size);
- ::std::string* mutable_date();
- ::std::string* release_date();
- void set_allocated_date(::std::string* date);
-
- // string datetime = 3;
- void clear_datetime();
- static const int kDatetimeFieldNumber = 3;
- const ::std::string& datetime() const;
- void set_datetime(const ::std::string& value);
- #if LANG_CXX11
- void set_datetime(::std::string&& value);
- #endif
- void set_datetime(const char* value);
- void set_datetime(const char* value, size_t size);
- ::std::string* mutable_datetime();
- ::std::string* release_datetime();
- void set_allocated_datetime(::std::string* datetime);
-
- // string sending_time = 4;
- void clear_sending_time();
- static const int kSendingTimeFieldNumber = 4;
- const ::std::string& sending_time() const;
- void set_sending_time(const ::std::string& value);
- #if LANG_CXX11
- void set_sending_time(::std::string&& value);
- #endif
- void set_sending_time(const char* value);
- void set_sending_time(const char* value, size_t size);
- ::std::string* mutable_sending_time();
- ::std::string* release_sending_time();
- void set_allocated_sending_time(::std::string* sending_time);
-
- // string transact_time = 5;
- void clear_transact_time();
- static const int kTransactTimeFieldNumber = 5;
- const ::std::string& transact_time() const;
- void set_transact_time(const ::std::string& value);
- #if LANG_CXX11
- void set_transact_time(::std::string&& value);
- #endif
- void set_transact_time(const char* value);
- void set_transact_time(const char* value, size_t size);
- ::std::string* mutable_transact_time();
- ::std::string* release_transact_time();
- void set_allocated_transact_time(::std::string* transact_time);
-
- // string code = 8;
- void clear_code();
- static const int kCodeFieldNumber = 8;
- const ::std::string& code() const;
- void set_code(const ::std::string& value);
- #if LANG_CXX11
- void set_code(::std::string&& value);
- #endif
- void set_code(const char* value);
- void set_code(const char* value, size_t size);
- ::std::string* mutable_code();
- ::std::string* release_code();
- void set_allocated_code(::std::string* code);
-
- // string user = 9;
- void clear_user();
- static const int kUserFieldNumber = 9;
- const ::std::string& user() const;
- void set_user(const ::std::string& value);
- #if LANG_CXX11
- void set_user(::std::string&& value);
- #endif
- void set_user(const char* value);
- void set_user(const char* value, size_t size);
- ::std::string* mutable_user();
- ::std::string* release_user();
- void set_allocated_user(::std::string* user);
-
- // string strategy = 10;
- void clear_strategy();
- static const int kStrategyFieldNumber = 10;
- const ::std::string& strategy() const;
- void set_strategy(const ::std::string& value);
- #if LANG_CXX11
- void set_strategy(::std::string&& value);
- #endif
- void set_strategy(const char* value);
- void set_strategy(const char* value, size_t size);
- ::std::string* mutable_strategy();
- ::std::string* release_strategy();
- void set_allocated_strategy(::std::string* strategy);
-
- // string type = 11;
- void clear_type();
- static const int kTypeFieldNumber = 11;
- const ::std::string& type() const;
- void set_type(const ::std::string& value);
- #if LANG_CXX11
- void set_type(::std::string&& value);
- #endif
- void set_type(const char* value);
- void set_type(const char* value, size_t size);
- ::std::string* mutable_type();
- ::std::string* release_type();
- void set_allocated_type(::std::string* type);
-
- // string order_model = 12;
- void clear_order_model();
- static const int kBidModelFieldNumber = 12;
- const ::std::string& order_model() const;
- void set_order_model(const ::std::string& value);
- #if LANG_CXX11
- void set_order_model(::std::string&& value);
- #endif
- void set_order_model(const char* value);
- void set_order_model(const char* value, size_t size);
- ::std::string* mutable_order_model();
- ::std::string* release_order_model();
- void set_allocated_order_model(::std::string* order_model);
-
- // string amount_model = 13;
- void clear_amount_model();
- static const int kAmountModelFieldNumber = 13;
- const ::std::string& amount_model() const;
- void set_amount_model(const ::std::string& value);
- #if LANG_CXX11
- void set_amount_model(::std::string&& value);
- #endif
- void set_amount_model(const char* value);
- void set_amount_model(const char* value, size_t size);
- ::std::string* mutable_amount_model();
- ::std::string* release_amount_model();
- void set_allocated_amount_model(::std::string* amount_model);
-
- // string order_id = 14;
- void clear_order_id();
- static const int kOrderIdFieldNumber = 14;
- const ::std::string& order_id() const;
- void set_order_id(const ::std::string& value);
- #if LANG_CXX11
- void set_order_id(::std::string&& value);
- #endif
- void set_order_id(const char* value);
- void set_order_id(const char* value, size_t size);
- ::std::string* mutable_order_id();
- ::std::string* release_order_id();
- void set_allocated_order_id(::std::string* order_id);
-
- // string trade_id = 15;
- void clear_trade_id();
- static const int kTradeIdFieldNumber = 15;
- const ::std::string& trade_id() const;
- void set_trade_id(const ::std::string& value);
- #if LANG_CXX11
- void set_trade_id(::std::string&& value);
- #endif
- void set_trade_id(const char* value);
- void set_trade_id(const char* value, size_t size);
- ::std::string* mutable_trade_id();
- ::std::string* release_trade_id();
- void set_allocated_trade_id(::std::string* trade_id);
-
- // string status = 16;
- void clear_status();
- static const int kStatusFieldNumber = 16;
- const ::std::string& status() const;
- void set_status(const ::std::string& value);
- #if LANG_CXX11
- void set_status(::std::string&& value);
- #endif
- void set_status(const char* value);
- void set_status(const char* value, size_t size);
- ::std::string* mutable_status();
- ::std::string* release_status();
- void set_allocated_status(::std::string* status);
-
- // float price = 1;
- void clear_price();
- static const int kPriceFieldNumber = 1;
- float price() const;
- void set_price(float value);
-
- // float amount = 6;
- void clear_amount();
- static const int kAmountFieldNumber = 6;
- float amount() const;
- void set_amount(float value);
-
- // int64 towards = 7;
- void clear_towards();
- static const int kTowardsFieldNumber = 7;
- ::google::protobuf::int64 towards() const;
- void set_towards(::google::protobuf::int64 value);
-
- // @@protoc_insertion_point(class_scope:QA_Market_order)
- private:
-
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- ::google::protobuf::internal::ArenaStringPtr date_;
- ::google::protobuf::internal::ArenaStringPtr datetime_;
- ::google::protobuf::internal::ArenaStringPtr sending_time_;
- ::google::protobuf::internal::ArenaStringPtr transact_time_;
- ::google::protobuf::internal::ArenaStringPtr code_;
- ::google::protobuf::internal::ArenaStringPtr user_;
- ::google::protobuf::internal::ArenaStringPtr strategy_;
- ::google::protobuf::internal::ArenaStringPtr type_;
- ::google::protobuf::internal::ArenaStringPtr order_model_;
- ::google::protobuf::internal::ArenaStringPtr amount_model_;
- ::google::protobuf::internal::ArenaStringPtr order_id_;
- ::google::protobuf::internal::ArenaStringPtr trade_id_;
- ::google::protobuf::internal::ArenaStringPtr status_;
- float price_;
- float amount_;
- ::google::protobuf::int64 towards_;
- mutable int _cached_size_;
- friend struct protobuf_order_2eproto::TableStruct;
-};
-// ===================================================================
-
-
-// ===================================================================
-
-#if !PROTOBUF_INLINE_NOT_IN_HEADERS
-#ifdef __GNUC__
- #pragma GCC diagnostic push
- #pragma GCC diagnostic ignored "-Wstrict-aliasing"
-#endif // __GNUC__
-// QA_Market_order
-
-// float price = 1;
-inline void QA_Market_order::clear_price() {
- price_ = 0;
-}
-inline float QA_Market_order::price() const {
- // @@protoc_insertion_point(field_get:QA_Market_order.price)
- return price_;
-}
-inline void QA_Market_order::set_price(float value) {
-
- price_ = value;
- // @@protoc_insertion_point(field_set:QA_Market_order.price)
-}
-
-// string date = 2;
-inline void QA_Market_order::clear_date() {
- date_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline const ::std::string& QA_Market_order::date() const {
- // @@protoc_insertion_point(field_get:QA_Market_order.date)
- return date_.GetNoArena();
-}
-inline void QA_Market_order::set_date(const ::std::string& value) {
-
- date_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:QA_Market_order.date)
-}
-#if LANG_CXX11
-inline void QA_Market_order::set_date(::std::string&& value) {
-
- date_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:QA_Market_order.date)
-}
-#endif
-inline void QA_Market_order::set_date(const char* value) {
- GOOGLE_DCHECK(value != NULL);
-
- date_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:QA_Market_order.date)
-}
-inline void QA_Market_order::set_date(const char* value, size_t size) {
-
- date_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast(value), size));
- // @@protoc_insertion_point(field_set_pointer:QA_Market_order.date)
-}
-inline ::std::string* QA_Market_order::mutable_date() {
-
- // @@protoc_insertion_point(field_mutable:QA_Market_order.date)
- return date_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline ::std::string* QA_Market_order::release_date() {
- // @@protoc_insertion_point(field_release:QA_Market_order.date)
-
- return date_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline void QA_Market_order::set_allocated_date(::std::string* date) {
- if (date != NULL) {
-
- } else {
-
- }
- date_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), date);
- // @@protoc_insertion_point(field_set_allocated:QA_Market_order.date)
-}
-
-// string datetime = 3;
-inline void QA_Market_order::clear_datetime() {
- datetime_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline const ::std::string& QA_Market_order::datetime() const {
- // @@protoc_insertion_point(field_get:QA_Market_order.datetime)
- return datetime_.GetNoArena();
-}
-inline void QA_Market_order::set_datetime(const ::std::string& value) {
-
- datetime_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:QA_Market_order.datetime)
-}
-#if LANG_CXX11
-inline void QA_Market_order::set_datetime(::std::string&& value) {
-
- datetime_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:QA_Market_order.datetime)
-}
-#endif
-inline void QA_Market_order::set_datetime(const char* value) {
- GOOGLE_DCHECK(value != NULL);
-
- datetime_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:QA_Market_order.datetime)
-}
-inline void QA_Market_order::set_datetime(const char* value, size_t size) {
-
- datetime_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast(value), size));
- // @@protoc_insertion_point(field_set_pointer:QA_Market_order.datetime)
-}
-inline ::std::string* QA_Market_order::mutable_datetime() {
-
- // @@protoc_insertion_point(field_mutable:QA_Market_order.datetime)
- return datetime_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline ::std::string* QA_Market_order::release_datetime() {
- // @@protoc_insertion_point(field_release:QA_Market_order.datetime)
-
- return datetime_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline void QA_Market_order::set_allocated_datetime(::std::string* datetime) {
- if (datetime != NULL) {
-
- } else {
-
- }
- datetime_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), datetime);
- // @@protoc_insertion_point(field_set_allocated:QA_Market_order.datetime)
-}
-
-// string sending_time = 4;
-inline void QA_Market_order::clear_sending_time() {
- sending_time_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline const ::std::string& QA_Market_order::sending_time() const {
- // @@protoc_insertion_point(field_get:QA_Market_order.sending_time)
- return sending_time_.GetNoArena();
-}
-inline void QA_Market_order::set_sending_time(const ::std::string& value) {
-
- sending_time_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:QA_Market_order.sending_time)
-}
-#if LANG_CXX11
-inline void QA_Market_order::set_sending_time(::std::string&& value) {
-
- sending_time_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:QA_Market_order.sending_time)
-}
-#endif
-inline void QA_Market_order::set_sending_time(const char* value) {
- GOOGLE_DCHECK(value != NULL);
-
- sending_time_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:QA_Market_order.sending_time)
-}
-inline void QA_Market_order::set_sending_time(const char* value, size_t size) {
-
- sending_time_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast(value), size));
- // @@protoc_insertion_point(field_set_pointer:QA_Market_order.sending_time)
-}
-inline ::std::string* QA_Market_order::mutable_sending_time() {
-
- // @@protoc_insertion_point(field_mutable:QA_Market_order.sending_time)
- return sending_time_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline ::std::string* QA_Market_order::release_sending_time() {
- // @@protoc_insertion_point(field_release:QA_Market_order.sending_time)
-
- return sending_time_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline void QA_Market_order::set_allocated_sending_time(::std::string* sending_time) {
- if (sending_time != NULL) {
-
- } else {
-
- }
- sending_time_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), sending_time);
- // @@protoc_insertion_point(field_set_allocated:QA_Market_order.sending_time)
-}
-
-// string transact_time = 5;
-inline void QA_Market_order::clear_transact_time() {
- transact_time_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline const ::std::string& QA_Market_order::transact_time() const {
- // @@protoc_insertion_point(field_get:QA_Market_order.transact_time)
- return transact_time_.GetNoArena();
-}
-inline void QA_Market_order::set_transact_time(const ::std::string& value) {
-
- transact_time_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:QA_Market_order.transact_time)
-}
-#if LANG_CXX11
-inline void QA_Market_order::set_transact_time(::std::string&& value) {
-
- transact_time_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:QA_Market_order.transact_time)
-}
-#endif
-inline void QA_Market_order::set_transact_time(const char* value) {
- GOOGLE_DCHECK(value != NULL);
-
- transact_time_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:QA_Market_order.transact_time)
-}
-inline void QA_Market_order::set_transact_time(const char* value, size_t size) {
-
- transact_time_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast(value), size));
- // @@protoc_insertion_point(field_set_pointer:QA_Market_order.transact_time)
-}
-inline ::std::string* QA_Market_order::mutable_transact_time() {
-
- // @@protoc_insertion_point(field_mutable:QA_Market_order.transact_time)
- return transact_time_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline ::std::string* QA_Market_order::release_transact_time() {
- // @@protoc_insertion_point(field_release:QA_Market_order.transact_time)
-
- return transact_time_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline void QA_Market_order::set_allocated_transact_time(::std::string* transact_time) {
- if (transact_time != NULL) {
-
- } else {
-
- }
- transact_time_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), transact_time);
- // @@protoc_insertion_point(field_set_allocated:QA_Market_order.transact_time)
-}
-
-// float amount = 6;
-inline void QA_Market_order::clear_amount() {
- amount_ = 0;
-}
-inline float QA_Market_order::amount() const {
- // @@protoc_insertion_point(field_get:QA_Market_order.amount)
- return amount_;
-}
-inline void QA_Market_order::set_amount(float value) {
-
- amount_ = value;
- // @@protoc_insertion_point(field_set:QA_Market_order.amount)
-}
-
-// int64 towards = 7;
-inline void QA_Market_order::clear_towards() {
- towards_ = GOOGLE_LONGLONG(0);
-}
-inline ::google::protobuf::int64 QA_Market_order::towards() const {
- // @@protoc_insertion_point(field_get:QA_Market_order.towards)
- return towards_;
-}
-inline void QA_Market_order::set_towards(::google::protobuf::int64 value) {
-
- towards_ = value;
- // @@protoc_insertion_point(field_set:QA_Market_order.towards)
-}
-
-// string code = 8;
-inline void QA_Market_order::clear_code() {
- code_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline const ::std::string& QA_Market_order::code() const {
- // @@protoc_insertion_point(field_get:QA_Market_order.code)
- return code_.GetNoArena();
-}
-inline void QA_Market_order::set_code(const ::std::string& value) {
-
- code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:QA_Market_order.code)
-}
-#if LANG_CXX11
-inline void QA_Market_order::set_code(::std::string&& value) {
-
- code_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:QA_Market_order.code)
-}
-#endif
-inline void QA_Market_order::set_code(const char* value) {
- GOOGLE_DCHECK(value != NULL);
-
- code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:QA_Market_order.code)
-}
-inline void QA_Market_order::set_code(const char* value, size_t size) {
-
- code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast(value), size));
- // @@protoc_insertion_point(field_set_pointer:QA_Market_order.code)
-}
-inline ::std::string* QA_Market_order::mutable_code() {
-
- // @@protoc_insertion_point(field_mutable:QA_Market_order.code)
- return code_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline ::std::string* QA_Market_order::release_code() {
- // @@protoc_insertion_point(field_release:QA_Market_order.code)
-
- return code_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline void QA_Market_order::set_allocated_code(::std::string* code) {
- if (code != NULL) {
-
- } else {
-
- }
- code_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), code);
- // @@protoc_insertion_point(field_set_allocated:QA_Market_order.code)
-}
-
-// string user = 9;
-inline void QA_Market_order::clear_user() {
- user_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline const ::std::string& QA_Market_order::user() const {
- // @@protoc_insertion_point(field_get:QA_Market_order.user)
- return user_.GetNoArena();
-}
-inline void QA_Market_order::set_user(const ::std::string& value) {
-
- user_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:QA_Market_order.user)
-}
-#if LANG_CXX11
-inline void QA_Market_order::set_user(::std::string&& value) {
-
- user_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:QA_Market_order.user)
-}
-#endif
-inline void QA_Market_order::set_user(const char* value) {
- GOOGLE_DCHECK(value != NULL);
-
- user_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:QA_Market_order.user)
-}
-inline void QA_Market_order::set_user(const char* value, size_t size) {
-
- user_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast(value), size));
- // @@protoc_insertion_point(field_set_pointer:QA_Market_order.user)
-}
-inline ::std::string* QA_Market_order::mutable_user() {
-
- // @@protoc_insertion_point(field_mutable:QA_Market_order.user)
- return user_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline ::std::string* QA_Market_order::release_user() {
- // @@protoc_insertion_point(field_release:QA_Market_order.user)
-
- return user_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline void QA_Market_order::set_allocated_user(::std::string* user) {
- if (user != NULL) {
-
- } else {
-
- }
- user_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), user);
- // @@protoc_insertion_point(field_set_allocated:QA_Market_order.user)
-}
-
-// string strategy = 10;
-inline void QA_Market_order::clear_strategy() {
- strategy_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline const ::std::string& QA_Market_order::strategy() const {
- // @@protoc_insertion_point(field_get:QA_Market_order.strategy)
- return strategy_.GetNoArena();
-}
-inline void QA_Market_order::set_strategy(const ::std::string& value) {
-
- strategy_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:QA_Market_order.strategy)
-}
-#if LANG_CXX11
-inline void QA_Market_order::set_strategy(::std::string&& value) {
-
- strategy_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:QA_Market_order.strategy)
-}
-#endif
-inline void QA_Market_order::set_strategy(const char* value) {
- GOOGLE_DCHECK(value != NULL);
-
- strategy_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:QA_Market_order.strategy)
-}
-inline void QA_Market_order::set_strategy(const char* value, size_t size) {
-
- strategy_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast(value), size));
- // @@protoc_insertion_point(field_set_pointer:QA_Market_order.strategy)
-}
-inline ::std::string* QA_Market_order::mutable_strategy() {
-
- // @@protoc_insertion_point(field_mutable:QA_Market_order.strategy)
- return strategy_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline ::std::string* QA_Market_order::release_strategy() {
- // @@protoc_insertion_point(field_release:QA_Market_order.strategy)
-
- return strategy_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline void QA_Market_order::set_allocated_strategy(::std::string* strategy) {
- if (strategy != NULL) {
-
- } else {
-
- }
- strategy_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), strategy);
- // @@protoc_insertion_point(field_set_allocated:QA_Market_order.strategy)
-}
-
-// string type = 11;
-inline void QA_Market_order::clear_type() {
- type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline const ::std::string& QA_Market_order::type() const {
- // @@protoc_insertion_point(field_get:QA_Market_order.type)
- return type_.GetNoArena();
-}
-inline void QA_Market_order::set_type(const ::std::string& value) {
-
- type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:QA_Market_order.type)
-}
-#if LANG_CXX11
-inline void QA_Market_order::set_type(::std::string&& value) {
-
- type_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:QA_Market_order.type)
-}
-#endif
-inline void QA_Market_order::set_type(const char* value) {
- GOOGLE_DCHECK(value != NULL);
-
- type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:QA_Market_order.type)
-}
-inline void QA_Market_order::set_type(const char* value, size_t size) {
-
- type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast(value), size));
- // @@protoc_insertion_point(field_set_pointer:QA_Market_order.type)
-}
-inline ::std::string* QA_Market_order::mutable_type() {
-
- // @@protoc_insertion_point(field_mutable:QA_Market_order.type)
- return type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline ::std::string* QA_Market_order::release_type() {
- // @@protoc_insertion_point(field_release:QA_Market_order.type)
-
- return type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline void QA_Market_order::set_allocated_type(::std::string* type) {
- if (type != NULL) {
-
- } else {
-
- }
- type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type);
- // @@protoc_insertion_point(field_set_allocated:QA_Market_order.type)
-}
-
-// string order_model = 12;
-inline void QA_Market_order::clear_order_model() {
- order_model_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline const ::std::string& QA_Market_order::order_model() const {
- // @@protoc_insertion_point(field_get:QA_Market_order.order_model)
- return order_model_.GetNoArena();
-}
-inline void QA_Market_order::set_order_model(const ::std::string& value) {
-
- order_model_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:QA_Market_order.order_model)
-}
-#if LANG_CXX11
-inline void QA_Market_order::set_order_model(::std::string&& value) {
-
- order_model_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:QA_Market_order.order_model)
-}
-#endif
-inline void QA_Market_order::set_order_model(const char* value) {
- GOOGLE_DCHECK(value != NULL);
-
- order_model_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:QA_Market_order.order_model)
-}
-inline void QA_Market_order::set_order_model(const char* value, size_t size) {
-
- order_model_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast(value), size));
- // @@protoc_insertion_point(field_set_pointer:QA_Market_order.order_model)
-}
-inline ::std::string* QA_Market_order::mutable_order_model() {
-
- // @@protoc_insertion_point(field_mutable:QA_Market_order.order_model)
- return order_model_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline ::std::string* QA_Market_order::release_order_model() {
- // @@protoc_insertion_point(field_release:QA_Market_order.order_model)
-
- return order_model_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline void QA_Market_order::set_allocated_order_model(::std::string* order_model) {
- if (order_model != NULL) {
-
- } else {
-
- }
- order_model_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), order_model);
- // @@protoc_insertion_point(field_set_allocated:QA_Market_order.order_model)
-}
-
-// string amount_model = 13;
-inline void QA_Market_order::clear_amount_model() {
- amount_model_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline const ::std::string& QA_Market_order::amount_model() const {
- // @@protoc_insertion_point(field_get:QA_Market_order.amount_model)
- return amount_model_.GetNoArena();
-}
-inline void QA_Market_order::set_amount_model(const ::std::string& value) {
-
- amount_model_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:QA_Market_order.amount_model)
-}
-#if LANG_CXX11
-inline void QA_Market_order::set_amount_model(::std::string&& value) {
-
- amount_model_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:QA_Market_order.amount_model)
-}
-#endif
-inline void QA_Market_order::set_amount_model(const char* value) {
- GOOGLE_DCHECK(value != NULL);
-
- amount_model_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:QA_Market_order.amount_model)
-}
-inline void QA_Market_order::set_amount_model(const char* value, size_t size) {
-
- amount_model_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast(value), size));
- // @@protoc_insertion_point(field_set_pointer:QA_Market_order.amount_model)
-}
-inline ::std::string* QA_Market_order::mutable_amount_model() {
-
- // @@protoc_insertion_point(field_mutable:QA_Market_order.amount_model)
- return amount_model_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline ::std::string* QA_Market_order::release_amount_model() {
- // @@protoc_insertion_point(field_release:QA_Market_order.amount_model)
-
- return amount_model_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline void QA_Market_order::set_allocated_amount_model(::std::string* amount_model) {
- if (amount_model != NULL) {
-
- } else {
-
- }
- amount_model_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), amount_model);
- // @@protoc_insertion_point(field_set_allocated:QA_Market_order.amount_model)
-}
-
-// string order_id = 14;
-inline void QA_Market_order::clear_order_id() {
- order_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline const ::std::string& QA_Market_order::order_id() const {
- // @@protoc_insertion_point(field_get:QA_Market_order.order_id)
- return order_id_.GetNoArena();
-}
-inline void QA_Market_order::set_order_id(const ::std::string& value) {
-
- order_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:QA_Market_order.order_id)
-}
-#if LANG_CXX11
-inline void QA_Market_order::set_order_id(::std::string&& value) {
-
- order_id_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:QA_Market_order.order_id)
-}
-#endif
-inline void QA_Market_order::set_order_id(const char* value) {
- GOOGLE_DCHECK(value != NULL);
-
- order_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:QA_Market_order.order_id)
-}
-inline void QA_Market_order::set_order_id(const char* value, size_t size) {
-
- order_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast(value), size));
- // @@protoc_insertion_point(field_set_pointer:QA_Market_order.order_id)
-}
-inline ::std::string* QA_Market_order::mutable_order_id() {
-
- // @@protoc_insertion_point(field_mutable:QA_Market_order.order_id)
- return order_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline ::std::string* QA_Market_order::release_order_id() {
- // @@protoc_insertion_point(field_release:QA_Market_order.order_id)
-
- return order_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline void QA_Market_order::set_allocated_order_id(::std::string* order_id) {
- if (order_id != NULL) {
-
- } else {
-
- }
- order_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), order_id);
- // @@protoc_insertion_point(field_set_allocated:QA_Market_order.order_id)
-}
-
-// string trade_id = 15;
-inline void QA_Market_order::clear_trade_id() {
- trade_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline const ::std::string& QA_Market_order::trade_id() const {
- // @@protoc_insertion_point(field_get:QA_Market_order.trade_id)
- return trade_id_.GetNoArena();
-}
-inline void QA_Market_order::set_trade_id(const ::std::string& value) {
-
- trade_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:QA_Market_order.trade_id)
-}
-#if LANG_CXX11
-inline void QA_Market_order::set_trade_id(::std::string&& value) {
-
- trade_id_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:QA_Market_order.trade_id)
-}
-#endif
-inline void QA_Market_order::set_trade_id(const char* value) {
- GOOGLE_DCHECK(value != NULL);
-
- trade_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:QA_Market_order.trade_id)
-}
-inline void QA_Market_order::set_trade_id(const char* value, size_t size) {
-
- trade_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast(value), size));
- // @@protoc_insertion_point(field_set_pointer:QA_Market_order.trade_id)
-}
-inline ::std::string* QA_Market_order::mutable_trade_id() {
-
- // @@protoc_insertion_point(field_mutable:QA_Market_order.trade_id)
- return trade_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline ::std::string* QA_Market_order::release_trade_id() {
- // @@protoc_insertion_point(field_release:QA_Market_order.trade_id)
-
- return trade_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline void QA_Market_order::set_allocated_trade_id(::std::string* trade_id) {
- if (trade_id != NULL) {
-
- } else {
-
- }
- trade_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), trade_id);
- // @@protoc_insertion_point(field_set_allocated:QA_Market_order.trade_id)
-}
-
-// string status = 16;
-inline void QA_Market_order::clear_status() {
- status_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline const ::std::string& QA_Market_order::status() const {
- // @@protoc_insertion_point(field_get:QA_Market_order.status)
- return status_.GetNoArena();
-}
-inline void QA_Market_order::set_status(const ::std::string& value) {
-
- status_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:QA_Market_order.status)
-}
-#if LANG_CXX11
-inline void QA_Market_order::set_status(::std::string&& value) {
-
- status_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:QA_Market_order.status)
-}
-#endif
-inline void QA_Market_order::set_status(const char* value) {
- GOOGLE_DCHECK(value != NULL);
-
- status_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:QA_Market_order.status)
-}
-inline void QA_Market_order::set_status(const char* value, size_t size) {
-
- status_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast(value), size));
- // @@protoc_insertion_point(field_set_pointer:QA_Market_order.status)
-}
-inline ::std::string* QA_Market_order::mutable_status() {
-
- // @@protoc_insertion_point(field_mutable:QA_Market_order.status)
- return status_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline ::std::string* QA_Market_order::release_status() {
- // @@protoc_insertion_point(field_release:QA_Market_order.status)
-
- return status_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline void QA_Market_order::set_allocated_status(::std::string* status) {
- if (status != NULL) {
-
- } else {
-
- }
- status_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), status);
- // @@protoc_insertion_point(field_set_allocated:QA_Market_order.status)
-}
-
-#ifdef __GNUC__
- #pragma GCC diagnostic pop
-#endif // __GNUC__
-#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
-
-// @@protoc_insertion_point(namespace_scope)
-
-
-// @@protoc_insertion_point(global_scope)
-
-#endif // PROTOBUF_order_2eproto__INCLUDED
diff --git a/QUANTAXIS/QAData/proto/order_pb2.py b/QUANTAXIS/QAData/proto/order_pb2.py
deleted file mode 100755
index 4475955b0..000000000
--- a/QUANTAXIS/QAData/proto/order_pb2.py
+++ /dev/null
@@ -1,174 +0,0 @@
-# Generated by the protocol buffer compiler. DO NOT EDIT!
-# source: order.proto
-
-import sys
-_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
-from google.protobuf import descriptor as _descriptor
-from google.protobuf import message as _message
-from google.protobuf import reflection as _reflection
-from google.protobuf import symbol_database as _symbol_database
-from google.protobuf import descriptor_pb2
-# @@protoc_insertion_point(imports)
-
-_sym_db = _symbol_database.Default()
-
-
-
-
-DESCRIPTOR = _descriptor.FileDescriptor(
- name='order.proto',
- package='',
- syntax='proto3',
- serialized_pb=_b('\n\x0border.proto\"\xa5\x02\n\rQA_Market_order\x12\r\n\x05price\x18\x01 \x01(\x02\x12\x0c\n\x04\x64\x61te\x18\x02 \x01(\t\x12\x10\n\x08\x64\x61tetime\x18\x03 \x01(\t\x12\x14\n\x0csending_time\x18\x04 \x01(\t\x12\x15\n\rtransact_time\x18\x05 \x01(\t\x12\x0e\n\x06\x61mount\x18\x06 \x01(\x02\x12\x0f\n\x07towards\x18\x07 \x01(\x03\x12\x0c\n\x04\x63ode\x18\x08 \x01(\t\x12\x0c\n\x04user\x18\t \x01(\t\x12\x10\n\x08strategy\x18\n \x01(\t\x12\x0c\n\x04type\x18\x0b \x01(\t\x12\x11\n\torder_model\x18\x0c \x01(\t\x12\x14\n\x0c\x61mount_model\x18\r \x01(\t\x12\x10\n\x08order_id\x18\x0e \x01(\t\x12\x10\n\x08trade_id\x18\x0f \x01(\t\x12\x0e\n\x06status\x18\x10 \x01(\tb\x06proto3')
-)
-
-
-
-
-_QA_MARKET_BID = _descriptor.Descriptor(
- name='QA_Market_order',
- full_name='QA_Market_order',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='price', full_name='QA_Market_order.price', index=0,
- number=1, type=2, cpp_type=6, label=1,
- has_default_value=False, default_value=float(0),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- options=None),
- _descriptor.FieldDescriptor(
- name='date', full_name='QA_Market_order.date', index=1,
- number=2, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- options=None),
- _descriptor.FieldDescriptor(
- name='datetime', full_name='QA_Market_order.datetime', index=2,
- number=3, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- options=None),
- _descriptor.FieldDescriptor(
- name='sending_time', full_name='QA_Market_order.sending_time', index=3,
- number=4, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- options=None),
- _descriptor.FieldDescriptor(
- name='transact_time', full_name='QA_Market_order.transact_time', index=4,
- number=5, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- options=None),
- _descriptor.FieldDescriptor(
- name='amount', full_name='QA_Market_order.amount', index=5,
- number=6, type=2, cpp_type=6, label=1,
- has_default_value=False, default_value=float(0),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- options=None),
- _descriptor.FieldDescriptor(
- name='towards', full_name='QA_Market_order.towards', index=6,
- number=7, type=3, cpp_type=2, label=1,
- has_default_value=False, default_value=0,
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- options=None),
- _descriptor.FieldDescriptor(
- name='code', full_name='QA_Market_order.code', index=7,
- number=8, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- options=None),
- _descriptor.FieldDescriptor(
- name='user', full_name='QA_Market_order.user', index=8,
- number=9, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- options=None),
- _descriptor.FieldDescriptor(
- name='strategy', full_name='QA_Market_order.strategy', index=9,
- number=10, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- options=None),
- _descriptor.FieldDescriptor(
- name='type', full_name='QA_Market_order.type', index=10,
- number=11, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- options=None),
- _descriptor.FieldDescriptor(
- name='order_model', full_name='QA_Market_order.order_model', index=11,
- number=12, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- options=None),
- _descriptor.FieldDescriptor(
- name='amount_model', full_name='QA_Market_order.amount_model', index=12,
- number=13, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- options=None),
- _descriptor.FieldDescriptor(
- name='order_id', full_name='QA_Market_order.order_id', index=13,
- number=14, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- options=None),
- _descriptor.FieldDescriptor(
- name='trade_id', full_name='QA_Market_order.trade_id', index=14,
- number=15, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- options=None),
- _descriptor.FieldDescriptor(
- name='status', full_name='QA_Market_order.status', index=15,
- number=16, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- options=None),
- ],
- extensions=[
- ],
- nested_types=[],
- enum_types=[
- ],
- options=None,
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=16,
- serialized_end=309,
-)
-
-DESCRIPTOR.message_types_by_name['QA_Market_order'] = _QA_MARKET_BID
-_sym_db.RegisterFileDescriptor(DESCRIPTOR)
-
-QA_Market_order = _reflection.GeneratedProtocolMessageType('QA_Market_order', (_message.Message,), dict(
- DESCRIPTOR = _QA_MARKET_BID,
- __module__ = 'order_pb2'
- # @@protoc_insertion_point(class_scope:QA_Market_order)
- ))
-_sym_db.RegisterMessage(QA_Market_order)
-
-
-# @@protoc_insertion_point(module_scope)
diff --git a/QUANTAXIS/QAData/proto/qa_market_bid.js b/QUANTAXIS/QAData/proto/qa_market_bid.js
deleted file mode 100755
index 6b0adfd19..000000000
--- a/QUANTAXIS/QAData/proto/qa_market_bid.js
+++ /dev/null
@@ -1,562 +0,0 @@
-/**
- * @fileoverview
- * @enhanceable
- * @suppress {messageConventions} JS Compiler reports an error if a variable or
- * field starts with 'MSG_' and isn't a translatable message.
- * @public
- */
-// GENERATED CODE -- DO NOT EDIT!
-
-goog.provide('proto.QA_Market_order');
-
-goog.require('jspb.BinaryReader');
-goog.require('jspb.BinaryWriter');
-goog.require('jspb.Message');
-
-
-/**
- * Generated by JsPbCodeGenerator.
- * @param {Array=} opt_data Optional initial data array, typically from a
- * server response, or constructed directly in Javascript. The array is used
- * in place and becomes part of the constructed object. It is not cloned.
- * If no data is provided, the constructed object will be empty, but still
- * valid.
- * @extends {jspb.Message}
- * @constructor
- */
-proto.QA_Market_order = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
-};
-goog.inherits(proto.QA_Market_order, jspb.Message);
-if (goog.DEBUG && !COMPILED) {
- proto.QA_Market_order.displayName = 'proto.QA_Market_order';
-}
-
-
-if (jspb.Message.GENERATE_TO_OBJECT) {
-/**
- * Creates an object representation of this proto suitable for use in Soy templates.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * To access a reserved field use, foo.pb_, eg, foo.pb_default.
- * For the list of reserved names please see:
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
- * for transitional soy proto support: http://goto/soy-param-migration
- * @return {!Object}
- */
-proto.QA_Market_order.prototype.toObject = function(opt_includeInstance) {
- return proto.QA_Market_order.toObject(opt_includeInstance, this);
-};
-
-
-/**
- * Static version of the {@see toObject} method.
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
- * instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @param {!proto.QA_Market_order} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.QA_Market_order.toObject = function(includeInstance, msg) {
- var f, obj = {
- price: +jspb.Message.getFieldWithDefault(msg, 1, 0.0),
- date: jspb.Message.getFieldWithDefault(msg, 2, ""),
- datetime: jspb.Message.getFieldWithDefault(msg, 3, ""),
- sendingTime: jspb.Message.getFieldWithDefault(msg, 4, ""),
- transactTime: jspb.Message.getFieldWithDefault(msg, 5, ""),
- amount: +jspb.Message.getFieldWithDefault(msg, 6, 0.0),
- towards: jspb.Message.getFieldWithDefault(msg, 7, 0),
- code: jspb.Message.getFieldWithDefault(msg, 8, ""),
- user: jspb.Message.getFieldWithDefault(msg, 9, ""),
- strategy: jspb.Message.getFieldWithDefault(msg, 10, ""),
- type: jspb.Message.getFieldWithDefault(msg, 11, ""),
- bidModel: jspb.Message.getFieldWithDefault(msg, 12, ""),
- amountModel: jspb.Message.getFieldWithDefault(msg, 13, ""),
- orderId: jspb.Message.getFieldWithDefault(msg, 14, ""),
- tradeId: jspb.Message.getFieldWithDefault(msg, 15, ""),
- status: jspb.Message.getFieldWithDefault(msg, 16, "")
- };
-
- if (includeInstance) {
- obj.$jspbMessageInstance = msg;
- }
- return obj;
-};
-}
-
-
-/**
- * Deserializes binary data (in protobuf wire format).
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
- * @return {!proto.QA_Market_order}
- */
-proto.QA_Market_order.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.QA_Market_order;
- return proto.QA_Market_order.deserializeBinaryFromReader(msg, reader);
-};
-
-
-/**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.QA_Market_order} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.QA_Market_order}
- */
-proto.QA_Market_order.deserializeBinaryFromReader = function(msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = /** @type {number} */ (reader.readFloat());
- msg.setPrice(value);
- break;
- case 2:
- var value = /** @type {string} */ (reader.readString());
- msg.setDate(value);
- break;
- case 3:
- var value = /** @type {string} */ (reader.readString());
- msg.setDatetime(value);
- break;
- case 4:
- var value = /** @type {string} */ (reader.readString());
- msg.setSendingTime(value);
- break;
- case 5:
- var value = /** @type {string} */ (reader.readString());
- msg.setTransactTime(value);
- break;
- case 6:
- var value = /** @type {number} */ (reader.readFloat());
- msg.setAmount(value);
- break;
- case 7:
- var value = /** @type {number} */ (reader.readInt64());
- msg.setTowards(value);
- break;
- case 8:
- var value = /** @type {string} */ (reader.readString());
- msg.setCode(value);
- break;
- case 9:
- var value = /** @type {string} */ (reader.readString());
- msg.setUser(value);
- break;
- case 10:
- var value = /** @type {string} */ (reader.readString());
- msg.setStrategy(value);
- break;
- case 11:
- var value = /** @type {string} */ (reader.readString());
- msg.setType(value);
- break;
- case 12:
- var value = /** @type {string} */ (reader.readString());
- msg.setBidModel(value);
- break;
- case 13:
- var value = /** @type {string} */ (reader.readString());
- msg.setAmountModel(value);
- break;
- case 14:
- var value = /** @type {string} */ (reader.readString());
- msg.setOrderId(value);
- break;
- case 15:
- var value = /** @type {string} */ (reader.readString());
- msg.setTradeId(value);
- break;
- case 16:
- var value = /** @type {string} */ (reader.readString());
- msg.setStatus(value);
- break;
- default:
- reader.skipField();
- break;
- }
- }
- return msg;
-};
-
-
-/**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
-proto.QA_Market_order.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.QA_Market_order.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
-};
-
-
-/**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.QA_Market_order} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.QA_Market_order.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = message.getPrice();
- if (f !== 0.0) {
- writer.writeFloat(
- 1,
- f
- );
- }
- f = message.getDate();
- if (f.length > 0) {
- writer.writeString(
- 2,
- f
- );
- }
- f = message.getDatetime();
- if (f.length > 0) {
- writer.writeString(
- 3,
- f
- );
- }
- f = message.getSendingTime();
- if (f.length > 0) {
- writer.writeString(
- 4,
- f
- );
- }
- f = message.getTransactTime();
- if (f.length > 0) {
- writer.writeString(
- 5,
- f
- );
- }
- f = message.getAmount();
- if (f !== 0.0) {
- writer.writeFloat(
- 6,
- f
- );
- }
- f = message.getTowards();
- if (f !== 0) {
- writer.writeInt64(
- 7,
- f
- );
- }
- f = message.getCode();
- if (f.length > 0) {
- writer.writeString(
- 8,
- f
- );
- }
- f = message.getUser();
- if (f.length > 0) {
- writer.writeString(
- 9,
- f
- );
- }
- f = message.getStrategy();
- if (f.length > 0) {
- writer.writeString(
- 10,
- f
- );
- }
- f = message.getType();
- if (f.length > 0) {
- writer.writeString(
- 11,
- f
- );
- }
- f = message.getBidModel();
- if (f.length > 0) {
- writer.writeString(
- 12,
- f
- );
- }
- f = message.getAmountModel();
- if (f.length > 0) {
- writer.writeString(
- 13,
- f
- );
- }
- f = message.getOrderId();
- if (f.length > 0) {
- writer.writeString(
- 14,
- f
- );
- }
- f = message.getTradeId();
- if (f.length > 0) {
- writer.writeString(
- 15,
- f
- );
- }
- f = message.getStatus();
- if (f.length > 0) {
- writer.writeString(
- 16,
- f
- );
- }
-};
-
-
-/**
- * optional float price = 1;
- * @return {number}
- */
-proto.QA_Market_order.prototype.getPrice = function() {
- return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 1, 0.0));
-};
-
-
-/** @param {number} value */
-proto.QA_Market_order.prototype.setPrice = function(value) {
- jspb.Message.setField(this, 1, value);
-};
-
-
-/**
- * optional string date = 2;
- * @return {string}
- */
-proto.QA_Market_order.prototype.getDate = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
-};
-
-
-/** @param {string} value */
-proto.QA_Market_order.prototype.setDate = function(value) {
- jspb.Message.setField(this, 2, value);
-};
-
-
-/**
- * optional string datetime = 3;
- * @return {string}
- */
-proto.QA_Market_order.prototype.getDatetime = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
-};
-
-
-/** @param {string} value */
-proto.QA_Market_order.prototype.setDatetime = function(value) {
- jspb.Message.setField(this, 3, value);
-};
-
-
-/**
- * optional string sending_time = 4;
- * @return {string}
- */
-proto.QA_Market_order.prototype.getSendingTime = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
-};
-
-
-/** @param {string} value */
-proto.QA_Market_order.prototype.setSendingTime = function(value) {
- jspb.Message.setField(this, 4, value);
-};
-
-
-/**
- * optional string transact_time = 5;
- * @return {string}
- */
-proto.QA_Market_order.prototype.getTransactTime = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
-};
-
-
-/** @param {string} value */
-proto.QA_Market_order.prototype.setTransactTime = function(value) {
- jspb.Message.setField(this, 5, value);
-};
-
-
-/**
- * optional float amount = 6;
- * @return {number}
- */
-proto.QA_Market_order.prototype.getAmount = function() {
- return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 6, 0.0));
-};
-
-
-/** @param {number} value */
-proto.QA_Market_order.prototype.setAmount = function(value) {
- jspb.Message.setField(this, 6, value);
-};
-
-
-/**
- * optional int64 towards = 7;
- * @return {number}
- */
-proto.QA_Market_order.prototype.getTowards = function() {
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
-};
-
-
-/** @param {number} value */
-proto.QA_Market_order.prototype.setTowards = function(value) {
- jspb.Message.setField(this, 7, value);
-};
-
-
-/**
- * optional string code = 8;
- * @return {string}
- */
-proto.QA_Market_order.prototype.getCode = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
-};
-
-
-/** @param {string} value */
-proto.QA_Market_order.prototype.setCode = function(value) {
- jspb.Message.setField(this, 8, value);
-};
-
-
-/**
- * optional string user = 9;
- * @return {string}
- */
-proto.QA_Market_order.prototype.getUser = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
-};
-
-
-/** @param {string} value */
-proto.QA_Market_order.prototype.setUser = function(value) {
- jspb.Message.setField(this, 9, value);
-};
-
-
-/**
- * optional string strategy = 10;
- * @return {string}
- */
-proto.QA_Market_order.prototype.getStrategy = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
-};
-
-
-/** @param {string} value */
-proto.QA_Market_order.prototype.setStrategy = function(value) {
- jspb.Message.setField(this, 10, value);
-};
-
-
-/**
- * optional string type = 11;
- * @return {string}
- */
-proto.QA_Market_order.prototype.getType = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
-};
-
-
-/** @param {string} value */
-proto.QA_Market_order.prototype.setType = function(value) {
- jspb.Message.setField(this, 11, value);
-};
-
-
-/**
- * optional string order_model = 12;
- * @return {string}
- */
-proto.QA_Market_order.prototype.getBidModel = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
-};
-
-
-/** @param {string} value */
-proto.QA_Market_order.prototype.setBidModel = function(value) {
- jspb.Message.setField(this, 12, value);
-};
-
-
-/**
- * optional string amount_model = 13;
- * @return {string}
- */
-proto.QA_Market_order.prototype.getAmountModel = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
-};
-
-
-/** @param {string} value */
-proto.QA_Market_order.prototype.setAmountModel = function(value) {
- jspb.Message.setField(this, 13, value);
-};
-
-
-/**
- * optional string order_id = 14;
- * @return {string}
- */
-proto.QA_Market_order.prototype.getOrderId = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
-};
-
-
-/** @param {string} value */
-proto.QA_Market_order.prototype.setOrderId = function(value) {
- jspb.Message.setField(this, 14, value);
-};
-
-
-/**
- * optional string trade_id = 15;
- * @return {string}
- */
-proto.QA_Market_order.prototype.getTradeId = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
-};
-
-
-/** @param {string} value */
-proto.QA_Market_order.prototype.setTradeId = function(value) {
- jspb.Message.setField(this, 15, value);
-};
-
-
-/**
- * optional string status = 16;
- * @return {string}
- */
-proto.QA_Market_order.prototype.getStatus = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
-};
-
-
-/** @param {string} value */
-proto.QA_Market_order.prototype.setStatus = function(value) {
- jspb.Message.setField(this, 16, value);
-};
-
-
diff --git a/QUANTAXIS/QAData/proto/stock_day.js b/QUANTAXIS/QAData/proto/stock_day.js
deleted file mode 100755
index bf72ddde6..000000000
--- a/QUANTAXIS/QAData/proto/stock_day.js
+++ /dev/null
@@ -1,427 +0,0 @@
-/**
- * @fileoverview
- * @enhanceable
- * @suppress {messageConventions} JS Compiler reports an error if a variable or
- * field starts with 'MSG_' and isn't a translatable message.
- * @public
- */
-// GENERATED CODE -- DO NOT EDIT!
-
-goog.provide('proto.stock_day');
-
-goog.require('jspb.BinaryReader');
-goog.require('jspb.BinaryWriter');
-goog.require('jspb.Message');
-
-
-/**
- * Generated by JsPbCodeGenerator.
- * @param {Array=} opt_data Optional initial data array, typically from a
- * server response, or constructed directly in Javascript. The array is used
- * in place and becomes part of the constructed object. It is not cloned.
- * If no data is provided, the constructed object will be empty, but still
- * valid.
- * @extends {jspb.Message}
- * @constructor
- */
-proto.stock_day = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
-};
-goog.inherits(proto.stock_day, jspb.Message);
-if (goog.DEBUG && !COMPILED) {
- proto.stock_day.displayName = 'proto.stock_day';
-}
-
-
-if (jspb.Message.GENERATE_TO_OBJECT) {
-/**
- * Creates an object representation of this proto suitable for use in Soy templates.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * To access a reserved field use, foo.pb_, eg, foo.pb_default.
- * For the list of reserved names please see:
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
- * for transitional soy proto support: http://goto/soy-param-migration
- * @return {!Object}
- */
-proto.stock_day.prototype.toObject = function(opt_includeInstance) {
- return proto.stock_day.toObject(opt_includeInstance, this);
-};
-
-
-/**
- * Static version of the {@see toObject} method.
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
- * instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @param {!proto.stock_day} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.stock_day.toObject = function(includeInstance, msg) {
- var f, obj = {
- code: jspb.Message.getFieldWithDefault(msg, 1, ""),
- open: +jspb.Message.getFieldWithDefault(msg, 2, 0.0),
- high: +jspb.Message.getFieldWithDefault(msg, 3, 0.0),
- low: +jspb.Message.getFieldWithDefault(msg, 4, 0.0),
- close: +jspb.Message.getFieldWithDefault(msg, 5, 0.0),
- volume: +jspb.Message.getFieldWithDefault(msg, 6, 0.0),
- date: jspb.Message.getFieldWithDefault(msg, 7, ""),
- amount: +jspb.Message.getFieldWithDefault(msg, 8, 0.0),
- dateStamp: jspb.Message.getFieldWithDefault(msg, 9, ""),
- preclose: +jspb.Message.getFieldWithDefault(msg, 10, 0.0),
- adj: +jspb.Message.getFieldWithDefault(msg, 11, 0.0)
- };
-
- if (includeInstance) {
- obj.$jspbMessageInstance = msg;
- }
- return obj;
-};
-}
-
-
-/**
- * Deserializes binary data (in protobuf wire format).
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
- * @return {!proto.stock_day}
- */
-proto.stock_day.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.stock_day;
- return proto.stock_day.deserializeBinaryFromReader(msg, reader);
-};
-
-
-/**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.stock_day} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.stock_day}
- */
-proto.stock_day.deserializeBinaryFromReader = function(msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = /** @type {string} */ (reader.readString());
- msg.setCode(value);
- break;
- case 2:
- var value = /** @type {number} */ (reader.readFloat());
- msg.setOpen(value);
- break;
- case 3:
- var value = /** @type {number} */ (reader.readFloat());
- msg.setHigh(value);
- break;
- case 4:
- var value = /** @type {number} */ (reader.readFloat());
- msg.setLow(value);
- break;
- case 5:
- var value = /** @type {number} */ (reader.readFloat());
- msg.setClose(value);
- break;
- case 6:
- var value = /** @type {number} */ (reader.readFloat());
- msg.setVolume(value);
- break;
- case 7:
- var value = /** @type {string} */ (reader.readString());
- msg.setDate(value);
- break;
- case 8:
- var value = /** @type {number} */ (reader.readFloat());
- msg.setAmount(value);
- break;
- case 9:
- var value = /** @type {string} */ (reader.readString());
- msg.setDateStamp(value);
- break;
- case 10:
- var value = /** @type {number} */ (reader.readFloat());
- msg.setPreclose(value);
- break;
- case 11:
- var value = /** @type {number} */ (reader.readFloat());
- msg.setAdj(value);
- break;
- default:
- reader.skipField();
- break;
- }
- }
- return msg;
-};
-
-
-/**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
-proto.stock_day.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.stock_day.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
-};
-
-
-/**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.stock_day} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.stock_day.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = message.getCode();
- if (f.length > 0) {
- writer.writeString(
- 1,
- f
- );
- }
- f = message.getOpen();
- if (f !== 0.0) {
- writer.writeFloat(
- 2,
- f
- );
- }
- f = message.getHigh();
- if (f !== 0.0) {
- writer.writeFloat(
- 3,
- f
- );
- }
- f = message.getLow();
- if (f !== 0.0) {
- writer.writeFloat(
- 4,
- f
- );
- }
- f = message.getClose();
- if (f !== 0.0) {
- writer.writeFloat(
- 5,
- f
- );
- }
- f = message.getVolume();
- if (f !== 0.0) {
- writer.writeFloat(
- 6,
- f
- );
- }
- f = message.getDate();
- if (f.length > 0) {
- writer.writeString(
- 7,
- f
- );
- }
- f = message.getAmount();
- if (f !== 0.0) {
- writer.writeFloat(
- 8,
- f
- );
- }
- f = message.getDateStamp();
- if (f.length > 0) {
- writer.writeString(
- 9,
- f
- );
- }
- f = message.getPreclose();
- if (f !== 0.0) {
- writer.writeFloat(
- 10,
- f
- );
- }
- f = message.getAdj();
- if (f !== 0.0) {
- writer.writeFloat(
- 11,
- f
- );
- }
-};
-
-
-/**
- * optional string code = 1;
- * @return {string}
- */
-proto.stock_day.prototype.getCode = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
-};
-
-
-/** @param {string} value */
-proto.stock_day.prototype.setCode = function(value) {
- jspb.Message.setField(this, 1, value);
-};
-
-
-/**
- * optional float open = 2;
- * @return {number}
- */
-proto.stock_day.prototype.getOpen = function() {
- return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 2, 0.0));
-};
-
-
-/** @param {number} value */
-proto.stock_day.prototype.setOpen = function(value) {
- jspb.Message.setField(this, 2, value);
-};
-
-
-/**
- * optional float high = 3;
- * @return {number}
- */
-proto.stock_day.prototype.getHigh = function() {
- return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 3, 0.0));
-};
-
-
-/** @param {number} value */
-proto.stock_day.prototype.setHigh = function(value) {
- jspb.Message.setField(this, 3, value);
-};
-
-
-/**
- * optional float low = 4;
- * @return {number}
- */
-proto.stock_day.prototype.getLow = function() {
- return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 4, 0.0));
-};
-
-
-/** @param {number} value */
-proto.stock_day.prototype.setLow = function(value) {
- jspb.Message.setField(this, 4, value);
-};
-
-
-/**
- * optional float close = 5;
- * @return {number}
- */
-proto.stock_day.prototype.getClose = function() {
- return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 5, 0.0));
-};
-
-
-/** @param {number} value */
-proto.stock_day.prototype.setClose = function(value) {
- jspb.Message.setField(this, 5, value);
-};
-
-
-/**
- * optional float volume = 6;
- * @return {number}
- */
-proto.stock_day.prototype.getVolume = function() {
- return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 6, 0.0));
-};
-
-
-/** @param {number} value */
-proto.stock_day.prototype.setVolume = function(value) {
- jspb.Message.setField(this, 6, value);
-};
-
-
-/**
- * optional string date = 7;
- * @return {string}
- */
-proto.stock_day.prototype.getDate = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
-};
-
-
-/** @param {string} value */
-proto.stock_day.prototype.setDate = function(value) {
- jspb.Message.setField(this, 7, value);
-};
-
-
-/**
- * optional float amount = 8;
- * @return {number}
- */
-proto.stock_day.prototype.getAmount = function() {
- return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 8, 0.0));
-};
-
-
-/** @param {number} value */
-proto.stock_day.prototype.setAmount = function(value) {
- jspb.Message.setField(this, 8, value);
-};
-
-
-/**
- * optional string date_stamp = 9;
- * @return {string}
- */
-proto.stock_day.prototype.getDateStamp = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
-};
-
-
-/** @param {string} value */
-proto.stock_day.prototype.setDateStamp = function(value) {
- jspb.Message.setField(this, 9, value);
-};
-
-
-/**
- * optional float preclose = 10;
- * @return {number}
- */
-proto.stock_day.prototype.getPreclose = function() {
- return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 10, 0.0));
-};
-
-
-/** @param {number} value */
-proto.stock_day.prototype.setPreclose = function(value) {
- jspb.Message.setField(this, 10, value);
-};
-
-
-/**
- * optional float adj = 11;
- * @return {number}
- */
-proto.stock_day.prototype.getAdj = function() {
- return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 11, 0.0));
-};
-
-
-/** @param {number} value */
-proto.stock_day.prototype.setAdj = function(value) {
- jspb.Message.setField(this, 11, value);
-};
-
-
diff --git a/QUANTAXIS/QAData/proto/stock_day.pb.cc b/QUANTAXIS/QAData/proto/stock_day.pb.cc
deleted file mode 100755
index e72bc6efd..000000000
--- a/QUANTAXIS/QAData/proto/stock_day.pb.cc
+++ /dev/null
@@ -1,1067 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: stock_day.proto
-
-#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
-#include "stock_day.pb.h"
-
-#include
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-// @@protoc_insertion_point(includes)
-class stock_dayDefaultTypeInternal {
-public:
- ::google::protobuf::internal::ExplicitlyConstructed
- _instance;
-} _stock_day_default_instance_;
-
-namespace protobuf_stock_5fday_2eproto {
-
-
-namespace {
-
-::google::protobuf::Metadata file_level_metadata[1];
-
-} // namespace
-
-PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::ParseTableField
- const TableStruct::entries[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- {0, 0, 0, ::google::protobuf::internal::kInvalidMask, 0, 0},
-};
-
-PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::AuxillaryParseTableField
- const TableStruct::aux[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- ::google::protobuf::internal::AuxillaryParseTableField(),
-};
-PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::ParseTable const
- TableStruct::schema[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
-};
-
-const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(stock_day, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(stock_day, code_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(stock_day, open_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(stock_day, high_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(stock_day, low_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(stock_day, close_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(stock_day, volume_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(stock_day, date_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(stock_day, amount_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(stock_day, date_stamp_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(stock_day, preclose_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(stock_day, adj_),
-};
-static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- { 0, -1, sizeof(stock_day)},
-};
-
-static ::google::protobuf::Message const * const file_default_instances[] = {
- reinterpret_cast(&_stock_day_default_instance_),
-};
-
-namespace {
-
-void protobuf_AssignDescriptors() {
- AddDescriptors();
- ::google::protobuf::MessageFactory* factory = NULL;
- AssignDescriptors(
- "stock_day.proto", schemas, file_default_instances, TableStruct::offsets, factory,
- file_level_metadata, NULL, NULL);
-}
-
-void protobuf_AssignDescriptorsOnce() {
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
- ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
-}
-
-void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD;
-void protobuf_RegisterTypes(const ::std::string&) {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1);
-}
-
-} // namespace
-void TableStruct::InitDefaultsImpl() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
-
- ::google::protobuf::internal::InitProtobufDefaults();
- _stock_day_default_instance_._instance.DefaultConstruct();
- ::google::protobuf::internal::OnShutdownDestroyMessage(
- &_stock_day_default_instance_);}
-
-void InitDefaults() {
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
- ::google::protobuf::GoogleOnceInit(&once, &TableStruct::InitDefaultsImpl);
-}
-namespace {
-void AddDescriptorsImpl() {
- InitDefaults();
- static const char descriptor[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- "\n\017stock_day.proto\"\262\001\n\tstock_day\022\014\n\004code\030"
- "\001 \001(\t\022\014\n\004open\030\002 \001(\002\022\014\n\004high\030\003 \001(\002\022\013\n\003low"
- "\030\004 \001(\002\022\r\n\005close\030\005 \001(\002\022\016\n\006volume\030\006 \001(\002\022\014\n"
- "\004date\030\007 \001(\t\022\016\n\006amount\030\010 \001(\002\022\022\n\ndate_stam"
- "p\030\t \001(\t\022\020\n\010preclose\030\n \001(\002\022\013\n\003adj\030\013 \001(\00221"
- "\n\rSearchService\022 \n\006Search\022\n.stock_day\032\n."
- "stock_dayb\006proto3"
- };
- ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
- descriptor, 257);
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
- "stock_day.proto", &protobuf_RegisterTypes);
-}
-} // anonymous namespace
-
-void AddDescriptors() {
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
- ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
-}
-// Force AddDescriptors() to be called at dynamic initialization time.
-struct StaticDescriptorInitializer {
- StaticDescriptorInitializer() {
- AddDescriptors();
- }
-} static_descriptor_initializer;
-
-} // namespace protobuf_stock_5fday_2eproto
-
-
-// ===================================================================
-
-#if !defined(_MSC_VER) || _MSC_VER >= 1900
-const int stock_day::kCodeFieldNumber;
-const int stock_day::kOpenFieldNumber;
-const int stock_day::kHighFieldNumber;
-const int stock_day::kLowFieldNumber;
-const int stock_day::kCloseFieldNumber;
-const int stock_day::kVolumeFieldNumber;
-const int stock_day::kDateFieldNumber;
-const int stock_day::kAmountFieldNumber;
-const int stock_day::kDateStampFieldNumber;
-const int stock_day::kPrecloseFieldNumber;
-const int stock_day::kAdjFieldNumber;
-#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
-
-stock_day::stock_day()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
- protobuf_stock_5fday_2eproto::InitDefaults();
- }
- SharedCtor();
- // @@protoc_insertion_point(constructor:stock_day)
-}
-stock_day::stock_day(const stock_day& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _cached_size_(0) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.code().size() > 0) {
- code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.code_);
- }
- date_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.date().size() > 0) {
- date_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.date_);
- }
- date_stamp_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.date_stamp().size() > 0) {
- date_stamp_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.date_stamp_);
- }
- ::memcpy(&open_, &from.open_,
- static_cast(reinterpret_cast(&adj_) -
- reinterpret_cast(&open_)) + sizeof(adj_));
- // @@protoc_insertion_point(copy_constructor:stock_day)
-}
-
-void stock_day::SharedCtor() {
- code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- date_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- date_stamp_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- ::memset(&open_, 0, static_cast(
- reinterpret_cast(&adj_) -
- reinterpret_cast(&open_)) + sizeof(adj_));
- _cached_size_ = 0;
-}
-
-stock_day::~stock_day() {
- // @@protoc_insertion_point(destructor:stock_day)
- SharedDtor();
-}
-
-void stock_day::SharedDtor() {
- code_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- date_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- date_stamp_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-
-void stock_day::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
-}
-const ::google::protobuf::Descriptor* stock_day::descriptor() {
- protobuf_stock_5fday_2eproto::protobuf_AssignDescriptorsOnce();
- return protobuf_stock_5fday_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
-}
-
-const stock_day& stock_day::default_instance() {
- protobuf_stock_5fday_2eproto::InitDefaults();
- return *internal_default_instance();
-}
-
-stock_day* stock_day::New(::google::protobuf::Arena* arena) const {
- stock_day* n = new stock_day;
- if (arena != NULL) {
- arena->Own(n);
- }
- return n;
-}
-
-void stock_day::Clear() {
-// @@protoc_insertion_point(message_clear_start:stock_day)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
-
- code_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- date_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- date_stamp_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- ::memset(&open_, 0, static_cast(
- reinterpret_cast(&adj_) -
- reinterpret_cast(&open_)) + sizeof(adj_));
- _internal_metadata_.Clear();
-}
-
-bool stock_day::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:stock_day)
- for (;;) {
- ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // string code = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_code()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->code().data(), static_cast(this->code().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "stock_day.code"));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
- // float open = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
-
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &open_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
- // float high = 3;
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
-
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &high_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
- // float low = 4;
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) {
-
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &low_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
- // float close = 5;
- case 5: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) {
-
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &close_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
- // float volume = 6;
- case 6: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(53u /* 53 & 0xFF */)) {
-
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &volume_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
- // string date = 7;
- case 7: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_date()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->date().data(), static_cast(this->date().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "stock_day.date"));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
- // float amount = 8;
- case 8: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(69u /* 69 & 0xFF */)) {
-
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &amount_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
- // string date_stamp = 9;
- case 9: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_date_stamp()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->date_stamp().data(), static_cast(this->date_stamp().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "stock_day.date_stamp"));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
- // float preclose = 10;
- case 10: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(85u /* 85 & 0xFF */)) {
-
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &preclose_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
- // float adj = 11;
- case 11: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(93u /* 93 & 0xFF */)) {
-
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &adj_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
-success:
- // @@protoc_insertion_point(parse_success:stock_day)
- return true;
-failure:
- // @@protoc_insertion_point(parse_failure:stock_day)
- return false;
-#undef DO_
-}
-
-void stock_day::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:stock_day)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
-
- // string code = 1;
- if (this->code().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->code().data(), static_cast(this->code().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "stock_day.code");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 1, this->code(), output);
- }
-
- // float open = 2;
- if (this->open() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->open(), output);
- }
-
- // float high = 3;
- if (this->high() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->high(), output);
- }
-
- // float low = 4;
- if (this->low() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->low(), output);
- }
-
- // float close = 5;
- if (this->close() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->close(), output);
- }
-
- // float volume = 6;
- if (this->volume() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(6, this->volume(), output);
- }
-
- // string date = 7;
- if (this->date().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->date().data(), static_cast(this->date().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "stock_day.date");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 7, this->date(), output);
- }
-
- // float amount = 8;
- if (this->amount() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(8, this->amount(), output);
- }
-
- // string date_stamp = 9;
- if (this->date_stamp().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->date_stamp().data(), static_cast(this->date_stamp().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "stock_day.date_stamp");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 9, this->date_stamp(), output);
- }
-
- // float preclose = 10;
- if (this->preclose() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(10, this->preclose(), output);
- }
-
- // float adj = 11;
- if (this->adj() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(11, this->adj(), output);
- }
-
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:stock_day)
-}
-
-::google::protobuf::uint8* stock_day::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:stock_day)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
-
- // string code = 1;
- if (this->code().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->code().data(), static_cast(this->code().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "stock_day.code");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 1, this->code(), target);
- }
-
- // float open = 2;
- if (this->open() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->open(), target);
- }
-
- // float high = 3;
- if (this->high() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->high(), target);
- }
-
- // float low = 4;
- if (this->low() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->low(), target);
- }
-
- // float close = 5;
- if (this->close() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->close(), target);
- }
-
- // float volume = 6;
- if (this->volume() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(6, this->volume(), target);
- }
-
- // string date = 7;
- if (this->date().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->date().data(), static_cast(this->date().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "stock_day.date");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 7, this->date(), target);
- }
-
- // float amount = 8;
- if (this->amount() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(8, this->amount(), target);
- }
-
- // string date_stamp = 9;
- if (this->date_stamp().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->date_stamp().data(), static_cast(this->date_stamp().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "stock_day.date_stamp");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 9, this->date_stamp(), target);
- }
-
- // float preclose = 10;
- if (this->preclose() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(10, this->preclose(), target);
- }
-
- // float adj = 11;
- if (this->adj() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(11, this->adj(), target);
- }
-
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:stock_day)
- return target;
-}
-
-size_t stock_day::ByteSizeLong() const {
-// @@protoc_insertion_point(message_byte_size_start:stock_day)
- size_t total_size = 0;
-
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // string code = 1;
- if (this->code().size() > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->code());
- }
-
- // string date = 7;
- if (this->date().size() > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->date());
- }
-
- // string date_stamp = 9;
- if (this->date_stamp().size() > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->date_stamp());
- }
-
- // float open = 2;
- if (this->open() != 0) {
- total_size += 1 + 4;
- }
-
- // float high = 3;
- if (this->high() != 0) {
- total_size += 1 + 4;
- }
-
- // float low = 4;
- if (this->low() != 0) {
- total_size += 1 + 4;
- }
-
- // float close = 5;
- if (this->close() != 0) {
- total_size += 1 + 4;
- }
-
- // float volume = 6;
- if (this->volume() != 0) {
- total_size += 1 + 4;
- }
-
- // float amount = 8;
- if (this->amount() != 0) {
- total_size += 1 + 4;
- }
-
- // float preclose = 10;
- if (this->preclose() != 0) {
- total_size += 1 + 4;
- }
-
- // float adj = 11;
- if (this->adj() != 0) {
- total_size += 1 + 4;
- }
-
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = cached_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- return total_size;
-}
-
-void stock_day::MergeFrom(const ::google::protobuf::Message& from) {
-// @@protoc_insertion_point(generalized_merge_from_start:stock_day)
- GOOGLE_DCHECK_NE(&from, this);
- const stock_day* source =
- ::google::protobuf::internal::DynamicCastToGenerated(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:stock_day)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:stock_day)
- MergeFrom(*source);
- }
-}
-
-void stock_day::MergeFrom(const stock_day& from) {
-// @@protoc_insertion_point(class_specific_merge_from_start:stock_day)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
-
- if (from.code().size() > 0) {
-
- code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.code_);
- }
- if (from.date().size() > 0) {
-
- date_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.date_);
- }
- if (from.date_stamp().size() > 0) {
-
- date_stamp_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.date_stamp_);
- }
- if (from.open() != 0) {
- set_open(from.open());
- }
- if (from.high() != 0) {
- set_high(from.high());
- }
- if (from.low() != 0) {
- set_low(from.low());
- }
- if (from.close() != 0) {
- set_close(from.close());
- }
- if (from.volume() != 0) {
- set_volume(from.volume());
- }
- if (from.amount() != 0) {
- set_amount(from.amount());
- }
- if (from.preclose() != 0) {
- set_preclose(from.preclose());
- }
- if (from.adj() != 0) {
- set_adj(from.adj());
- }
-}
-
-void stock_day::CopyFrom(const ::google::protobuf::Message& from) {
-// @@protoc_insertion_point(generalized_copy_from_start:stock_day)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
-}
-
-void stock_day::CopyFrom(const stock_day& from) {
-// @@protoc_insertion_point(class_specific_copy_from_start:stock_day)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
-}
-
-bool stock_day::IsInitialized() const {
- return true;
-}
-
-void stock_day::Swap(stock_day* other) {
- if (other == this) return;
- InternalSwap(other);
-}
-void stock_day::InternalSwap(stock_day* other) {
- using std::swap;
- code_.Swap(&other->code_);
- date_.Swap(&other->date_);
- date_stamp_.Swap(&other->date_stamp_);
- swap(open_, other->open_);
- swap(high_, other->high_);
- swap(low_, other->low_);
- swap(close_, other->close_);
- swap(volume_, other->volume_);
- swap(amount_, other->amount_);
- swap(preclose_, other->preclose_);
- swap(adj_, other->adj_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- swap(_cached_size_, other->_cached_size_);
-}
-
-::google::protobuf::Metadata stock_day::GetMetadata() const {
- protobuf_stock_5fday_2eproto::protobuf_AssignDescriptorsOnce();
- return protobuf_stock_5fday_2eproto::file_level_metadata[kIndexInFileMessages];
-}
-
-#if PROTOBUF_INLINE_NOT_IN_HEADERS
-// stock_day
-
-// string code = 1;
-void stock_day::clear_code() {
- code_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-const ::std::string& stock_day::code() const {
- // @@protoc_insertion_point(field_get:stock_day.code)
- return code_.GetNoArena();
-}
-void stock_day::set_code(const ::std::string& value) {
-
- code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:stock_day.code)
-}
-#if LANG_CXX11
-void stock_day::set_code(::std::string&& value) {
-
- code_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:stock_day.code)
-}
-#endif
-void stock_day::set_code(const char* value) {
- GOOGLE_DCHECK(value != NULL);
-
- code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:stock_day.code)
-}
-void stock_day::set_code(const char* value, size_t size) {
-
- code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast(value), size));
- // @@protoc_insertion_point(field_set_pointer:stock_day.code)
-}
-::std::string* stock_day::mutable_code() {
-
- // @@protoc_insertion_point(field_mutable:stock_day.code)
- return code_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-::std::string* stock_day::release_code() {
- // @@protoc_insertion_point(field_release:stock_day.code)
-
- return code_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-void stock_day::set_allocated_code(::std::string* code) {
- if (code != NULL) {
-
- } else {
-
- }
- code_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), code);
- // @@protoc_insertion_point(field_set_allocated:stock_day.code)
-}
-
-// float open = 2;
-void stock_day::clear_open() {
- open_ = 0;
-}
-float stock_day::open() const {
- // @@protoc_insertion_point(field_get:stock_day.open)
- return open_;
-}
-void stock_day::set_open(float value) {
-
- open_ = value;
- // @@protoc_insertion_point(field_set:stock_day.open)
-}
-
-// float high = 3;
-void stock_day::clear_high() {
- high_ = 0;
-}
-float stock_day::high() const {
- // @@protoc_insertion_point(field_get:stock_day.high)
- return high_;
-}
-void stock_day::set_high(float value) {
-
- high_ = value;
- // @@protoc_insertion_point(field_set:stock_day.high)
-}
-
-// float low = 4;
-void stock_day::clear_low() {
- low_ = 0;
-}
-float stock_day::low() const {
- // @@protoc_insertion_point(field_get:stock_day.low)
- return low_;
-}
-void stock_day::set_low(float value) {
-
- low_ = value;
- // @@protoc_insertion_point(field_set:stock_day.low)
-}
-
-// float close = 5;
-void stock_day::clear_close() {
- close_ = 0;
-}
-float stock_day::close() const {
- // @@protoc_insertion_point(field_get:stock_day.close)
- return close_;
-}
-void stock_day::set_close(float value) {
-
- close_ = value;
- // @@protoc_insertion_point(field_set:stock_day.close)
-}
-
-// float volume = 6;
-void stock_day::clear_volume() {
- volume_ = 0;
-}
-float stock_day::volume() const {
- // @@protoc_insertion_point(field_get:stock_day.volume)
- return volume_;
-}
-void stock_day::set_volume(float value) {
-
- volume_ = value;
- // @@protoc_insertion_point(field_set:stock_day.volume)
-}
-
-// string date = 7;
-void stock_day::clear_date() {
- date_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-const ::std::string& stock_day::date() const {
- // @@protoc_insertion_point(field_get:stock_day.date)
- return date_.GetNoArena();
-}
-void stock_day::set_date(const ::std::string& value) {
-
- date_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:stock_day.date)
-}
-#if LANG_CXX11
-void stock_day::set_date(::std::string&& value) {
-
- date_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:stock_day.date)
-}
-#endif
-void stock_day::set_date(const char* value) {
- GOOGLE_DCHECK(value != NULL);
-
- date_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:stock_day.date)
-}
-void stock_day::set_date(const char* value, size_t size) {
-
- date_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast(value), size));
- // @@protoc_insertion_point(field_set_pointer:stock_day.date)
-}
-::std::string* stock_day::mutable_date() {
-
- // @@protoc_insertion_point(field_mutable:stock_day.date)
- return date_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-::std::string* stock_day::release_date() {
- // @@protoc_insertion_point(field_release:stock_day.date)
-
- return date_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-void stock_day::set_allocated_date(::std::string* date) {
- if (date != NULL) {
-
- } else {
-
- }
- date_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), date);
- // @@protoc_insertion_point(field_set_allocated:stock_day.date)
-}
-
-// float amount = 8;
-void stock_day::clear_amount() {
- amount_ = 0;
-}
-float stock_day::amount() const {
- // @@protoc_insertion_point(field_get:stock_day.amount)
- return amount_;
-}
-void stock_day::set_amount(float value) {
-
- amount_ = value;
- // @@protoc_insertion_point(field_set:stock_day.amount)
-}
-
-// string date_stamp = 9;
-void stock_day::clear_date_stamp() {
- date_stamp_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-const ::std::string& stock_day::date_stamp() const {
- // @@protoc_insertion_point(field_get:stock_day.date_stamp)
- return date_stamp_.GetNoArena();
-}
-void stock_day::set_date_stamp(const ::std::string& value) {
-
- date_stamp_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:stock_day.date_stamp)
-}
-#if LANG_CXX11
-void stock_day::set_date_stamp(::std::string&& value) {
-
- date_stamp_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:stock_day.date_stamp)
-}
-#endif
-void stock_day::set_date_stamp(const char* value) {
- GOOGLE_DCHECK(value != NULL);
-
- date_stamp_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:stock_day.date_stamp)
-}
-void stock_day::set_date_stamp(const char* value, size_t size) {
-
- date_stamp_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast(value), size));
- // @@protoc_insertion_point(field_set_pointer:stock_day.date_stamp)
-}
-::std::string* stock_day::mutable_date_stamp() {
-
- // @@protoc_insertion_point(field_mutable:stock_day.date_stamp)
- return date_stamp_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-::std::string* stock_day::release_date_stamp() {
- // @@protoc_insertion_point(field_release:stock_day.date_stamp)
-
- return date_stamp_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-void stock_day::set_allocated_date_stamp(::std::string* date_stamp) {
- if (date_stamp != NULL) {
-
- } else {
-
- }
- date_stamp_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), date_stamp);
- // @@protoc_insertion_point(field_set_allocated:stock_day.date_stamp)
-}
-
-// float preclose = 10;
-void stock_day::clear_preclose() {
- preclose_ = 0;
-}
-float stock_day::preclose() const {
- // @@protoc_insertion_point(field_get:stock_day.preclose)
- return preclose_;
-}
-void stock_day::set_preclose(float value) {
-
- preclose_ = value;
- // @@protoc_insertion_point(field_set:stock_day.preclose)
-}
-
-// float adj = 11;
-void stock_day::clear_adj() {
- adj_ = 0;
-}
-float stock_day::adj() const {
- // @@protoc_insertion_point(field_get:stock_day.adj)
- return adj_;
-}
-void stock_day::set_adj(float value) {
-
- adj_ = value;
- // @@protoc_insertion_point(field_set:stock_day.adj)
-}
-
-#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
-
-// @@protoc_insertion_point(namespace_scope)
-
-// @@protoc_insertion_point(global_scope)
diff --git a/QUANTAXIS/QAData/proto/stock_day.pb.h b/QUANTAXIS/QAData/proto/stock_day.pb.h
deleted file mode 100755
index 500feffa8..000000000
--- a/QUANTAXIS/QAData/proto/stock_day.pb.h
+++ /dev/null
@@ -1,536 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: stock_day.proto
-
-#ifndef PROTOBUF_stock_5fday_2eproto__INCLUDED
-#define PROTOBUF_stock_5fday_2eproto__INCLUDED
-
-#include
-
-#include
-
-#if GOOGLE_PROTOBUF_VERSION < 3004000
-#error This file was generated by a newer version of protoc which is
-#error incompatible with your Protocol Buffer headers. Please update
-#error your headers.
-#endif
-#if 3004000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
-#error This file was generated by an older version of protoc which is
-#error incompatible with your Protocol Buffer headers. Please
-#error regenerate this file with a newer version of protoc.
-#endif
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include // IWYU pragma: export
-#include // IWYU pragma: export
-#include
-// @@protoc_insertion_point(includes)
-class stock_day;
-class stock_dayDefaultTypeInternal;
-extern stock_dayDefaultTypeInternal _stock_day_default_instance_;
-
-namespace protobuf_stock_5fday_2eproto {
-// Internal implementation detail -- do not call these.
-struct TableStruct {
- static const ::google::protobuf::internal::ParseTableField entries[];
- static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
- static const ::google::protobuf::internal::ParseTable schema[];
- static const ::google::protobuf::uint32 offsets[];
- static const ::google::protobuf::internal::FieldMetadata field_metadata[];
- static const ::google::protobuf::internal::SerializationTable serialization_table[];
- static void InitDefaultsImpl();
-};
-void AddDescriptors();
-void InitDefaults();
-} // namespace protobuf_stock_5fday_2eproto
-
-// ===================================================================
-
-class stock_day : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:stock_day) */ {
- public:
- stock_day();
- virtual ~stock_day();
-
- stock_day(const stock_day& from);
-
- inline stock_day& operator=(const stock_day& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- stock_day(stock_day&& from) noexcept
- : stock_day() {
- *this = ::std::move(from);
- }
-
- inline stock_day& operator=(stock_day&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- static const ::google::protobuf::Descriptor* descriptor();
- static const stock_day& default_instance();
-
- static inline const stock_day* internal_default_instance() {
- return reinterpret_cast(
- &_stock_day_default_instance_);
- }
- static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
- 0;
-
- void Swap(stock_day* other);
- friend void swap(stock_day& a, stock_day& b) {
- a.Swap(&b);
- }
-
- // implements Message ----------------------------------------------
-
- inline stock_day* New() const PROTOBUF_FINAL { return New(NULL); }
-
- stock_day* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
- void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
- void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
- void CopyFrom(const stock_day& from);
- void MergeFrom(const stock_day& from);
- void Clear() PROTOBUF_FINAL;
- bool IsInitialized() const PROTOBUF_FINAL;
-
- size_t ByteSizeLong() const PROTOBUF_FINAL;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
- int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const PROTOBUF_FINAL;
- void InternalSwap(stock_day* other);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return NULL;
- }
- inline void* MaybeArenaPtr() const {
- return NULL;
- }
- public:
-
- ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
-
- // nested types ----------------------------------------------------
-
- // accessors -------------------------------------------------------
-
- // string code = 1;
- void clear_code();
- static const int kCodeFieldNumber = 1;
- const ::std::string& code() const;
- void set_code(const ::std::string& value);
- #if LANG_CXX11
- void set_code(::std::string&& value);
- #endif
- void set_code(const char* value);
- void set_code(const char* value, size_t size);
- ::std::string* mutable_code();
- ::std::string* release_code();
- void set_allocated_code(::std::string* code);
-
- // string date = 7;
- void clear_date();
- static const int kDateFieldNumber = 7;
- const ::std::string& date() const;
- void set_date(const ::std::string& value);
- #if LANG_CXX11
- void set_date(::std::string&& value);
- #endif
- void set_date(const char* value);
- void set_date(const char* value, size_t size);
- ::std::string* mutable_date();
- ::std::string* release_date();
- void set_allocated_date(::std::string* date);
-
- // string date_stamp = 9;
- void clear_date_stamp();
- static const int kDateStampFieldNumber = 9;
- const ::std::string& date_stamp() const;
- void set_date_stamp(const ::std::string& value);
- #if LANG_CXX11
- void set_date_stamp(::std::string&& value);
- #endif
- void set_date_stamp(const char* value);
- void set_date_stamp(const char* value, size_t size);
- ::std::string* mutable_date_stamp();
- ::std::string* release_date_stamp();
- void set_allocated_date_stamp(::std::string* date_stamp);
-
- // float open = 2;
- void clear_open();
- static const int kOpenFieldNumber = 2;
- float open() const;
- void set_open(float value);
-
- // float high = 3;
- void clear_high();
- static const int kHighFieldNumber = 3;
- float high() const;
- void set_high(float value);
-
- // float low = 4;
- void clear_low();
- static const int kLowFieldNumber = 4;
- float low() const;
- void set_low(float value);
-
- // float close = 5;
- void clear_close();
- static const int kCloseFieldNumber = 5;
- float close() const;
- void set_close(float value);
-
- // float volume = 6;
- void clear_volume();
- static const int kVolumeFieldNumber = 6;
- float volume() const;
- void set_volume(float value);
-
- // float amount = 8;
- void clear_amount();
- static const int kAmountFieldNumber = 8;
- float amount() const;
- void set_amount(float value);
-
- // float preclose = 10;
- void clear_preclose();
- static const int kPrecloseFieldNumber = 10;
- float preclose() const;
- void set_preclose(float value);
-
- // float adj = 11;
- void clear_adj();
- static const int kAdjFieldNumber = 11;
- float adj() const;
- void set_adj(float value);
-
- // @@protoc_insertion_point(class_scope:stock_day)
- private:
-
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- ::google::protobuf::internal::ArenaStringPtr code_;
- ::google::protobuf::internal::ArenaStringPtr date_;
- ::google::protobuf::internal::ArenaStringPtr date_stamp_;
- float open_;
- float high_;
- float low_;
- float close_;
- float volume_;
- float amount_;
- float preclose_;
- float adj_;
- mutable int _cached_size_;
- friend struct protobuf_stock_5fday_2eproto::TableStruct;
-};
-// ===================================================================
-
-
-// ===================================================================
-
-#if !PROTOBUF_INLINE_NOT_IN_HEADERS
-#ifdef __GNUC__
- #pragma GCC diagnostic push
- #pragma GCC diagnostic ignored "-Wstrict-aliasing"
-#endif // __GNUC__
-// stock_day
-
-// string code = 1;
-inline void stock_day::clear_code() {
- code_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline const ::std::string& stock_day::code() const {
- // @@protoc_insertion_point(field_get:stock_day.code)
- return code_.GetNoArena();
-}
-inline void stock_day::set_code(const ::std::string& value) {
-
- code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:stock_day.code)
-}
-#if LANG_CXX11
-inline void stock_day::set_code(::std::string&& value) {
-
- code_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:stock_day.code)
-}
-#endif
-inline void stock_day::set_code(const char* value) {
- GOOGLE_DCHECK(value != NULL);
-
- code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:stock_day.code)
-}
-inline void stock_day::set_code(const char* value, size_t size) {
-
- code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast(value), size));
- // @@protoc_insertion_point(field_set_pointer:stock_day.code)
-}
-inline ::std::string* stock_day::mutable_code() {
-
- // @@protoc_insertion_point(field_mutable:stock_day.code)
- return code_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline ::std::string* stock_day::release_code() {
- // @@protoc_insertion_point(field_release:stock_day.code)
-
- return code_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline void stock_day::set_allocated_code(::std::string* code) {
- if (code != NULL) {
-
- } else {
-
- }
- code_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), code);
- // @@protoc_insertion_point(field_set_allocated:stock_day.code)
-}
-
-// float open = 2;
-inline void stock_day::clear_open() {
- open_ = 0;
-}
-inline float stock_day::open() const {
- // @@protoc_insertion_point(field_get:stock_day.open)
- return open_;
-}
-inline void stock_day::set_open(float value) {
-
- open_ = value;
- // @@protoc_insertion_point(field_set:stock_day.open)
-}
-
-// float high = 3;
-inline void stock_day::clear_high() {
- high_ = 0;
-}
-inline float stock_day::high() const {
- // @@protoc_insertion_point(field_get:stock_day.high)
- return high_;
-}
-inline void stock_day::set_high(float value) {
-
- high_ = value;
- // @@protoc_insertion_point(field_set:stock_day.high)
-}
-
-// float low = 4;
-inline void stock_day::clear_low() {
- low_ = 0;
-}
-inline float stock_day::low() const {
- // @@protoc_insertion_point(field_get:stock_day.low)
- return low_;
-}
-inline void stock_day::set_low(float value) {
-
- low_ = value;
- // @@protoc_insertion_point(field_set:stock_day.low)
-}
-
-// float close = 5;
-inline void stock_day::clear_close() {
- close_ = 0;
-}
-inline float stock_day::close() const {
- // @@protoc_insertion_point(field_get:stock_day.close)
- return close_;
-}
-inline void stock_day::set_close(float value) {
-
- close_ = value;
- // @@protoc_insertion_point(field_set:stock_day.close)
-}
-
-// float volume = 6;
-inline void stock_day::clear_volume() {
- volume_ = 0;
-}
-inline float stock_day::volume() const {
- // @@protoc_insertion_point(field_get:stock_day.volume)
- return volume_;
-}
-inline void stock_day::set_volume(float value) {
-
- volume_ = value;
- // @@protoc_insertion_point(field_set:stock_day.volume)
-}
-
-// string date = 7;
-inline void stock_day::clear_date() {
- date_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline const ::std::string& stock_day::date() const {
- // @@protoc_insertion_point(field_get:stock_day.date)
- return date_.GetNoArena();
-}
-inline void stock_day::set_date(const ::std::string& value) {
-
- date_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:stock_day.date)
-}
-#if LANG_CXX11
-inline void stock_day::set_date(::std::string&& value) {
-
- date_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:stock_day.date)
-}
-#endif
-inline void stock_day::set_date(const char* value) {
- GOOGLE_DCHECK(value != NULL);
-
- date_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:stock_day.date)
-}
-inline void stock_day::set_date(const char* value, size_t size) {
-
- date_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast(value), size));
- // @@protoc_insertion_point(field_set_pointer:stock_day.date)
-}
-inline ::std::string* stock_day::mutable_date() {
-
- // @@protoc_insertion_point(field_mutable:stock_day.date)
- return date_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline ::std::string* stock_day::release_date() {
- // @@protoc_insertion_point(field_release:stock_day.date)
-
- return date_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline void stock_day::set_allocated_date(::std::string* date) {
- if (date != NULL) {
-
- } else {
-
- }
- date_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), date);
- // @@protoc_insertion_point(field_set_allocated:stock_day.date)
-}
-
-// float amount = 8;
-inline void stock_day::clear_amount() {
- amount_ = 0;
-}
-inline float stock_day::amount() const {
- // @@protoc_insertion_point(field_get:stock_day.amount)
- return amount_;
-}
-inline void stock_day::set_amount(float value) {
-
- amount_ = value;
- // @@protoc_insertion_point(field_set:stock_day.amount)
-}
-
-// string date_stamp = 9;
-inline void stock_day::clear_date_stamp() {
- date_stamp_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline const ::std::string& stock_day::date_stamp() const {
- // @@protoc_insertion_point(field_get:stock_day.date_stamp)
- return date_stamp_.GetNoArena();
-}
-inline void stock_day::set_date_stamp(const ::std::string& value) {
-
- date_stamp_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:stock_day.date_stamp)
-}
-#if LANG_CXX11
-inline void stock_day::set_date_stamp(::std::string&& value) {
-
- date_stamp_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:stock_day.date_stamp)
-}
-#endif
-inline void stock_day::set_date_stamp(const char* value) {
- GOOGLE_DCHECK(value != NULL);
-
- date_stamp_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:stock_day.date_stamp)
-}
-inline void stock_day::set_date_stamp(const char* value, size_t size) {
-
- date_stamp_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast(value), size));
- // @@protoc_insertion_point(field_set_pointer:stock_day.date_stamp)
-}
-inline ::std::string* stock_day::mutable_date_stamp() {
-
- // @@protoc_insertion_point(field_mutable:stock_day.date_stamp)
- return date_stamp_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline ::std::string* stock_day::release_date_stamp() {
- // @@protoc_insertion_point(field_release:stock_day.date_stamp)
-
- return date_stamp_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline void stock_day::set_allocated_date_stamp(::std::string* date_stamp) {
- if (date_stamp != NULL) {
-
- } else {
-
- }
- date_stamp_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), date_stamp);
- // @@protoc_insertion_point(field_set_allocated:stock_day.date_stamp)
-}
-
-// float preclose = 10;
-inline void stock_day::clear_preclose() {
- preclose_ = 0;
-}
-inline float stock_day::preclose() const {
- // @@protoc_insertion_point(field_get:stock_day.preclose)
- return preclose_;
-}
-inline void stock_day::set_preclose(float value) {
-
- preclose_ = value;
- // @@protoc_insertion_point(field_set:stock_day.preclose)
-}
-
-// float adj = 11;
-inline void stock_day::clear_adj() {
- adj_ = 0;
-}
-inline float stock_day::adj() const {
- // @@protoc_insertion_point(field_get:stock_day.adj)
- return adj_;
-}
-inline void stock_day::set_adj(float value) {
-
- adj_ = value;
- // @@protoc_insertion_point(field_set:stock_day.adj)
-}
-
-#ifdef __GNUC__
- #pragma GCC diagnostic pop
-#endif // __GNUC__
-#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
-
-// @@protoc_insertion_point(namespace_scope)
-
-
-// @@protoc_insertion_point(global_scope)
-
-#endif // PROTOBUF_stock_5fday_2eproto__INCLUDED
diff --git a/QUANTAXIS/QAData/proto/stock_day_pb2.py b/QUANTAXIS/QAData/proto/stock_day_pb2.py
deleted file mode 100755
index 1b3037286..000000000
--- a/QUANTAXIS/QAData/proto/stock_day_pb2.py
+++ /dev/null
@@ -1,163 +0,0 @@
-# Generated by the protocol buffer compiler. DO NOT EDIT!
-# source: stock_day.proto
-
-import sys
-_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
-from google.protobuf import descriptor as _descriptor
-from google.protobuf import message as _message
-from google.protobuf import reflection as _reflection
-from google.protobuf import symbol_database as _symbol_database
-from google.protobuf import descriptor_pb2
-# @@protoc_insertion_point(imports)
-
-_sym_db = _symbol_database.Default()
-
-
-
-
-DESCRIPTOR = _descriptor.FileDescriptor(
- name='stock_day.proto',
- package='',
- syntax='proto3',
- serialized_pb=_b('\n\x0fstock_day.proto\"\xb2\x01\n\tstock_day\x12\x0c\n\x04\x63ode\x18\x01 \x01(\t\x12\x0c\n\x04open\x18\x02 \x01(\x02\x12\x0c\n\x04high\x18\x03 \x01(\x02\x12\x0b\n\x03low\x18\x04 \x01(\x02\x12\r\n\x05\x63lose\x18\x05 \x01(\x02\x12\x0e\n\x06volume\x18\x06 \x01(\x02\x12\x0c\n\x04\x64\x61te\x18\x07 \x01(\t\x12\x0e\n\x06\x61mount\x18\x08 \x01(\x02\x12\x12\n\ndate_stamp\x18\t \x01(\t\x12\x10\n\x08preclose\x18\n \x01(\x02\x12\x0b\n\x03\x61\x64j\x18\x0b \x01(\x02\x32\x31\n\rSearchService\x12 \n\x06Search\x12\n.stock_day\x1a\n.stock_dayb\x06proto3')
-)
-
-
-
-
-_STOCK_DAY = _descriptor.Descriptor(
- name='stock_day',
- full_name='stock_day',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='code', full_name='stock_day.code', index=0,
- number=1, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- options=None),
- _descriptor.FieldDescriptor(
- name='open', full_name='stock_day.open', index=1,
- number=2, type=2, cpp_type=6, label=1,
- has_default_value=False, default_value=float(0),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- options=None),
- _descriptor.FieldDescriptor(
- name='high', full_name='stock_day.high', index=2,
- number=3, type=2, cpp_type=6, label=1,
- has_default_value=False, default_value=float(0),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- options=None),
- _descriptor.FieldDescriptor(
- name='low', full_name='stock_day.low', index=3,
- number=4, type=2, cpp_type=6, label=1,
- has_default_value=False, default_value=float(0),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- options=None),
- _descriptor.FieldDescriptor(
- name='close', full_name='stock_day.close', index=4,
- number=5, type=2, cpp_type=6, label=1,
- has_default_value=False, default_value=float(0),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- options=None),
- _descriptor.FieldDescriptor(
- name='volume', full_name='stock_day.volume', index=5,
- number=6, type=2, cpp_type=6, label=1,
- has_default_value=False, default_value=float(0),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- options=None),
- _descriptor.FieldDescriptor(
- name='date', full_name='stock_day.date', index=6,
- number=7, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- options=None),
- _descriptor.FieldDescriptor(
- name='amount', full_name='stock_day.amount', index=7,
- number=8, type=2, cpp_type=6, label=1,
- has_default_value=False, default_value=float(0),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- options=None),
- _descriptor.FieldDescriptor(
- name='date_stamp', full_name='stock_day.date_stamp', index=8,
- number=9, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- options=None),
- _descriptor.FieldDescriptor(
- name='preclose', full_name='stock_day.preclose', index=9,
- number=10, type=2, cpp_type=6, label=1,
- has_default_value=False, default_value=float(0),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- options=None),
- _descriptor.FieldDescriptor(
- name='adj', full_name='stock_day.adj', index=10,
- number=11, type=2, cpp_type=6, label=1,
- has_default_value=False, default_value=float(0),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- options=None),
- ],
- extensions=[
- ],
- nested_types=[],
- enum_types=[
- ],
- options=None,
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=20,
- serialized_end=198,
-)
-
-DESCRIPTOR.message_types_by_name['stock_day'] = _STOCK_DAY
-_sym_db.RegisterFileDescriptor(DESCRIPTOR)
-
-stock_day = _reflection.GeneratedProtocolMessageType('stock_day', (_message.Message,), dict(
- DESCRIPTOR = _STOCK_DAY,
- __module__ = 'stock_day_pb2'
- # @@protoc_insertion_point(class_scope:stock_day)
- ))
-_sym_db.RegisterMessage(stock_day)
-
-
-
-_SEARCHSERVICE = _descriptor.ServiceDescriptor(
- name='SearchService',
- full_name='SearchService',
- file=DESCRIPTOR,
- index=0,
- options=None,
- serialized_start=200,
- serialized_end=249,
- methods=[
- _descriptor.MethodDescriptor(
- name='Search',
- full_name='SearchService.Search',
- index=0,
- containing_service=None,
- input_type=_STOCK_DAY,
- output_type=_STOCK_DAY,
- options=None,
- ),
-])
-_sym_db.RegisterServiceDescriptor(_SEARCHSERVICE)
-
-DESCRIPTOR.services_by_name['SearchService'] = _SEARCHSERVICE
-
-# @@protoc_insertion_point(module_scope)
diff --git a/QUANTAXIS/QAData/proto/stock_min.js b/QUANTAXIS/QAData/proto/stock_min.js
deleted file mode 100755
index 9057d96e7..000000000
--- a/QUANTAXIS/QAData/proto/stock_min.js
+++ /dev/null
@@ -1,427 +0,0 @@
-/**
- * @fileoverview
- * @enhanceable
- * @suppress {messageConventions} JS Compiler reports an error if a variable or
- * field starts with 'MSG_' and isn't a translatable message.
- * @public
- */
-// GENERATED CODE -- DO NOT EDIT!
-
-goog.provide('proto.stock_min');
-
-goog.require('jspb.BinaryReader');
-goog.require('jspb.BinaryWriter');
-goog.require('jspb.Message');
-
-
-/**
- * Generated by JsPbCodeGenerator.
- * @param {Array=} opt_data Optional initial data array, typically from a
- * server response, or constructed directly in Javascript. The array is used
- * in place and becomes part of the constructed object. It is not cloned.
- * If no data is provided, the constructed object will be empty, but still
- * valid.
- * @extends {jspb.Message}
- * @constructor
- */
-proto.stock_min = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
-};
-goog.inherits(proto.stock_min, jspb.Message);
-if (goog.DEBUG && !COMPILED) {
- proto.stock_min.displayName = 'proto.stock_min';
-}
-
-
-if (jspb.Message.GENERATE_TO_OBJECT) {
-/**
- * Creates an object representation of this proto suitable for use in Soy templates.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * To access a reserved field use, foo.pb_, eg, foo.pb_default.
- * For the list of reserved names please see:
- * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
- * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
- * for transitional soy proto support: http://goto/soy-param-migration
- * @return {!Object}
- */
-proto.stock_min.prototype.toObject = function(opt_includeInstance) {
- return proto.stock_min.toObject(opt_includeInstance, this);
-};
-
-
-/**
- * Static version of the {@see toObject} method.
- * @param {boolean|undefined} includeInstance Whether to include the JSPB
- * instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @param {!proto.stock_min} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.stock_min.toObject = function(includeInstance, msg) {
- var f, obj = {
- code: jspb.Message.getFieldWithDefault(msg, 1, ""),
- open: +jspb.Message.getFieldWithDefault(msg, 2, 0.0),
- high: +jspb.Message.getFieldWithDefault(msg, 3, 0.0),
- low: +jspb.Message.getFieldWithDefault(msg, 4, 0.0),
- close: +jspb.Message.getFieldWithDefault(msg, 5, 0.0),
- volume: +jspb.Message.getFieldWithDefault(msg, 6, 0.0),
- date: jspb.Message.getFieldWithDefault(msg, 7, ""),
- amount: +jspb.Message.getFieldWithDefault(msg, 8, 0.0),
- dateStamp: jspb.Message.getFieldWithDefault(msg, 9, ""),
- datetime: jspb.Message.getFieldWithDefault(msg, 10, ""),
- timeStamp: jspb.Message.getFieldWithDefault(msg, 11, "")
- };
-
- if (includeInstance) {
- obj.$jspbMessageInstance = msg;
- }
- return obj;
-};
-}
-
-
-/**
- * Deserializes binary data (in protobuf wire format).
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
- * @return {!proto.stock_min}
- */
-proto.stock_min.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.stock_min;
- return proto.stock_min.deserializeBinaryFromReader(msg, reader);
-};
-
-
-/**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.stock_min} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.stock_min}
- */
-proto.stock_min.deserializeBinaryFromReader = function(msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = /** @type {string} */ (reader.readString());
- msg.setCode(value);
- break;
- case 2:
- var value = /** @type {number} */ (reader.readFloat());
- msg.setOpen(value);
- break;
- case 3:
- var value = /** @type {number} */ (reader.readFloat());
- msg.setHigh(value);
- break;
- case 4:
- var value = /** @type {number} */ (reader.readFloat());
- msg.setLow(value);
- break;
- case 5:
- var value = /** @type {number} */ (reader.readFloat());
- msg.setClose(value);
- break;
- case 6:
- var value = /** @type {number} */ (reader.readFloat());
- msg.setVolume(value);
- break;
- case 7:
- var value = /** @type {string} */ (reader.readString());
- msg.setDate(value);
- break;
- case 8:
- var value = /** @type {number} */ (reader.readFloat());
- msg.setAmount(value);
- break;
- case 9:
- var value = /** @type {string} */ (reader.readString());
- msg.setDateStamp(value);
- break;
- case 10:
- var value = /** @type {string} */ (reader.readString());
- msg.setDatetime(value);
- break;
- case 11:
- var value = /** @type {string} */ (reader.readString());
- msg.setTimeStamp(value);
- break;
- default:
- reader.skipField();
- break;
- }
- }
- return msg;
-};
-
-
-/**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
-proto.stock_min.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.stock_min.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
-};
-
-
-/**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.stock_min} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.stock_min.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = message.getCode();
- if (f.length > 0) {
- writer.writeString(
- 1,
- f
- );
- }
- f = message.getOpen();
- if (f !== 0.0) {
- writer.writeFloat(
- 2,
- f
- );
- }
- f = message.getHigh();
- if (f !== 0.0) {
- writer.writeFloat(
- 3,
- f
- );
- }
- f = message.getLow();
- if (f !== 0.0) {
- writer.writeFloat(
- 4,
- f
- );
- }
- f = message.getClose();
- if (f !== 0.0) {
- writer.writeFloat(
- 5,
- f
- );
- }
- f = message.getVolume();
- if (f !== 0.0) {
- writer.writeFloat(
- 6,
- f
- );
- }
- f = message.getDate();
- if (f.length > 0) {
- writer.writeString(
- 7,
- f
- );
- }
- f = message.getAmount();
- if (f !== 0.0) {
- writer.writeFloat(
- 8,
- f
- );
- }
- f = message.getDateStamp();
- if (f.length > 0) {
- writer.writeString(
- 9,
- f
- );
- }
- f = message.getDatetime();
- if (f.length > 0) {
- writer.writeString(
- 10,
- f
- );
- }
- f = message.getTimeStamp();
- if (f.length > 0) {
- writer.writeString(
- 11,
- f
- );
- }
-};
-
-
-/**
- * optional string code = 1;
- * @return {string}
- */
-proto.stock_min.prototype.getCode = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
-};
-
-
-/** @param {string} value */
-proto.stock_min.prototype.setCode = function(value) {
- jspb.Message.setField(this, 1, value);
-};
-
-
-/**
- * optional float open = 2;
- * @return {number}
- */
-proto.stock_min.prototype.getOpen = function() {
- return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 2, 0.0));
-};
-
-
-/** @param {number} value */
-proto.stock_min.prototype.setOpen = function(value) {
- jspb.Message.setField(this, 2, value);
-};
-
-
-/**
- * optional float high = 3;
- * @return {number}
- */
-proto.stock_min.prototype.getHigh = function() {
- return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 3, 0.0));
-};
-
-
-/** @param {number} value */
-proto.stock_min.prototype.setHigh = function(value) {
- jspb.Message.setField(this, 3, value);
-};
-
-
-/**
- * optional float low = 4;
- * @return {number}
- */
-proto.stock_min.prototype.getLow = function() {
- return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 4, 0.0));
-};
-
-
-/** @param {number} value */
-proto.stock_min.prototype.setLow = function(value) {
- jspb.Message.setField(this, 4, value);
-};
-
-
-/**
- * optional float close = 5;
- * @return {number}
- */
-proto.stock_min.prototype.getClose = function() {
- return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 5, 0.0));
-};
-
-
-/** @param {number} value */
-proto.stock_min.prototype.setClose = function(value) {
- jspb.Message.setField(this, 5, value);
-};
-
-
-/**
- * optional float volume = 6;
- * @return {number}
- */
-proto.stock_min.prototype.getVolume = function() {
- return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 6, 0.0));
-};
-
-
-/** @param {number} value */
-proto.stock_min.prototype.setVolume = function(value) {
- jspb.Message.setField(this, 6, value);
-};
-
-
-/**
- * optional string date = 7;
- * @return {string}
- */
-proto.stock_min.prototype.getDate = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
-};
-
-
-/** @param {string} value */
-proto.stock_min.prototype.setDate = function(value) {
- jspb.Message.setField(this, 7, value);
-};
-
-
-/**
- * optional float amount = 8;
- * @return {number}
- */
-proto.stock_min.prototype.getAmount = function() {
- return /** @type {number} */ (+jspb.Message.getFieldWithDefault(this, 8, 0.0));
-};
-
-
-/** @param {number} value */
-proto.stock_min.prototype.setAmount = function(value) {
- jspb.Message.setField(this, 8, value);
-};
-
-
-/**
- * optional string date_stamp = 9;
- * @return {string}
- */
-proto.stock_min.prototype.getDateStamp = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
-};
-
-
-/** @param {string} value */
-proto.stock_min.prototype.setDateStamp = function(value) {
- jspb.Message.setField(this, 9, value);
-};
-
-
-/**
- * optional string datetime = 10;
- * @return {string}
- */
-proto.stock_min.prototype.getDatetime = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
-};
-
-
-/** @param {string} value */
-proto.stock_min.prototype.setDatetime = function(value) {
- jspb.Message.setField(this, 10, value);
-};
-
-
-/**
- * optional string time_stamp = 11;
- * @return {string}
- */
-proto.stock_min.prototype.getTimeStamp = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
-};
-
-
-/** @param {string} value */
-proto.stock_min.prototype.setTimeStamp = function(value) {
- jspb.Message.setField(this, 11, value);
-};
-
-
diff --git a/QUANTAXIS/QAData/proto/stock_min.pb.cc b/QUANTAXIS/QAData/proto/stock_min.pb.cc
deleted file mode 100755
index ca62bb455..000000000
--- a/QUANTAXIS/QAData/proto/stock_min.pb.cc
+++ /dev/null
@@ -1,1190 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: stock_min.proto
-
-#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
-#include "stock_min.pb.h"
-
-#include
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-// @@protoc_insertion_point(includes)
-class stock_minDefaultTypeInternal {
-public:
- ::google::protobuf::internal::ExplicitlyConstructed
- _instance;
-} _stock_min_default_instance_;
-
-namespace protobuf_stock_5fmin_2eproto {
-
-
-namespace {
-
-::google::protobuf::Metadata file_level_metadata[1];
-
-} // namespace
-
-PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::ParseTableField
- const TableStruct::entries[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- {0, 0, 0, ::google::protobuf::internal::kInvalidMask, 0, 0},
-};
-
-PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::AuxillaryParseTableField
- const TableStruct::aux[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- ::google::protobuf::internal::AuxillaryParseTableField(),
-};
-PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::ParseTable const
- TableStruct::schema[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- { NULL, NULL, 0, -1, -1, -1, -1, NULL, false },
-};
-
-const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(stock_min, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(stock_min, code_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(stock_min, open_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(stock_min, high_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(stock_min, low_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(stock_min, close_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(stock_min, volume_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(stock_min, date_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(stock_min, amount_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(stock_min, date_stamp_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(stock_min, datetime_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(stock_min, time_stamp_),
-};
-static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- { 0, -1, sizeof(stock_min)},
-};
-
-static ::google::protobuf::Message const * const file_default_instances[] = {
- reinterpret_cast(&_stock_min_default_instance_),
-};
-
-namespace {
-
-void protobuf_AssignDescriptors() {
- AddDescriptors();
- ::google::protobuf::MessageFactory* factory = NULL;
- AssignDescriptors(
- "stock_min.proto", schemas, file_default_instances, TableStruct::offsets, factory,
- file_level_metadata, NULL, NULL);
-}
-
-void protobuf_AssignDescriptorsOnce() {
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
- ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
-}
-
-void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD;
-void protobuf_RegisterTypes(const ::std::string&) {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1);
-}
-
-} // namespace
-void TableStruct::InitDefaultsImpl() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
-
- ::google::protobuf::internal::InitProtobufDefaults();
- _stock_min_default_instance_._instance.DefaultConstruct();
- ::google::protobuf::internal::OnShutdownDestroyMessage(
- &_stock_min_default_instance_);}
-
-void InitDefaults() {
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
- ::google::protobuf::GoogleOnceInit(&once, &TableStruct::InitDefaultsImpl);
-}
-namespace {
-void AddDescriptorsImpl() {
- InitDefaults();
- static const char descriptor[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- "\n\017stock_min.proto\"\271\001\n\tstock_min\022\014\n\004code\030"
- "\001 \001(\t\022\014\n\004open\030\002 \001(\002\022\014\n\004high\030\003 \001(\002\022\013\n\003low"
- "\030\004 \001(\002\022\r\n\005close\030\005 \001(\002\022\016\n\006volume\030\006 \001(\002\022\014\n"
- "\004date\030\007 \001(\t\022\016\n\006amount\030\010 \001(\002\022\022\n\ndate_stam"
- "p\030\t \001(\t\022\020\n\010datetime\030\n \001(\t\022\022\n\ntime_stamp\030"
- "\013 \001(\tb\006proto3"
- };
- ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
- descriptor, 213);
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
- "stock_min.proto", &protobuf_RegisterTypes);
-}
-} // anonymous namespace
-
-void AddDescriptors() {
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
- ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
-}
-// Force AddDescriptors() to be called at dynamic initialization time.
-struct StaticDescriptorInitializer {
- StaticDescriptorInitializer() {
- AddDescriptors();
- }
-} static_descriptor_initializer;
-
-} // namespace protobuf_stock_5fmin_2eproto
-
-
-// ===================================================================
-
-#if !defined(_MSC_VER) || _MSC_VER >= 1900
-const int stock_min::kCodeFieldNumber;
-const int stock_min::kOpenFieldNumber;
-const int stock_min::kHighFieldNumber;
-const int stock_min::kLowFieldNumber;
-const int stock_min::kCloseFieldNumber;
-const int stock_min::kVolumeFieldNumber;
-const int stock_min::kDateFieldNumber;
-const int stock_min::kAmountFieldNumber;
-const int stock_min::kDateStampFieldNumber;
-const int stock_min::kDatetimeFieldNumber;
-const int stock_min::kTimeStampFieldNumber;
-#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
-
-stock_min::stock_min()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
- protobuf_stock_5fmin_2eproto::InitDefaults();
- }
- SharedCtor();
- // @@protoc_insertion_point(constructor:stock_min)
-}
-stock_min::stock_min(const stock_min& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _cached_size_(0) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.code().size() > 0) {
- code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.code_);
- }
- date_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.date().size() > 0) {
- date_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.date_);
- }
- date_stamp_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.date_stamp().size() > 0) {
- date_stamp_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.date_stamp_);
- }
- datetime_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.datetime().size() > 0) {
- datetime_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.datetime_);
- }
- time_stamp_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.time_stamp().size() > 0) {
- time_stamp_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.time_stamp_);
- }
- ::memcpy(&open_, &from.open_,
- static_cast(reinterpret_cast(&amount_) -
- reinterpret_cast(&open_)) + sizeof(amount_));
- // @@protoc_insertion_point(copy_constructor:stock_min)
-}
-
-void stock_min::SharedCtor() {
- code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- date_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- date_stamp_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- datetime_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- time_stamp_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- ::memset(&open_, 0, static_cast(
- reinterpret_cast(&amount_) -
- reinterpret_cast(&open_)) + sizeof(amount_));
- _cached_size_ = 0;
-}
-
-stock_min::~stock_min() {
- // @@protoc_insertion_point(destructor:stock_min)
- SharedDtor();
-}
-
-void stock_min::SharedDtor() {
- code_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- date_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- date_stamp_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- datetime_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- time_stamp_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-
-void stock_min::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
-}
-const ::google::protobuf::Descriptor* stock_min::descriptor() {
- protobuf_stock_5fmin_2eproto::protobuf_AssignDescriptorsOnce();
- return protobuf_stock_5fmin_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
-}
-
-const stock_min& stock_min::default_instance() {
- protobuf_stock_5fmin_2eproto::InitDefaults();
- return *internal_default_instance();
-}
-
-stock_min* stock_min::New(::google::protobuf::Arena* arena) const {
- stock_min* n = new stock_min;
- if (arena != NULL) {
- arena->Own(n);
- }
- return n;
-}
-
-void stock_min::Clear() {
-// @@protoc_insertion_point(message_clear_start:stock_min)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
-
- code_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- date_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- date_stamp_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- datetime_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- time_stamp_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- ::memset(&open_, 0, static_cast(
- reinterpret_cast(&amount_) -
- reinterpret_cast(&open_)) + sizeof(amount_));
- _internal_metadata_.Clear();
-}
-
-bool stock_min::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
-#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:stock_min)
- for (;;) {
- ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // string code = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_code()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->code().data(), static_cast(this->code().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "stock_min.code"));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
- // float open = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
-
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &open_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
- // float high = 3;
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
-
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &high_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
- // float low = 4;
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) {
-
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &low_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
- // float close = 5;
- case 5: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) {
-
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &close_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
- // float volume = 6;
- case 6: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(53u /* 53 & 0xFF */)) {
-
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &volume_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
- // string date = 7;
- case 7: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_date()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->date().data(), static_cast(this->date().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "stock_min.date"));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
- // float amount = 8;
- case 8: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(69u /* 69 & 0xFF */)) {
-
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &amount_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
- // string date_stamp = 9;
- case 9: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_date_stamp()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->date_stamp().data(), static_cast(this->date_stamp().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "stock_min.date_stamp"));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
- // string datetime = 10;
- case 10: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_datetime()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->datetime().data(), static_cast(this->datetime().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "stock_min.datetime"));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
- // string time_stamp = 11;
- case 11: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_time_stamp()));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->time_stamp().data(), static_cast(this->time_stamp().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "stock_min.time_stamp"));
- } else {
- goto handle_unusual;
- }
- break;
- }
-
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
-success:
- // @@protoc_insertion_point(parse_success:stock_min)
- return true;
-failure:
- // @@protoc_insertion_point(parse_failure:stock_min)
- return false;
-#undef DO_
-}
-
-void stock_min::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:stock_min)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
-
- // string code = 1;
- if (this->code().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->code().data(), static_cast(this->code().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "stock_min.code");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 1, this->code(), output);
- }
-
- // float open = 2;
- if (this->open() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->open(), output);
- }
-
- // float high = 3;
- if (this->high() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->high(), output);
- }
-
- // float low = 4;
- if (this->low() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->low(), output);
- }
-
- // float close = 5;
- if (this->close() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->close(), output);
- }
-
- // float volume = 6;
- if (this->volume() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(6, this->volume(), output);
- }
-
- // string date = 7;
- if (this->date().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->date().data(), static_cast(this->date().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "stock_min.date");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 7, this->date(), output);
- }
-
- // float amount = 8;
- if (this->amount() != 0) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(8, this->amount(), output);
- }
-
- // string date_stamp = 9;
- if (this->date_stamp().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->date_stamp().data(), static_cast(this->date_stamp().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "stock_min.date_stamp");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 9, this->date_stamp(), output);
- }
-
- // string datetime = 10;
- if (this->datetime().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->datetime().data(), static_cast(this->datetime().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "stock_min.datetime");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 10, this->datetime(), output);
- }
-
- // string time_stamp = 11;
- if (this->time_stamp().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->time_stamp().data(), static_cast(this->time_stamp().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "stock_min.time_stamp");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 11, this->time_stamp(), output);
- }
-
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:stock_min)
-}
-
-::google::protobuf::uint8* stock_min::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:stock_min)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
-
- // string code = 1;
- if (this->code().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->code().data(), static_cast(this->code().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "stock_min.code");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 1, this->code(), target);
- }
-
- // float open = 2;
- if (this->open() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->open(), target);
- }
-
- // float high = 3;
- if (this->high() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->high(), target);
- }
-
- // float low = 4;
- if (this->low() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->low(), target);
- }
-
- // float close = 5;
- if (this->close() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->close(), target);
- }
-
- // float volume = 6;
- if (this->volume() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(6, this->volume(), target);
- }
-
- // string date = 7;
- if (this->date().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->date().data(), static_cast(this->date().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "stock_min.date");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 7, this->date(), target);
- }
-
- // float amount = 8;
- if (this->amount() != 0) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(8, this->amount(), target);
- }
-
- // string date_stamp = 9;
- if (this->date_stamp().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->date_stamp().data(), static_cast(this->date_stamp().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "stock_min.date_stamp");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 9, this->date_stamp(), target);
- }
-
- // string datetime = 10;
- if (this->datetime().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->datetime().data(), static_cast(this->datetime().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "stock_min.datetime");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 10, this->datetime(), target);
- }
-
- // string time_stamp = 11;
- if (this->time_stamp().size() > 0) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- this->time_stamp().data(), static_cast(this->time_stamp().length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "stock_min.time_stamp");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 11, this->time_stamp(), target);
- }
-
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:stock_min)
- return target;
-}
-
-size_t stock_min::ByteSizeLong() const {
-// @@protoc_insertion_point(message_byte_size_start:stock_min)
- size_t total_size = 0;
-
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // string code = 1;
- if (this->code().size() > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->code());
- }
-
- // string date = 7;
- if (this->date().size() > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->date());
- }
-
- // string date_stamp = 9;
- if (this->date_stamp().size() > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->date_stamp());
- }
-
- // string datetime = 10;
- if (this->datetime().size() > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->datetime());
- }
-
- // string time_stamp = 11;
- if (this->time_stamp().size() > 0) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->time_stamp());
- }
-
- // float open = 2;
- if (this->open() != 0) {
- total_size += 1 + 4;
- }
-
- // float high = 3;
- if (this->high() != 0) {
- total_size += 1 + 4;
- }
-
- // float low = 4;
- if (this->low() != 0) {
- total_size += 1 + 4;
- }
-
- // float close = 5;
- if (this->close() != 0) {
- total_size += 1 + 4;
- }
-
- // float volume = 6;
- if (this->volume() != 0) {
- total_size += 1 + 4;
- }
-
- // float amount = 8;
- if (this->amount() != 0) {
- total_size += 1 + 4;
- }
-
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = cached_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- return total_size;
-}
-
-void stock_min::MergeFrom(const ::google::protobuf::Message& from) {
-// @@protoc_insertion_point(generalized_merge_from_start:stock_min)
- GOOGLE_DCHECK_NE(&from, this);
- const stock_min* source =
- ::google::protobuf::internal::DynamicCastToGenerated(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:stock_min)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:stock_min)
- MergeFrom(*source);
- }
-}
-
-void stock_min::MergeFrom(const stock_min& from) {
-// @@protoc_insertion_point(class_specific_merge_from_start:stock_min)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
-
- if (from.code().size() > 0) {
-
- code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.code_);
- }
- if (from.date().size() > 0) {
-
- date_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.date_);
- }
- if (from.date_stamp().size() > 0) {
-
- date_stamp_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.date_stamp_);
- }
- if (from.datetime().size() > 0) {
-
- datetime_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.datetime_);
- }
- if (from.time_stamp().size() > 0) {
-
- time_stamp_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.time_stamp_);
- }
- if (from.open() != 0) {
- set_open(from.open());
- }
- if (from.high() != 0) {
- set_high(from.high());
- }
- if (from.low() != 0) {
- set_low(from.low());
- }
- if (from.close() != 0) {
- set_close(from.close());
- }
- if (from.volume() != 0) {
- set_volume(from.volume());
- }
- if (from.amount() != 0) {
- set_amount(from.amount());
- }
-}
-
-void stock_min::CopyFrom(const ::google::protobuf::Message& from) {
-// @@protoc_insertion_point(generalized_copy_from_start:stock_min)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
-}
-
-void stock_min::CopyFrom(const stock_min& from) {
-// @@protoc_insertion_point(class_specific_copy_from_start:stock_min)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
-}
-
-bool stock_min::IsInitialized() const {
- return true;
-}
-
-void stock_min::Swap(stock_min* other) {
- if (other == this) return;
- InternalSwap(other);
-}
-void stock_min::InternalSwap(stock_min* other) {
- using std::swap;
- code_.Swap(&other->code_);
- date_.Swap(&other->date_);
- date_stamp_.Swap(&other->date_stamp_);
- datetime_.Swap(&other->datetime_);
- time_stamp_.Swap(&other->time_stamp_);
- swap(open_, other->open_);
- swap(high_, other->high_);
- swap(low_, other->low_);
- swap(close_, other->close_);
- swap(volume_, other->volume_);
- swap(amount_, other->amount_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- swap(_cached_size_, other->_cached_size_);
-}
-
-::google::protobuf::Metadata stock_min::GetMetadata() const {
- protobuf_stock_5fmin_2eproto::protobuf_AssignDescriptorsOnce();
- return protobuf_stock_5fmin_2eproto::file_level_metadata[kIndexInFileMessages];
-}
-
-#if PROTOBUF_INLINE_NOT_IN_HEADERS
-// stock_min
-
-// string code = 1;
-void stock_min::clear_code() {
- code_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-const ::std::string& stock_min::code() const {
- // @@protoc_insertion_point(field_get:stock_min.code)
- return code_.GetNoArena();
-}
-void stock_min::set_code(const ::std::string& value) {
-
- code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:stock_min.code)
-}
-#if LANG_CXX11
-void stock_min::set_code(::std::string&& value) {
-
- code_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:stock_min.code)
-}
-#endif
-void stock_min::set_code(const char* value) {
- GOOGLE_DCHECK(value != NULL);
-
- code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:stock_min.code)
-}
-void stock_min::set_code(const char* value, size_t size) {
-
- code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast(value), size));
- // @@protoc_insertion_point(field_set_pointer:stock_min.code)
-}
-::std::string* stock_min::mutable_code() {
-
- // @@protoc_insertion_point(field_mutable:stock_min.code)
- return code_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-::std::string* stock_min::release_code() {
- // @@protoc_insertion_point(field_release:stock_min.code)
-
- return code_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-void stock_min::set_allocated_code(::std::string* code) {
- if (code != NULL) {
-
- } else {
-
- }
- code_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), code);
- // @@protoc_insertion_point(field_set_allocated:stock_min.code)
-}
-
-// float open = 2;
-void stock_min::clear_open() {
- open_ = 0;
-}
-float stock_min::open() const {
- // @@protoc_insertion_point(field_get:stock_min.open)
- return open_;
-}
-void stock_min::set_open(float value) {
-
- open_ = value;
- // @@protoc_insertion_point(field_set:stock_min.open)
-}
-
-// float high = 3;
-void stock_min::clear_high() {
- high_ = 0;
-}
-float stock_min::high() const {
- // @@protoc_insertion_point(field_get:stock_min.high)
- return high_;
-}
-void stock_min::set_high(float value) {
-
- high_ = value;
- // @@protoc_insertion_point(field_set:stock_min.high)
-}
-
-// float low = 4;
-void stock_min::clear_low() {
- low_ = 0;
-}
-float stock_min::low() const {
- // @@protoc_insertion_point(field_get:stock_min.low)
- return low_;
-}
-void stock_min::set_low(float value) {
-
- low_ = value;
- // @@protoc_insertion_point(field_set:stock_min.low)
-}
-
-// float close = 5;
-void stock_min::clear_close() {
- close_ = 0;
-}
-float stock_min::close() const {
- // @@protoc_insertion_point(field_get:stock_min.close)
- return close_;
-}
-void stock_min::set_close(float value) {
-
- close_ = value;
- // @@protoc_insertion_point(field_set:stock_min.close)
-}
-
-// float volume = 6;
-void stock_min::clear_volume() {
- volume_ = 0;
-}
-float stock_min::volume() const {
- // @@protoc_insertion_point(field_get:stock_min.volume)
- return volume_;
-}
-void stock_min::set_volume(float value) {
-
- volume_ = value;
- // @@protoc_insertion_point(field_set:stock_min.volume)
-}
-
-// string date = 7;
-void stock_min::clear_date() {
- date_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-const ::std::string& stock_min::date() const {
- // @@protoc_insertion_point(field_get:stock_min.date)
- return date_.GetNoArena();
-}
-void stock_min::set_date(const ::std::string& value) {
-
- date_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:stock_min.date)
-}
-#if LANG_CXX11
-void stock_min::set_date(::std::string&& value) {
-
- date_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:stock_min.date)
-}
-#endif
-void stock_min::set_date(const char* value) {
- GOOGLE_DCHECK(value != NULL);
-
- date_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:stock_min.date)
-}
-void stock_min::set_date(const char* value, size_t size) {
-
- date_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast(value), size));
- // @@protoc_insertion_point(field_set_pointer:stock_min.date)
-}
-::std::string* stock_min::mutable_date() {
-
- // @@protoc_insertion_point(field_mutable:stock_min.date)
- return date_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-::std::string* stock_min::release_date() {
- // @@protoc_insertion_point(field_release:stock_min.date)
-
- return date_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-void stock_min::set_allocated_date(::std::string* date) {
- if (date != NULL) {
-
- } else {
-
- }
- date_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), date);
- // @@protoc_insertion_point(field_set_allocated:stock_min.date)
-}
-
-// float amount = 8;
-void stock_min::clear_amount() {
- amount_ = 0;
-}
-float stock_min::amount() const {
- // @@protoc_insertion_point(field_get:stock_min.amount)
- return amount_;
-}
-void stock_min::set_amount(float value) {
-
- amount_ = value;
- // @@protoc_insertion_point(field_set:stock_min.amount)
-}
-
-// string date_stamp = 9;
-void stock_min::clear_date_stamp() {
- date_stamp_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-const ::std::string& stock_min::date_stamp() const {
- // @@protoc_insertion_point(field_get:stock_min.date_stamp)
- return date_stamp_.GetNoArena();
-}
-void stock_min::set_date_stamp(const ::std::string& value) {
-
- date_stamp_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:stock_min.date_stamp)
-}
-#if LANG_CXX11
-void stock_min::set_date_stamp(::std::string&& value) {
-
- date_stamp_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:stock_min.date_stamp)
-}
-#endif
-void stock_min::set_date_stamp(const char* value) {
- GOOGLE_DCHECK(value != NULL);
-
- date_stamp_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:stock_min.date_stamp)
-}
-void stock_min::set_date_stamp(const char* value, size_t size) {
-
- date_stamp_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast(value), size));
- // @@protoc_insertion_point(field_set_pointer:stock_min.date_stamp)
-}
-::std::string* stock_min::mutable_date_stamp() {
-
- // @@protoc_insertion_point(field_mutable:stock_min.date_stamp)
- return date_stamp_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-::std::string* stock_min::release_date_stamp() {
- // @@protoc_insertion_point(field_release:stock_min.date_stamp)
-
- return date_stamp_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-void stock_min::set_allocated_date_stamp(::std::string* date_stamp) {
- if (date_stamp != NULL) {
-
- } else {
-
- }
- date_stamp_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), date_stamp);
- // @@protoc_insertion_point(field_set_allocated:stock_min.date_stamp)
-}
-
-// string datetime = 10;
-void stock_min::clear_datetime() {
- datetime_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-const ::std::string& stock_min::datetime() const {
- // @@protoc_insertion_point(field_get:stock_min.datetime)
- return datetime_.GetNoArena();
-}
-void stock_min::set_datetime(const ::std::string& value) {
-
- datetime_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:stock_min.datetime)
-}
-#if LANG_CXX11
-void stock_min::set_datetime(::std::string&& value) {
-
- datetime_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:stock_min.datetime)
-}
-#endif
-void stock_min::set_datetime(const char* value) {
- GOOGLE_DCHECK(value != NULL);
-
- datetime_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:stock_min.datetime)
-}
-void stock_min::set_datetime(const char* value, size_t size) {
-
- datetime_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast(value), size));
- // @@protoc_insertion_point(field_set_pointer:stock_min.datetime)
-}
-::std::string* stock_min::mutable_datetime() {
-
- // @@protoc_insertion_point(field_mutable:stock_min.datetime)
- return datetime_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-::std::string* stock_min::release_datetime() {
- // @@protoc_insertion_point(field_release:stock_min.datetime)
-
- return datetime_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-void stock_min::set_allocated_datetime(::std::string* datetime) {
- if (datetime != NULL) {
-
- } else {
-
- }
- datetime_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), datetime);
- // @@protoc_insertion_point(field_set_allocated:stock_min.datetime)
-}
-
-// string time_stamp = 11;
-void stock_min::clear_time_stamp() {
- time_stamp_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-const ::std::string& stock_min::time_stamp() const {
- // @@protoc_insertion_point(field_get:stock_min.time_stamp)
- return time_stamp_.GetNoArena();
-}
-void stock_min::set_time_stamp(const ::std::string& value) {
-
- time_stamp_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:stock_min.time_stamp)
-}
-#if LANG_CXX11
-void stock_min::set_time_stamp(::std::string&& value) {
-
- time_stamp_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:stock_min.time_stamp)
-}
-#endif
-void stock_min::set_time_stamp(const char* value) {
- GOOGLE_DCHECK(value != NULL);
-
- time_stamp_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:stock_min.time_stamp)
-}
-void stock_min::set_time_stamp(const char* value, size_t size) {
-
- time_stamp_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast(value), size));
- // @@protoc_insertion_point(field_set_pointer:stock_min.time_stamp)
-}
-::std::string* stock_min::mutable_time_stamp() {
-
- // @@protoc_insertion_point(field_mutable:stock_min.time_stamp)
- return time_stamp_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-::std::string* stock_min::release_time_stamp() {
- // @@protoc_insertion_point(field_release:stock_min.time_stamp)
-
- return time_stamp_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-void stock_min::set_allocated_time_stamp(::std::string* time_stamp) {
- if (time_stamp != NULL) {
-
- } else {
-
- }
- time_stamp_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), time_stamp);
- // @@protoc_insertion_point(field_set_allocated:stock_min.time_stamp)
-}
-
-#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
-
-// @@protoc_insertion_point(namespace_scope)
-
-// @@protoc_insertion_point(global_scope)
diff --git a/QUANTAXIS/QAData/proto/stock_min.pb.h b/QUANTAXIS/QAData/proto/stock_min.pb.h
deleted file mode 100755
index 9c6711bb8..000000000
--- a/QUANTAXIS/QAData/proto/stock_min.pb.h
+++ /dev/null
@@ -1,630 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: stock_min.proto
-
-#ifndef PROTOBUF_stock_5fmin_2eproto__INCLUDED
-#define PROTOBUF_stock_5fmin_2eproto__INCLUDED
-
-#include
-
-#include
-
-#if GOOGLE_PROTOBUF_VERSION < 3004000
-#error This file was generated by a newer version of protoc which is
-#error incompatible with your Protocol Buffer headers. Please update
-#error your headers.
-#endif
-#if 3004000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
-#error This file was generated by an older version of protoc which is
-#error incompatible with your Protocol Buffer headers. Please
-#error regenerate this file with a newer version of protoc.
-#endif
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include // IWYU pragma: export
-#include // IWYU pragma: export
-#include
-// @@protoc_insertion_point(includes)
-class stock_min;
-class stock_minDefaultTypeInternal;
-extern stock_minDefaultTypeInternal _stock_min_default_instance_;
-
-namespace protobuf_stock_5fmin_2eproto {
-// Internal implementation detail -- do not call these.
-struct TableStruct {
- static const ::google::protobuf::internal::ParseTableField entries[];
- static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
- static const ::google::protobuf::internal::ParseTable schema[];
- static const ::google::protobuf::uint32 offsets[];
- static const ::google::protobuf::internal::FieldMetadata field_metadata[];
- static const ::google::protobuf::internal::SerializationTable serialization_table[];
- static void InitDefaultsImpl();
-};
-void AddDescriptors();
-void InitDefaults();
-} // namespace protobuf_stock_5fmin_2eproto
-
-// ===================================================================
-
-class stock_min : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:stock_min) */ {
- public:
- stock_min();
- virtual ~stock_min();
-
- stock_min(const stock_min& from);
-
- inline stock_min& operator=(const stock_min& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- stock_min(stock_min&& from) noexcept
- : stock_min() {
- *this = ::std::move(from);
- }
-
- inline stock_min& operator=(stock_min&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- static const ::google::protobuf::Descriptor* descriptor();
- static const stock_min& default_instance();
-
- static inline const stock_min* internal_default_instance() {
- return reinterpret_cast(
- &_stock_min_default_instance_);
- }
- static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
- 0;
-
- void Swap(stock_min* other);
- friend void swap(stock_min& a, stock_min& b) {
- a.Swap(&b);
- }
-
- // implements Message ----------------------------------------------
-
- inline stock_min* New() const PROTOBUF_FINAL { return New(NULL); }
-
- stock_min* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
- void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
- void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
- void CopyFrom(const stock_min& from);
- void MergeFrom(const stock_min& from);
- void Clear() PROTOBUF_FINAL;
- bool IsInitialized() const PROTOBUF_FINAL;
-
- size_t ByteSizeLong() const PROTOBUF_FINAL;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
- int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const PROTOBUF_FINAL;
- void InternalSwap(stock_min* other);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return NULL;
- }
- inline void* MaybeArenaPtr() const {
- return NULL;
- }
- public:
-
- ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
-
- // nested types ----------------------------------------------------
-
- // accessors -------------------------------------------------------
-
- // string code = 1;
- void clear_code();
- static const int kCodeFieldNumber = 1;
- const ::std::string& code() const;
- void set_code(const ::std::string& value);
- #if LANG_CXX11
- void set_code(::std::string&& value);
- #endif
- void set_code(const char* value);
- void set_code(const char* value, size_t size);
- ::std::string* mutable_code();
- ::std::string* release_code();
- void set_allocated_code(::std::string* code);
-
- // string date = 7;
- void clear_date();
- static const int kDateFieldNumber = 7;
- const ::std::string& date() const;
- void set_date(const ::std::string& value);
- #if LANG_CXX11
- void set_date(::std::string&& value);
- #endif
- void set_date(const char* value);
- void set_date(const char* value, size_t size);
- ::std::string* mutable_date();
- ::std::string* release_date();
- void set_allocated_date(::std::string* date);
-
- // string date_stamp = 9;
- void clear_date_stamp();
- static const int kDateStampFieldNumber = 9;
- const ::std::string& date_stamp() const;
- void set_date_stamp(const ::std::string& value);
- #if LANG_CXX11
- void set_date_stamp(::std::string&& value);
- #endif
- void set_date_stamp(const char* value);
- void set_date_stamp(const char* value, size_t size);
- ::std::string* mutable_date_stamp();
- ::std::string* release_date_stamp();
- void set_allocated_date_stamp(::std::string* date_stamp);
-
- // string datetime = 10;
- void clear_datetime();
- static const int kDatetimeFieldNumber = 10;
- const ::std::string& datetime() const;
- void set_datetime(const ::std::string& value);
- #if LANG_CXX11
- void set_datetime(::std::string&& value);
- #endif
- void set_datetime(const char* value);
- void set_datetime(const char* value, size_t size);
- ::std::string* mutable_datetime();
- ::std::string* release_datetime();
- void set_allocated_datetime(::std::string* datetime);
-
- // string time_stamp = 11;
- void clear_time_stamp();
- static const int kTimeStampFieldNumber = 11;
- const ::std::string& time_stamp() const;
- void set_time_stamp(const ::std::string& value);
- #if LANG_CXX11
- void set_time_stamp(::std::string&& value);
- #endif
- void set_time_stamp(const char* value);
- void set_time_stamp(const char* value, size_t size);
- ::std::string* mutable_time_stamp();
- ::std::string* release_time_stamp();
- void set_allocated_time_stamp(::std::string* time_stamp);
-
- // float open = 2;
- void clear_open();
- static const int kOpenFieldNumber = 2;
- float open() const;
- void set_open(float value);
-
- // float high = 3;
- void clear_high();
- static const int kHighFieldNumber = 3;
- float high() const;
- void set_high(float value);
-
- // float low = 4;
- void clear_low();
- static const int kLowFieldNumber = 4;
- float low() const;
- void set_low(float value);
-
- // float close = 5;
- void clear_close();
- static const int kCloseFieldNumber = 5;
- float close() const;
- void set_close(float value);
-
- // float volume = 6;
- void clear_volume();
- static const int kVolumeFieldNumber = 6;
- float volume() const;
- void set_volume(float value);
-
- // float amount = 8;
- void clear_amount();
- static const int kAmountFieldNumber = 8;
- float amount() const;
- void set_amount(float value);
-
- // @@protoc_insertion_point(class_scope:stock_min)
- private:
-
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- ::google::protobuf::internal::ArenaStringPtr code_;
- ::google::protobuf::internal::ArenaStringPtr date_;
- ::google::protobuf::internal::ArenaStringPtr date_stamp_;
- ::google::protobuf::internal::ArenaStringPtr datetime_;
- ::google::protobuf::internal::ArenaStringPtr time_stamp_;
- float open_;
- float high_;
- float low_;
- float close_;
- float volume_;
- float amount_;
- mutable int _cached_size_;
- friend struct protobuf_stock_5fmin_2eproto::TableStruct;
-};
-// ===================================================================
-
-
-// ===================================================================
-
-#if !PROTOBUF_INLINE_NOT_IN_HEADERS
-#ifdef __GNUC__
- #pragma GCC diagnostic push
- #pragma GCC diagnostic ignored "-Wstrict-aliasing"
-#endif // __GNUC__
-// stock_min
-
-// string code = 1;
-inline void stock_min::clear_code() {
- code_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline const ::std::string& stock_min::code() const {
- // @@protoc_insertion_point(field_get:stock_min.code)
- return code_.GetNoArena();
-}
-inline void stock_min::set_code(const ::std::string& value) {
-
- code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:stock_min.code)
-}
-#if LANG_CXX11
-inline void stock_min::set_code(::std::string&& value) {
-
- code_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:stock_min.code)
-}
-#endif
-inline void stock_min::set_code(const char* value) {
- GOOGLE_DCHECK(value != NULL);
-
- code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:stock_min.code)
-}
-inline void stock_min::set_code(const char* value, size_t size) {
-
- code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast(value), size));
- // @@protoc_insertion_point(field_set_pointer:stock_min.code)
-}
-inline ::std::string* stock_min::mutable_code() {
-
- // @@protoc_insertion_point(field_mutable:stock_min.code)
- return code_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline ::std::string* stock_min::release_code() {
- // @@protoc_insertion_point(field_release:stock_min.code)
-
- return code_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline void stock_min::set_allocated_code(::std::string* code) {
- if (code != NULL) {
-
- } else {
-
- }
- code_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), code);
- // @@protoc_insertion_point(field_set_allocated:stock_min.code)
-}
-
-// float open = 2;
-inline void stock_min::clear_open() {
- open_ = 0;
-}
-inline float stock_min::open() const {
- // @@protoc_insertion_point(field_get:stock_min.open)
- return open_;
-}
-inline void stock_min::set_open(float value) {
-
- open_ = value;
- // @@protoc_insertion_point(field_set:stock_min.open)
-}
-
-// float high = 3;
-inline void stock_min::clear_high() {
- high_ = 0;
-}
-inline float stock_min::high() const {
- // @@protoc_insertion_point(field_get:stock_min.high)
- return high_;
-}
-inline void stock_min::set_high(float value) {
-
- high_ = value;
- // @@protoc_insertion_point(field_set:stock_min.high)
-}
-
-// float low = 4;
-inline void stock_min::clear_low() {
- low_ = 0;
-}
-inline float stock_min::low() const {
- // @@protoc_insertion_point(field_get:stock_min.low)
- return low_;
-}
-inline void stock_min::set_low(float value) {
-
- low_ = value;
- // @@protoc_insertion_point(field_set:stock_min.low)
-}
-
-// float close = 5;
-inline void stock_min::clear_close() {
- close_ = 0;
-}
-inline float stock_min::close() const {
- // @@protoc_insertion_point(field_get:stock_min.close)
- return close_;
-}
-inline void stock_min::set_close(float value) {
-
- close_ = value;
- // @@protoc_insertion_point(field_set:stock_min.close)
-}
-
-// float volume = 6;
-inline void stock_min::clear_volume() {
- volume_ = 0;
-}
-inline float stock_min::volume() const {
- // @@protoc_insertion_point(field_get:stock_min.volume)
- return volume_;
-}
-inline void stock_min::set_volume(float value) {
-
- volume_ = value;
- // @@protoc_insertion_point(field_set:stock_min.volume)
-}
-
-// string date = 7;
-inline void stock_min::clear_date() {
- date_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline const ::std::string& stock_min::date() const {
- // @@protoc_insertion_point(field_get:stock_min.date)
- return date_.GetNoArena();
-}
-inline void stock_min::set_date(const ::std::string& value) {
-
- date_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:stock_min.date)
-}
-#if LANG_CXX11
-inline void stock_min::set_date(::std::string&& value) {
-
- date_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:stock_min.date)
-}
-#endif
-inline void stock_min::set_date(const char* value) {
- GOOGLE_DCHECK(value != NULL);
-
- date_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:stock_min.date)
-}
-inline void stock_min::set_date(const char* value, size_t size) {
-
- date_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast(value), size));
- // @@protoc_insertion_point(field_set_pointer:stock_min.date)
-}
-inline ::std::string* stock_min::mutable_date() {
-
- // @@protoc_insertion_point(field_mutable:stock_min.date)
- return date_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline ::std::string* stock_min::release_date() {
- // @@protoc_insertion_point(field_release:stock_min.date)
-
- return date_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline void stock_min::set_allocated_date(::std::string* date) {
- if (date != NULL) {
-
- } else {
-
- }
- date_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), date);
- // @@protoc_insertion_point(field_set_allocated:stock_min.date)
-}
-
-// float amount = 8;
-inline void stock_min::clear_amount() {
- amount_ = 0;
-}
-inline float stock_min::amount() const {
- // @@protoc_insertion_point(field_get:stock_min.amount)
- return amount_;
-}
-inline void stock_min::set_amount(float value) {
-
- amount_ = value;
- // @@protoc_insertion_point(field_set:stock_min.amount)
-}
-
-// string date_stamp = 9;
-inline void stock_min::clear_date_stamp() {
- date_stamp_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline const ::std::string& stock_min::date_stamp() const {
- // @@protoc_insertion_point(field_get:stock_min.date_stamp)
- return date_stamp_.GetNoArena();
-}
-inline void stock_min::set_date_stamp(const ::std::string& value) {
-
- date_stamp_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:stock_min.date_stamp)
-}
-#if LANG_CXX11
-inline void stock_min::set_date_stamp(::std::string&& value) {
-
- date_stamp_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:stock_min.date_stamp)
-}
-#endif
-inline void stock_min::set_date_stamp(const char* value) {
- GOOGLE_DCHECK(value != NULL);
-
- date_stamp_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:stock_min.date_stamp)
-}
-inline void stock_min::set_date_stamp(const char* value, size_t size) {
-
- date_stamp_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast(value), size));
- // @@protoc_insertion_point(field_set_pointer:stock_min.date_stamp)
-}
-inline ::std::string* stock_min::mutable_date_stamp() {
-
- // @@protoc_insertion_point(field_mutable:stock_min.date_stamp)
- return date_stamp_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline ::std::string* stock_min::release_date_stamp() {
- // @@protoc_insertion_point(field_release:stock_min.date_stamp)
-
- return date_stamp_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline void stock_min::set_allocated_date_stamp(::std::string* date_stamp) {
- if (date_stamp != NULL) {
-
- } else {
-
- }
- date_stamp_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), date_stamp);
- // @@protoc_insertion_point(field_set_allocated:stock_min.date_stamp)
-}
-
-// string datetime = 10;
-inline void stock_min::clear_datetime() {
- datetime_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline const ::std::string& stock_min::datetime() const {
- // @@protoc_insertion_point(field_get:stock_min.datetime)
- return datetime_.GetNoArena();
-}
-inline void stock_min::set_datetime(const ::std::string& value) {
-
- datetime_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:stock_min.datetime)
-}
-#if LANG_CXX11
-inline void stock_min::set_datetime(::std::string&& value) {
-
- datetime_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:stock_min.datetime)
-}
-#endif
-inline void stock_min::set_datetime(const char* value) {
- GOOGLE_DCHECK(value != NULL);
-
- datetime_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:stock_min.datetime)
-}
-inline void stock_min::set_datetime(const char* value, size_t size) {
-
- datetime_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast(value), size));
- // @@protoc_insertion_point(field_set_pointer:stock_min.datetime)
-}
-inline ::std::string* stock_min::mutable_datetime() {
-
- // @@protoc_insertion_point(field_mutable:stock_min.datetime)
- return datetime_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline ::std::string* stock_min::release_datetime() {
- // @@protoc_insertion_point(field_release:stock_min.datetime)
-
- return datetime_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline void stock_min::set_allocated_datetime(::std::string* datetime) {
- if (datetime != NULL) {
-
- } else {
-
- }
- datetime_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), datetime);
- // @@protoc_insertion_point(field_set_allocated:stock_min.datetime)
-}
-
-// string time_stamp = 11;
-inline void stock_min::clear_time_stamp() {
- time_stamp_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline const ::std::string& stock_min::time_stamp() const {
- // @@protoc_insertion_point(field_get:stock_min.time_stamp)
- return time_stamp_.GetNoArena();
-}
-inline void stock_min::set_time_stamp(const ::std::string& value) {
-
- time_stamp_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:stock_min.time_stamp)
-}
-#if LANG_CXX11
-inline void stock_min::set_time_stamp(::std::string&& value) {
-
- time_stamp_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:stock_min.time_stamp)
-}
-#endif
-inline void stock_min::set_time_stamp(const char* value) {
- GOOGLE_DCHECK(value != NULL);
-
- time_stamp_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:stock_min.time_stamp)
-}
-inline void stock_min::set_time_stamp(const char* value, size_t size) {
-
- time_stamp_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast(value), size));
- // @@protoc_insertion_point(field_set_pointer:stock_min.time_stamp)
-}
-inline ::std::string* stock_min::mutable_time_stamp() {
-
- // @@protoc_insertion_point(field_mutable:stock_min.time_stamp)
- return time_stamp_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline ::std::string* stock_min::release_time_stamp() {
- // @@protoc_insertion_point(field_release:stock_min.time_stamp)
-
- return time_stamp_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
-}
-inline void stock_min::set_allocated_time_stamp(::std::string* time_stamp) {
- if (time_stamp != NULL) {
-
- } else {
-
- }
- time_stamp_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), time_stamp);
- // @@protoc_insertion_point(field_set_allocated:stock_min.time_stamp)
-}
-
-#ifdef __GNUC__
- #pragma GCC diagnostic pop
-#endif // __GNUC__
-#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
-
-// @@protoc_insertion_point(namespace_scope)
-
-
-// @@protoc_insertion_point(global_scope)
-
-#endif // PROTOBUF_stock_5fmin_2eproto__INCLUDED
diff --git a/QUANTAXIS/QAData/proto/stock_min_pb2.py b/QUANTAXIS/QAData/proto/stock_min_pb2.py
deleted file mode 100755
index 1f7d52881..000000000
--- a/QUANTAXIS/QAData/proto/stock_min_pb2.py
+++ /dev/null
@@ -1,139 +0,0 @@
-# Generated by the protocol buffer compiler. DO NOT EDIT!
-# source: stock_min.proto
-
-import sys
-_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
-from google.protobuf import descriptor as _descriptor
-from google.protobuf import message as _message
-from google.protobuf import reflection as _reflection
-from google.protobuf import symbol_database as _symbol_database
-from google.protobuf import descriptor_pb2
-# @@protoc_insertion_point(imports)
-
-_sym_db = _symbol_database.Default()
-
-
-
-
-DESCRIPTOR = _descriptor.FileDescriptor(
- name='stock_min.proto',
- package='',
- syntax='proto3',
- serialized_pb=_b('\n\x0fstock_min.proto\"\xb9\x01\n\tstock_min\x12\x0c\n\x04\x63ode\x18\x01 \x01(\t\x12\x0c\n\x04open\x18\x02 \x01(\x02\x12\x0c\n\x04high\x18\x03 \x01(\x02\x12\x0b\n\x03low\x18\x04 \x01(\x02\x12\r\n\x05\x63lose\x18\x05 \x01(\x02\x12\x0e\n\x06volume\x18\x06 \x01(\x02\x12\x0c\n\x04\x64\x61te\x18\x07 \x01(\t\x12\x0e\n\x06\x61mount\x18\x08 \x01(\x02\x12\x12\n\ndate_stamp\x18\t \x01(\t\x12\x10\n\x08\x64\x61tetime\x18\n \x01(\t\x12\x12\n\ntime_stamp\x18\x0b \x01(\tb\x06proto3')
-)
-
-
-
-
-_STOCK_MIN = _descriptor.Descriptor(
- name='stock_min',
- full_name='stock_min',
- filename=None,
- file=DESCRIPTOR,
- containing_type=None,
- fields=[
- _descriptor.FieldDescriptor(
- name='code', full_name='stock_min.code', index=0,
- number=1, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- options=None),
- _descriptor.FieldDescriptor(
- name='open', full_name='stock_min.open', index=1,
- number=2, type=2, cpp_type=6, label=1,
- has_default_value=False, default_value=float(0),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- options=None),
- _descriptor.FieldDescriptor(
- name='high', full_name='stock_min.high', index=2,
- number=3, type=2, cpp_type=6, label=1,
- has_default_value=False, default_value=float(0),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- options=None),
- _descriptor.FieldDescriptor(
- name='low', full_name='stock_min.low', index=3,
- number=4, type=2, cpp_type=6, label=1,
- has_default_value=False, default_value=float(0),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- options=None),
- _descriptor.FieldDescriptor(
- name='close', full_name='stock_min.close', index=4,
- number=5, type=2, cpp_type=6, label=1,
- has_default_value=False, default_value=float(0),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- options=None),
- _descriptor.FieldDescriptor(
- name='volume', full_name='stock_min.volume', index=5,
- number=6, type=2, cpp_type=6, label=1,
- has_default_value=False, default_value=float(0),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- options=None),
- _descriptor.FieldDescriptor(
- name='date', full_name='stock_min.date', index=6,
- number=7, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- options=None),
- _descriptor.FieldDescriptor(
- name='amount', full_name='stock_min.amount', index=7,
- number=8, type=2, cpp_type=6, label=1,
- has_default_value=False, default_value=float(0),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- options=None),
- _descriptor.FieldDescriptor(
- name='date_stamp', full_name='stock_min.date_stamp', index=8,
- number=9, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- options=None),
- _descriptor.FieldDescriptor(
- name='datetime', full_name='stock_min.datetime', index=9,
- number=10, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- options=None),
- _descriptor.FieldDescriptor(
- name='time_stamp', full_name='stock_min.time_stamp', index=10,
- number=11, type=9, cpp_type=9, label=1,
- has_default_value=False, default_value=_b("").decode('utf-8'),
- message_type=None, enum_type=None, containing_type=None,
- is_extension=False, extension_scope=None,
- options=None),
- ],
- extensions=[
- ],
- nested_types=[],
- enum_types=[
- ],
- options=None,
- is_extendable=False,
- syntax='proto3',
- extension_ranges=[],
- oneofs=[
- ],
- serialized_start=20,
- serialized_end=205,
-)
-
-DESCRIPTOR.message_types_by_name['stock_min'] = _STOCK_MIN
-_sym_db.RegisterFileDescriptor(DESCRIPTOR)
-
-stock_min = _reflection.GeneratedProtocolMessageType('stock_min', (_message.Message,), dict(
- DESCRIPTOR = _STOCK_MIN,
- __module__ = 'stock_min_pb2'
- # @@protoc_insertion_point(class_scope:stock_min)
- ))
-_sym_db.RegisterMessage(stock_min)
-
-
-# @@protoc_insertion_point(module_scope)
diff --git a/QUANTAXIS/QAView/PaletteTest.py b/QUANTAXIS/QAView/PaletteTest.py
deleted file mode 100644
index 324fa0dcd..000000000
--- a/QUANTAXIS/QAView/PaletteTest.py
+++ /dev/null
@@ -1,56 +0,0 @@
-import sys
-import random
-from PyQt5.QtWidgets import *
-from PyQt5.QtWebEngineWidgets import QWebEngineView
-from PyQt5.QtGui import *
-from PyQt5.QtCore import *
-
-
-class QAPalette(QWidget):
-
- def __init__(self):
- super().__init__()
-
- self.setGeometry(0, 0, 1024, 768)
-
- #self.setStyleSheet("background:black")
- chart = QWebEngineView(self)
- chart.page().setBackgroundColor(Qt.red)
- #button = QPushButton("Test",self)
- #button.resize(50, 50)
- #self.col = QColor(0, 0, 0)
- chart.resize(self.size())
- chart.setAutoFillBackground(True)
-
-
-
- """
- button.setAutoFillBackground(True)
- pa = QPalette()
- #br = pa.dark()
- pa.setColor(QPalette.Window, Qt.red)
- pa.setColor(QPalette.WindowText, Qt.red)
- button.setPalette(pa)
-
- button.setAutoFillBackground(True)
-"""
-
-
-
- self.center()
- self.show()
-
- def center(self): # 主窗口居中显示函数
- screen = QDesktopWidget().screenGeometry()
- size = self.geometry()
- self.move((screen.width() - size.width()) / 2, (screen.height() - size.height()) / 2)
-
-
-
-
-
-
-if __name__=="__main__":
- app = QApplication(sys.argv)
- win = QAPalette()
- sys.exit(app.exec_())
\ No newline at end of file
diff --git a/QUANTAXIS/QAView/QAKLineChart.py b/QUANTAXIS/QAView/QAKLineChart.py
deleted file mode 100644
index 88491f8ec..000000000
--- a/QUANTAXIS/QAView/QAKLineChart.py
+++ /dev/null
@@ -1,188 +0,0 @@
-import os
-import time
-from pyecharts import Kline
-from PyQt5.QtCore import QObject, pyqtSignal
-
-class KlineChartSignal(QObject):
- html_chart_generated = pyqtSignal(str)
-
- def connect_html_chart_generated(self, function, message=None):
- if function is not None:
- self.html_chart_generated.connect(function)
- self.html_chart_generated.emit(message)
-
-class KlineChart(Kline):
-
- signal = KlineChartSignal()
-
- def __init__(self):
- super().__init__( background_color = '#0000000')
- self._html_chart_directory = ".\\"
- self._html_chart_name = None
- self._kline_data = [] #[[2320.26, 2320.26, 2287.3, 2362.94], [2300, 2291.3, 2288.26, 2308.38]]
- self._x_coordinate = []
-
- def clear_kline_data(self):
- self._kline_data.clear()
-
- def add_kline_data(self, d1, d2, d3, d4):
- """
- K线图四个要素
- :param d1:开盘价
- :param d2:收盘价
- :param d3:最低价
- :param d4:最高价
- :return:
- """
- self._kline_data.append([d1, d2, d3, d4])
-
- def set_chart_data(self, xargs, *args):
- self._kline_data.clear()
- for data in args:
- self._kline_data.append(data)
- print(data)
- self._x_coordinate.clear()
- self._x_coordinate = xargs
-
- def set_chart_size(self, width, height):
- self.set_width(width)
- self.set_height(height)
-
- def set_width(self, width = 800):
- """
- 设置图形输出的宽度
- :param width:
- :return:
- """
- if width < 100:
- return
- self.width = width
-
- def set_height(self, height = 600):
- """
- 设置图形输出的高度
- :param height:
- :return:
- """
- if height < 100:
- return
- self.height = height
-
- def set_html_chart_name(self, name):
- self._html_chart_name = name
-
- def connect_slot(self, function):
- path = "{0}\\{1}".format(self._html_chart_directory, self._html_chart_name)
- absolute_path = os.getcwd() + "\\" + path
- tryCount = 3
- while tryCount > 0:
- if os.path.exists(absolute_path):
- self.signal.connect_html_chart_generated(function, absolute_path)
- return
- else:
- time.sleep(1)
- tryCount =- 1
-
- def create_chart(self, legend):
- #self.clear_chart_html_file()
- self.add(legend, self._x_coordinate, self._kline_data)
- #self.use_theme('dark')
- if self._html_chart_name is not None:
- path = "{0}\\{1}".format(self._html_chart_directory, self._html_chart_name)
- self.render(path)
- else:
- pass
-
- def clear_chart_html_file(self):
- self.del_file(self._html_chart_directory)
-
- def del_file(self, path):
- ls = os.listdir(path)
- for i in ls:
- c_path = os.path.join(path, i)
- if os.path.isdir(c_path):
- self.del_file(c_path)
- else:
- os.remove(c_path)
-
- def on_chart_generated(self, path):
- print(path)
-
-
-
-if __name__=="__main__":
-
- print(os.getcwd())
-
- def on_generated(message):
- print(message)
-
-
-
- v1 = [[2320.26, 2320.26, 2287.3, 2362.94], [2300, 2291.3, 2288.26, 2308.38],
- [2295.35, 2346.5, 2295.35, 2345.92], [2347.22, 2358.98, 2337.35, 2363.8],
- [2360.75, 2382.48, 2347.89, 2383.76], [2383.43, 2385.42, 2371.23, 2391.82],
- [2377.41, 2419.02, 2369.57, 2421.15], [2425.92, 2428.15, 2417.58, 2440.38],
- [2411, 2433.13, 2403.3, 2437.42], [2432.68, 2334.48, 2427.7, 2441.73],
- [2430.69, 2418.53, 2394.22, 2433.89], [2416.62, 2432.4, 2414.4, 2443.03],
- [2441.91, 2421.56, 2418.43, 2444.8], [2420.26, 2382.91, 2373.53, 2427.07],
- [2383.49, 2397.18, 2370.61, 2397.94], [2378.82, 2325.95, 2309.17, 2378.82],
- [2322.94, 2314.16, 2308.76, 2330.88], [2320.62, 2325.82, 2315.01, 2338.78],
- [2313.74, 2293.34, 2289.89, 2340.71], [2297.77, 2313.22, 2292.03, 2324.63],
- [2322.32, 2365.59, 2308.92, 2366.16], [2364.54, 2359.51, 2330.86, 2369.65],
- [2332.08, 2273.4, 2259.25, 2333.54], [2274.81, 2326.31, 2270.1, 2328.14],
- [2333.61, 2347.18, 2321.6, 2351.44], [2340.44, 2324.29, 2304.27, 2352.02],
- [2326.42, 2318.61, 2314.59, 2333.67], [2314.68, 2310.59, 2296.58, 2320.96],
- [2309.16, 2286.6, 2264.83, 2333.29], [2282.17, 2263.97, 2253.25, 2286.33],
- [2255.77, 2270.28, 2253.31, 2276.22]]
- chart = KlineChart()
- chart.set_chart_size(1024, 600)
- chart.set_html_chart_name("adadada.html")
- chart.set_chart_data(["2017/7/{}".format(i + 1) for i in range(31)], *v1)
- chart.create_chart("chart")
- chart.connect_slot(on_generated)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-"""
-v1 = [[2320.26, 2320.26, 2287.3, 2362.94], [2300, 2291.3, 2288.26, 2308.38],
- [2295.35, 2346.5, 2295.35, 2345.92], [2347.22, 2358.98, 2337.35, 2363.8],
- [2360.75, 2382.48, 2347.89, 2383.76], [2383.43, 2385.42, 2371.23, 2391.82],
- [2377.41, 2419.02, 2369.57, 2421.15], [2425.92, 2428.15, 2417.58, 2440.38],
- [2411, 2433.13, 2403.3, 2437.42], [2432.68, 2334.48, 2427.7, 2441.73],
- [2430.69, 2418.53, 2394.22, 2433.89], [2416.62, 2432.4, 2414.4, 2443.03],
- [2441.91, 2421.56, 2418.43, 2444.8], [2420.26, 2382.91, 2373.53, 2427.07],
- [2383.49, 2397.18, 2370.61, 2397.94], [2378.82, 2325.95, 2309.17, 2378.82],
- [2322.94, 2314.16, 2308.76, 2330.88], [2320.62, 2325.82, 2315.01, 2338.78],
- [2313.74, 2293.34, 2289.89, 2340.71], [2297.77, 2313.22, 2292.03, 2324.63],
- [2322.32, 2365.59, 2308.92, 2366.16], [2364.54, 2359.51, 2330.86, 2369.65],
- [2332.08, 2273.4, 2259.25, 2333.54], [2274.81, 2326.31, 2270.1, 2328.14],
- [2333.61, 2347.18, 2321.6, 2351.44], [2340.44, 2324.29, 2304.27, 2352.02],
- [2326.42, 2318.61, 2314.59, 2333.67], [2314.68, 2310.59, 2296.58, 2320.96],
- [2309.16, 2286.6, 2264.83, 2333.29], [2282.17, 2263.97, 2253.25, 2286.33],
- [2255.77, 2270.28, 2253.31, 2276.22]]
-kline = Kline("K 线图示例")
-kline.width = 1024
-kline.height = 768
-kline.add("日K", ["2017/7/{}".format(i + 1) for i in range(31)], v1)
-kline.render()
-"""
-
-
diff --git a/QUANTAXIS/QAView/QAMACD.py b/QUANTAXIS/QAView/QAMACD.py
deleted file mode 100644
index f57143268..000000000
--- a/QUANTAXIS/QAView/QAMACD.py
+++ /dev/null
@@ -1,159 +0,0 @@
-import os
-import time
-from pyecharts import Bar
-from PyQt5.QtCore import QObject, pyqtSignal
-
-class MACDChartSignal(QObject):
- bar_chart_generated = pyqtSignal(str)
-
- def connect_bar_chart_generated(self, function, message=None):
- if function is not None:
- self.bar_chart_generated.connect(function)
- self.bar_chart_generated.emit(message)
-
-class MACDChart(Bar):
-
- signal = MACDChartSignal()
-
- def __init__(self):
- super().__init__( background_color = '#0000000')
- self._bar_chart_directory = '.\\'
- self._bar_chart_name = None
- self._bar_data = [] #[2320.26, 2320.26, 2287.3, 2362.94]
- self._x_coordinate = []
-
- def clear_bar_data(self):
- self._bar_data.clear()
-
- def set_chart_data(self, xargs, args):
- self._bar_data.clear()
- self._bar_data = args
- self._x_coordinate.clear()
- self._x_coordinate = xargs
-
- def set_chart_size(self, width, height):
- self.set_width(width)
- self.set_height(height)
-
- def set_width(self, width = 800):
- """
- 设置图形输出的宽度
- :param width:
- :return:
- """
- if width < 100:
- return
- self.width = width
-
- def set_height(self, height = 600):
- """
- 设置图形输出的高度
- :param height:
- :return:
- """
- if height < 100:
- return
- self.height = height
-
- def set_bar_chart_name(self, name):
- self._bar_chart_name = name
-
- def connect_slot(self, function):
- path = "{0}\\{1}".format(self._bar_chart_directory, self._bar_chart_name)
- absolute_path = os.getcwd() + "\\" + path
- tryCount = 3
- while tryCount > 0:
- if os.path.exists(absolute_path):
- self.signal.connect_bar_chart_generated(function, absolute_path)
- return
- else:
- time.sleep(1)
- tryCount =- 1
-
- def create_chart(self, legend):
- #self.clear_chart_bar_file()
- self.add(legend, self._x_coordinate, self._bar_data)
- #self.use_theme('dark')
- if self._bar_chart_name is not None:
- path = "{0}\\{1}".format(self._bar_chart_directory, self._bar_chart_name)
- self.render(path)
- else:
- pass
-
- def clear_chart_bar_file(self):
-
- self.del_file(self._bar_chart_directory)
-
- def del_file(self, path):
- ls = os.listdir(path)
- for i in ls:
- c_path = os.path.join(path, i)
- if os.path.isdir(c_path):
- self.del_file(c_path)
- else:
- os.remove(c_path)
-
- def on_chart_generated(self, path):
- print(path)
-
-
-
-if __name__=="__main__":
-
- print(os.getcwd())
-
- def on_generated(message):
- print(message)
-
- v1 = [2309.16, 2286.6, 2264.83, 2333.29, 2282.17, 2263.97, 2253.25, 2286.33]
- chart = MACDChart()
- chart.set_chart_size(1024, 600)
- chart.set_bar_chart_name("barbar.html")
- chart.set_chart_data(["2017/7/{}".format(i + 1) for i in range(8)], v1)
- chart.create_chart("chart")
- chart.connect_slot(on_generated)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-"""
-v1 = [[2320.26, 2320.26, 2287.3, 2362.94], [2300, 2291.3, 2288.26, 2308.38],
- [2295.35, 2346.5, 2295.35, 2345.92], [2347.22, 2358.98, 2337.35, 2363.8],
- [2360.75, 2382.48, 2347.89, 2383.76], [2383.43, 2385.42, 2371.23, 2391.82],
- [2377.41, 2419.02, 2369.57, 2421.15], [2425.92, 2428.15, 2417.58, 2440.38],
- [2411, 2433.13, 2403.3, 2437.42], [2432.68, 2334.48, 2427.7, 2441.73],
- [2430.69, 2418.53, 2394.22, 2433.89], [2416.62, 2432.4, 2414.4, 2443.03],
- [2441.91, 2421.56, 2418.43, 2444.8], [2420.26, 2382.91, 2373.53, 2427.07],
- [2383.49, 2397.18, 2370.61, 2397.94], [2378.82, 2325.95, 2309.17, 2378.82],
- [2322.94, 2314.16, 2308.76, 2330.88], [2320.62, 2325.82, 2315.01, 2338.78],
- [2313.74, 2293.34, 2289.89, 2340.71], [2297.77, 2313.22, 2292.03, 2324.63],
- [2322.32, 2365.59, 2308.92, 2366.16], [2364.54, 2359.51, 2330.86, 2369.65],
- [2332.08, 2273.4, 2259.25, 2333.54], [2274.81, 2326.31, 2270.1, 2328.14],
- [2333.61, 2347.18, 2321.6, 2351.44], [2340.44, 2324.29, 2304.27, 2352.02],
- [2326.42, 2318.61, 2314.59, 2333.67], [2314.68, 2310.59, 2296.58, 2320.96],
- [2309.16, 2286.6, 2264.83, 2333.29], [2282.17, 2263.97, 2253.25, 2286.33],
- [2255.77, 2270.28, 2253.31, 2276.22]]
-kline = Kline("K 线图示例")
-kline.width = 1024
-kline.height = 768
-kline.add("日K", ["2017/7/{}".format(i + 1) for i in range(31)], v1)
-kline.render()
-"""
-
-
diff --git a/QUANTAXIS/QAView/QAWindow.py b/QUANTAXIS/QAView/QAWindow.py
deleted file mode 100644
index bfacf4f68..000000000
--- a/QUANTAXIS/QAView/QAWindow.py
+++ /dev/null
@@ -1,254 +0,0 @@
-import sys
-import random
-from PyQt5.QtWidgets import *
-from PyQt5.QtWebEngineWidgets import QWebEngineView
-from PyQt5.QtGui import *
-from PyQt5.QtCore import *
-import QUANTAXIS as QA
-from QUANTAXIS.QAView.QAKLineChart import *
-from QUANTAXIS.QAView.QAMACD import *
-
-class QAWindow(QMainWindow):
-
- def __init__(self):
- super().__init__()
- self.timer = QTimer(self)
- self.timer.setInterval(500)
- self.timer.timeout.connect(self.roll)
- self.kline_chart = KlineChart()
- self.macd_chart = MACDChart()
- self.get_stock_list()
- self.init_layout()
- self.setGeometry(0, 0, 1024, 768)
- self.setWindowTitle(r"K线图")
- self.setStyleSheet("background:black")
- self.loadStyleSheet()
- self.center()
- self.show()
- #self.showMaximized()
-
- def loadStyleSheet(self):
- """
- 加载QSS全局样式文件
- :return:
- """
- file = QFile('qss/mainwindow.qss')
- #file = QFile('qss/my.qss')
- file.open(QFile.ReadOnly)
- style = file.readAll()
- sheet = str(style, encoding='utf8')
- qApp.setStyleSheet(sheet)
- file.close()
-
- def resizeEvent(self, event):
- """
- 窗口大小改变时需要动态调整图形
- :param event:
- :return:
- """
- indexList = self._stock_list_bar.selectionModel().selectedIndexes()
- if len(indexList) <=0 :
- pass
- for index in indexList:
- print(index.row())
- self.table_item_selected(index)
- return
-
- def get_stock_list(self):
- """
- 获取股票代码
- :return:
- """
- df = QA.QA_fetch_stock_list_adv().loc[:,['code','name']]
- self.stock_list = df.values
-
- def center(self):
- """
- 主窗口居中显示函数
- :return:
- """
- screen = QDesktopWidget().screenGeometry()
- size = self.geometry()
- self.move((screen.width() - size.width()) / 2, (screen.height() - size.height()) / 2)
-
- def init_layout(self):
- """
- 界面布局
- :return:
- """
- #定义GridLayout布局,主界面分成3行3列,第一行放按钮,第一列放表格,第二列放两张图形,最后一列放滚动文字
- self._grid = QGridLayout()
- self._grid.setSpacing(5)
- self._gridwiget = QWidget(self)
- self._gridwiget.setLayout(self._grid)
- self.setCentralWidget(self._gridwiget)
- self._grid.setRowStretch(0, 1)
- self._grid.setRowStretch(1, 20)
- self._grid.setRowStretch(2, 8)
- self._grid.setColumnStretch(0, 1)
- self._grid.setColumnStretch(1, 8)
- self._grid.setColumnStretch(2, 1)
- self._grid.setColumnMinimumWidth(0, 230)
- self._grid.setColumnMinimumWidth(2, 200)
-
- #表格第一行设置为菜单按钮行
- labTest = QLabel("QUANTAXIS WINDOW")
- labTest.setStyleSheet("background:rgb(255,255,255)")
- self._grid.addWidget(labTest, 0, 0, 1, 3)
-
- #添加tabwidget,第一列为table,放在tab里,有多个table
- self._left_tabwidget = QTabWidget(self)
- self._left_tabwidget.setTabPosition(QTabWidget.West)
- self._left_tabwidget.setTabShape(QTabWidget.Rounded)
- self._grid.addWidget(self._left_tabwidget, 1, 0, 2, 1)
-
- #股票代码列表,放进tab里
- self._stock_list_bar = QTableView()
- self._stock_list_bar.setObjectName("stocklisttable")
- column_names = ["序号","代码","名称"]
- self.fill_table(self._stock_list_bar, "股票代码", column_names, self.stock_list)
-
- #添加kline_chart
- self._k_line_chart = QWebEngineView()
- self._k_line_chart.page().setBackgroundColor(Qt.black)
- self._grid.addWidget(self._k_line_chart, 1, 1)
-
- #添加bar_chart
- self._macd_bar_chart = QWebEngineView()
- self._macd_bar_chart.page().setBackgroundColor(Qt.black)
- self._grid.addWidget(self._macd_bar_chart, 2, 1)
-
- #添加滚动文字在最后一列中
- self._news_message_grid = QGridLayout()
- self._news_message_grid_wiget = QWidget(self)
- self._news_message_grid_wiget.setLayout(self._news_message_grid)
- self._news_message_grid_wiget.setStyleSheet("background: rgb(50,50,50)")
- self._grid.addWidget(self._news_message_grid_wiget, 1, 2, 2, 1)
-
- self._news_title = QLabel("最新资讯")
- self._news_title.setObjectName("news_title")
- self._news_title.setAlignment(Qt.AlignCenter)
- self._news_message_grid.addWidget(self._news_title, 0,0)
-
- self._news_message_text = QTextEdit()
- self._news_message_text.setReadOnly(True)
- self._news_message_grid.addWidget(self._news_message_text, 1,0)
-
- self.set_news(self._news_message_text, "NEWS !!!! THIS IS A TEST NEWs BY QA")
-
-
-
- def fill_table(self, table_view, table_view_name, column_names, data_list):
- """
- 填充左侧表格内容
- :param table_view:表格对象
- :param table_view_name:
- :param column_names:列名数组
- :param data_list:数据列表
- :return:
- """
- if table_view is None:
- return
- if column_names is None or len(column_names) <= 0:
- return
- self._left_tabwidget.addTab(table_view, table_view_name)
- currentBar = self._left_tabwidget.tabBar()
- currentBar.setShape(QTabBar.RoundedEast)
- model = QStandardItemModel()
- model.setColumnCount(len(column_names))
- for i in range(len(column_names)):
- model.setHeaderData(i, Qt.Horizontal, column_names[i])
- table_view.setModel(model)
- table_view.setColumnWidth(0, 40)
- table_view.setColumnWidth(1, 60)
- table_view.setColumnWidth(2, 80)
- hv = QHeaderView(Qt.Vertical)
- hv.hide()
- table_view.setVerticalHeader(hv)
- table_view.horizontalHeader().setStretchLastSection(True)#最后一列填充整个表头
- table_view.setEditTriggers(QAbstractItemView.NoEditTriggers)
- table_view.setSelectionBehavior(QAbstractItemView.SelectRows)
- table_view.clicked.connect(self.table_item_selected)
-
- if data_list is None or len(column_names) <= 0:
- return
- for j in range(len(data_list)):
- model.setItem(j, 0, QStandardItem("{0}".format(j)))
- model.setItem(j, 1, QStandardItem(data_list[j][0]))
- model.setItem(j, 2, QStandardItem(data_list[j][1]))
- model.item(j, 0).setForeground(QBrush(Qt.white))
- model.item(j, 1).setForeground(QBrush(Qt.darkYellow))
- model.item(j, 2).setForeground(QBrush(Qt.yellow))
-
-
-
- def table_item_selected(self, index):
- row = index.row()
- print(self.stock_list[row][0], self.stock_list[row][1])
-
- v1 = [[2320.26, 2320.26, 2287.3, 2362.94], [2300, 2291.3, 2288.26, 2308.38],
- [2295.35, 2346.5, 2295.35, 2345.92], [2347.22, 2358.98, 2337.35, 2363.8],
- [2360.75, 2382.48, 2347.89, 2383.76], [2383.43, 2385.42, 2371.23, 2391.82],
- [2377.41, 2419.02, 2369.57, 2421.15], [2425.92, 2428.15, 2417.58, 2440.38],
- [2411, 2433.13, 2403.3, 2437.42], [2432.68, 2334.48, 2427.7, 2441.73],
- [2430.69, 2418.53, 2394.22, 2433.89], [2416.62, 2432.4, 2414.4, 2443.03],
- [2441.91, 2421.56, 2418.43, 2444.8], [2420.26, 2382.91, 2373.53, 2427.07],
- [2383.49, 2397.18, 2370.61, 2397.94], [2378.82, 2325.95, 2309.17, 2378.82],
- [2322.94, 2314.16, 2308.76, 2330.88], [2320.62, 2325.82, 2315.01, 2338.78],
- [2313.74, 2293.34, 2289.89, 2340.71], [2297.77, 2313.22, 2292.03, 2324.63],
- [2322.32, 2365.59, 2308.92, 2366.16], [2364.54, 2359.51, 2330.86, 2369.65],
- [2332.08, 2273.4, 2259.25, 2333.54], [2274.81, 2326.31, 2270.1, 2328.14],
- [2333.61, 2347.18, 2321.6, 2351.44], [2340.44, 2324.29, 2304.27, 2352.02],
- [2326.42, 2318.61, 2314.59, 2333.67], [2314.68, 2310.59, 2296.58, 2320.96],
- [2309.16, 2286.6, 2264.83, 2333.29], [2282.17, 2263.97, 2253.25, 2286.33],
- [2255.77, 2270.28, 2253.31, 2276.22]]
-
- self.kline_chart.set_chart_size(self._k_line_chart.width()-20, self._k_line_chart.height()-20)
- self.kline_chart.set_html_chart_name(self.generate_random_chart_name())
- self.kline_chart.set_chart_data(["2017/7/{}".format(i + 1) for i in range(31)], *v1)
- self.kline_chart.create_chart("chart")
- self.kline_chart.connect_slot(self.load_kline_chart)
-
- v2 = [2309.16, 2286.6, 2264.83, 2333.29, 2282.17, 2263.97, 2253.25, 2286.33]
-
- self.macd_chart.set_chart_size(self._macd_bar_chart.width() - 20, self._macd_bar_chart.height() - 20)
- self.macd_chart.set_bar_chart_name(self.generate_random_chart_name())
- self.macd_chart.set_chart_data(["2017/7/{}".format(i + 1) for i in range(8)], v2)
- self.macd_chart.create_chart("bar")
- self.macd_chart.connect_slot(self.load_macd_chart)
-
-
-
- def load_kline_chart(self, path):
- self._k_line_chart.load(QUrl.fromLocalFile(path))
- self._k_line_chart.show()
-
- def load_macd_chart(self, path):
- self._macd_bar_chart.load(QUrl.fromLocalFile(path))
- self._macd_bar_chart.show()
- print(path)
-
- def generate_random_chart_name(self):
- return "kline_chart_{0}.html".format(random.randint(1, 10000))
-
- def set_news(self, textEdit, message):
- textEdit.setText(message)
-
- def start_timer(self):
- self.timer.start()
-
- def stop_timer(self):
- self.timer.stop()
-
- def roll(self):
- print("timer")
-
-
-def view():
- app = QApplication(sys.argv)
- win = QAWindow()
- sys.exit(app.exec_())
-if __name__=="__main__":
- app = QApplication(sys.argv)
- win = QAWindow()
- sys.exit(app.exec_())
\ No newline at end of file
diff --git a/QUANTAXIS/QAView/README.md b/QUANTAXIS/QAView/README.md
deleted file mode 100644
index 30d81530a..000000000
--- a/QUANTAXIS/QAView/README.md
+++ /dev/null
@@ -1 +0,0 @@
-# QAWindow
\ No newline at end of file
diff --git a/QUANTAXIS/QAView/__init__.py b/QUANTAXIS/QAView/__init__.py
deleted file mode 100644
index b70e46f52..000000000
--- a/QUANTAXIS/QAView/__init__.py
+++ /dev/null
@@ -1,2 +0,0 @@
-from QUANTAXIS.QAView.QAKLineChart import (KlineChartSignal,KlineChart)
-from QUANTAXIS.QAView.QAMACD import (MACDChartSignal,MACDChart)
\ No newline at end of file
diff --git a/QUANTAXIS/QAView/qss/mainwindow.qss b/QUANTAXIS/QAView/qss/mainwindow.qss
deleted file mode 100644
index 52c61eee2..000000000
--- a/QUANTAXIS/QAView/qss/mainwindow.qss
+++ /dev/null
@@ -1,61 +0,0 @@
-
-QTableView#stocklisttable
-{
- color: white; /*表格内文字颜色*/
- gridline-color: gray; /*表格内框颜色*/
- background-color: rgb(108, 108, 108); /*表格内背景色*/
- alternate-background-color: rgb(64, 64, 64);
- selection-color: white; /*选中区域的文字颜色*/
- selection-background-color: rgb(0, 0, 255); /*选中区域的背景色*/
- border: 0px groove gray;
- border-radius: 0px;
- padding: 1px 2px;
-
-}
-QHeaderView
-{
- color: white;
- font: bold 10pt;
- background-color: rgb(50, 50, 50);/*设置表头空白区域背景色*/
- border: 0px solid rgb(144, 144, 144);
- border-left-color: rgba(255, 255, 255, 0);
- border-top-color: rgba(255, 255, 255, 0);
- border-radius:0px;
- min-height:29px;
-}
-
-QHeaderView::section
-{
- background:rgb(50, 50, 50);
- color: white;
-}
-
-QTabWidget
-{
- background: black;
- border: 1px; solid rgb(0, 0, 0);
- border-right : 0px; solid rgb(0, 0, 0);
-}
-
-QTabBar
-{
- background: black;
- border: 1px; solid rgb(0, 0, 0);
-}
-
-QTextEdit
-{
- color:yellow;
- readonly:true;
- border:0px solid rgb(50, 50, 50);
- border-top-color: rgba(0, 0, 0, 0);
- border-right-color: rgba(0, 0, 0, 0);
- border-bottom-color: rgba(0, 0, 0, 0);
- }
-
-QLabel#news_title
-{
- font-size:20px;
-
- color:yellow;
-}
\ No newline at end of file
diff --git a/QUANTAXIS/QAView/qss/my.qss b/QUANTAXIS/QAView/qss/my.qss
deleted file mode 100644
index 9b5281d73..000000000
--- a/QUANTAXIS/QAView/qss/my.qss
+++ /dev/null
@@ -1,951 +0,0 @@
-/*
-*
-* Author : lxm
-*
-* Date : 2018/06/22
-*
-* Description : 黑色炫酷
-*
-*/
-
-/**********子界面背景**********/
-QWidget#customWidget {
- background: rgb(68, 69, 73);
-}
-
-/**********子界面中央背景**********/
-QWidget#centerWidget {
- background: rgb(50, 50, 50);
-}
-
-/**********主界面样式**********/
-QWidget#mainWindow {
- border: 1px solid rgb(50, 50, 50);
- background: rgb(50, 50, 50);
-}
-
-QWidget#messageWidget {
- background: rgba(68, 69, 73, 50%);
-}
-
-QWidget#loadingWidget {
- border: none;
- border-radius: 5px;
- background: rgb(50, 50, 50);
-}
-
-QWidget#remoteWidget {
- border-top-right-radius: 10px;
- border-bottom-right-radius: 10px;
- border: 1px solid rgb(45, 45, 45);
- background: rgb(50, 50, 50);
-}
-
-StyledWidget {
- qproperty-normalColor: white;
- qproperty-disableColor: gray;
- qproperty-highlightColor: rgb(0, 160, 230);
- qproperty-errorColor: red;
-}
-
-QProgressIndicator {
- qproperty-color: rgb(175, 175, 175);
-}
-
-/**********提示**********/
-QToolTip{
- border: 1px solid rgb(45, 45, 45);
- background: white;
- color: black;
-}
-
-/**********菜单栏**********/
-QMenuBar {
- background: rgb(57, 58, 60);
- border: none;
-}
-QMenuBar::item {
- padding: 5px 10px 5px 10px;
- background: transparent;
-}
-QMenuBar::item:enabled {
- color: rgb(227, 234, 242);
-}
-QMenuBar::item:!enabled {
- color: rgb(155, 155, 155);
-}
-QMenuBar::item:enabled:selected {
- background: rgba(255, 255, 255, 40);
-}
-
-/**********菜单**********/
-QMenu {
- border: 1px solid rgb(100, 100, 100);
- background: rgb(68, 69, 73);
-}
-QMenu::item {
- height: 22px;
- padding: 0px 25px 0px 20px;
-}
-QMenu::item:enabled {
- color: rgb(225, 225, 225);
-}
-QMenu::item:!enabled {
- color: rgb(155, 155, 155);
-}
-QMenu::item:enabled:selected {
- color: rgb(230, 230, 230);
- background: rgba(255, 255, 255, 40);
-}
-QMenu::separator {
- height: 1px;
- background: rgb(100, 100, 100);
-}
-QMenu::indicator {
- width: 13px;
- height: 13px;
-}
-QMenu::icon {
- padding-left: 2px;
- padding-right: 2px;
-}
-
-/**********状态栏**********/
-QStatusBar {
- background: rgb(57, 58, 60);
-}
-QStatusBar::item {
- border: none;
- border-right: 1px solid rgb(100, 100, 100);
-}
-
-/**********分组框**********/
-QGroupBox {
- font-size: 15px;
- border: 1px solid rgb(80, 80, 80);
- border-radius: 4px;
- margin-top: 10px;
-}
-QGroupBox::title {
- color: rgb(175, 175, 175);
- top: -12px;
- left: 10px;
-}
-
-/**********页签项**********/
-QTabWidget::pane {
- border: none;
- border-top: 3px solid rgb(0, 160, 230);
- background: rgb(57, 58, 60);
-}
-QTabWidget::tab-bar {
- border: none;
-}
-QTabBar::tab {
- border: none;
- border-top-left-radius: 4px;
- border-top-right-radius: 4px;
- color: rgb(175, 175, 175);
- background: rgb(255, 255, 255, 30);
- height: 28px;
- min-width: 85px;
- margin-right: 5px;
- padding-left: 5px;
- padding-right: 5px;
-}
-QTabBar::tab:hover {
- background: rgb(255, 255, 255, 40);
-}
-QTabBar::tab:selected {
- color: white;
- background: rgb(0, 160, 230);
-}
-
-QTabWidget#tabWidget::pane {
- border: 1px solid rgb(45, 45, 45);
- background: rgb(57, 58, 60);
- margin-top: -1px;
-}
-
-QTabBar#tabBar::tab {
- border: 1px solid rgb(45, 45, 45);
- border-bottom: none;
- background: transparent;
-}
-QTabBar#tabBar::tab:hover {
- color: white;
-}
-QTabBar#tabBar::tab:selected {
- color: white;
- background: rgb(57, 58, 60);
-}
-
-/**********表头**********/
-QHeaderView{
- border: none;
- border-bottom: 3px solid rgb(0, 160, 230);
- background: rgb(57, 58, 60);
- min-height: 30px;
-}
-QHeaderView::section:horizontal {
- border: none;
- color: white;
- background: transparent;
- padding-left: 5px;
-}
-QHeaderView::section:horizontal:hover {
- background: rgb(0, 160, 230);
-}
-QHeaderView::section:horizontal:pressed {
- background: rgb(0, 180, 255);
-}
-QHeaderView::up-arrow {
- width: 13px;
- height: 11px;
- padding-right: 5px;
- image: url(:/Black/topArrow);
- subcontrol-position: center right;
-}
-QHeaderView::up-arrow:hover, QHeaderView::up-arrow:pressed {
- image: url(:/Black/topArrowHover);
-}
-QHeaderView::down-arrow {
- width: 13px;
- height: 11px;
- padding-right: 5px;
- image: url(:/Black/bottomArrow);
- subcontrol-position: center right;
-}
-QHeaderView::down-arrow:hover, QHeaderView::down-arrow:pressed {
- image: url(:/Black/bottomArrowHover);
-}
-
-/**********表格**********/
-QTableView {
- border: 1px solid rgb(45, 45, 45);
- background: rgb(57, 58, 60);
- gridline-color: rgb(60, 60, 60);
-}
-QTableView::item {
- padding-left: 5px;
- padding-right: 5px;
- border: none;
- background: rgb(72, 72, 74);
- border-right: 1px solid rgb(45, 45, 45);
- border-bottom: 1px solid rgb(45, 45, 45);
-}
-QTableView::item:selected {
- background: rgba(255, 255, 255, 40);
-}
-QTableView::item:selected:!active {
- color: white;
-}
-QTableView::indicator {
- width: 20px;
- height: 20px;
-}
-QTableView::indicator:enabled:unchecked {
- image: url(:/Black/checkBox);
-}
-QTableView::indicator:enabled:unchecked:hover {
- image: url(:/Black/checkBoxHover);
-}
-QTableView::indicator:enabled:unchecked:pressed {
- image: url(:/Black/checkBoxPressed);
-}
-QTableView::indicator:enabled:checked {
- image: url(:/Black/checkBoxChecked);
-}
-QTableView::indicator:enabled:checked:hover {
- image: url(:/Black/checkBoxCheckedHover);
-}
-QTableView::indicator:enabled:checked:pressed {
- image: url(:/Black/checkBoxCheckedPressed);
-}
-QTableView::indicator:enabled:indeterminate {
- image: url(:/Black/checkBoxIndeterminate);
-}
-QTableView::indicator:enabled:indeterminate:hover {
- image: url(:/Black/checkBoxIndeterminateHover);
-}
-QTableView::indicator:enabled:indeterminate:pressed {
- image: url(:/Black/checkBoxIndeterminatePressed);
-}
-
-/**********滚动条-水平**********/
-QScrollBar:horizontal {
- height: 20px;
- background: transparent;
- margin-top: 3px;
- margin-bottom: 3px;
-}
-QScrollBar::handle:horizontal {
- height: 20px;
- min-width: 30px;
- background: rgb(68, 69, 73);
- margin-left: 15px;
- margin-right: 15px;
-}
-QScrollBar::handle:horizontal:hover {
- background: rgb(80, 80, 80);
-}
-QScrollBar::sub-line:horizontal {
- width: 15px;
- background: transparent;
- image: url(:/Black/arrowLeft);
- subcontrol-position: left;
-}
-QScrollBar::add-line:horizontal {
- width: 15px;
- background: transparent;
- image: url(:/Black/arrowRight);
- subcontrol-position: right;
-}
-QScrollBar::sub-line:horizontal:hover {
- background: rgb(68, 69, 73);
-}
-QScrollBar::add-line:horizontal:hover {
- background: rgb(68, 69, 73);
-}
-QScrollBar::add-page:horizontal,QScrollBar::sub-page:horizontal {
- background: transparent;
-}
-
-/**********滚动条-垂直**********/
-QScrollBar:vertical {
- width: 20px;
- background: transparent;
- margin-left: 3px;
- margin-right: 3px;
-}
-QScrollBar::handle:vertical {
- width: 20px;
- min-height: 30px;
- background: rgb(68, 69, 73);
- margin-top: 15px;
- margin-bottom: 15px;
-}
-QScrollBar::handle:vertical:hover {
- background: rgb(80, 80, 80);
-}
-QScrollBar::sub-line:vertical {
- height: 15px;
- background: transparent;
- image: url(:/Black/arrowTop);
- subcontrol-position: top;
-}
-QScrollBar::add-line:vertical {
- height: 15px;
- background: transparent;
- image: url(:/Black/arrowBottom);
- subcontrol-position: bottom;
-}
-QScrollBar::sub-line:vertical:hover {
- background: rgb(68, 69, 73);
-}
-QScrollBar::add-line:vertical:hover {
- background: rgb(68, 69, 73);
-}
-QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {
- background: transparent;
-}
-
-QScrollBar#verticalScrollBar:vertical {
- margin-top: 30px;
-}
-
-/**********下拉列表**********/
-QComboBox {
- height: 25px;
- border-radius: 4px;
- border: 1px solid rgb(100, 100, 100);
- background: rgb(72, 72, 73);
-}
-QComboBox:enabled {
- color: rgb(175, 175, 175);
-}
-QComboBox:!enabled {
- color: rgb(155, 155, 155);
-}
-QComboBox:enabled:hover, QComboBox:enabled:focus {
- color: rgb(230, 230, 230);
- background: rgb(68, 69, 73);
-}
-QComboBox::drop-down {
- width: 20px;
- border: none;
- background: transparent;
-}
-QComboBox::drop-down:hover {
- background: rgba(255, 255, 255, 30);
-}
-QComboBox::down-arrow {
- image: url(:/Black/arrowBottom);
-}
-QComboBox::down-arrow:on {
- /**top: 1px;**/
-}
-QComboBox QAbstractItemView {
- border: 1px solid rgb(100, 100, 100);
- background: rgb(68, 69, 73);
- outline: none;
-}
-QComboBox QAbstractItemView::item {
- height: 25px;
- color: rgb(175, 175, 175);
-}
-QComboBox QAbstractItemView::item:selected {
- background: rgba(255, 255, 255, 40);
- color: rgb(230, 230, 230);
-}
-
-/**********进度条**********/
-QProgressBar{
- border: none;
- text-align: center;
- color: white;
- background: rgb(48, 50, 51);
-}
-QProgressBar::chunk {
- background: rgb(0, 160, 230);
-}
-
-QProgressBar#progressBar {
- border: none;
- text-align: center;
- color: white;
- background-color: transparent;
- background-image: url(":/Black/progressBar");
- background-repeat: repeat-x;
-}
-QProgressBar#progressBar::chunk {
- border: none;
- background-color: transparent;
- background-image: url(":/Black/progressBarChunk");
- background-repeat: repeat-x;
-}
-
-/**********复选框**********/
-QCheckBox{
- spacing: 5px;
-}
-QCheckBox:enabled{
- color: rgb(175, 175, 175);
-}
-QCheckBox:enabled:hover{
- color: rgb(200, 200, 200);
-}
-QCheckBox:!enabled{
- color: rgb(155, 155, 155);
-}
-QCheckBox::indicator {
- width: 20px;
- height: 20px;
-}
-QCheckBox::indicator:unchecked {
- image: url(:/Black/checkBox);
-}
-QCheckBox::indicator:unchecked:hover {
- image: url(:/Black/checkBoxHover);
-}
-QCheckBox::indicator:unchecked:pressed {
- image: url(:/Black/checkBoxPressed);
-}
-QCheckBox::indicator:checked {
- image: url(:/Black/checkBoxChecked);
-}
-QCheckBox::indicator:checked:hover {
- image: url(:/Black/checkBoxCheckedHover);
-}
-QCheckBox::indicator:checked:pressed {
- image: url(:/Black/checkBoxCheckedPressed);
-}
-QCheckBox::indicator:indeterminate {
- image: url(:/Black/checkBoxIndeterminate);
-}
-QCheckBox::indicator:indeterminate:hover {
- image: url(:/Black/checkBoxIndeterminateHover);
-}
-QCheckBox::indicator:indeterminate:pressed {
- image: url(:/Black/checkBoxIndeterminatePressed);
-}
-
-/**********单选框**********/
-QRadioButton{
- spacing: 5px;
-}
-QRadioButton:enabled{
- color: rgb(175, 175, 175);
-}
-QRadioButton:enabled:hover{
- color: rgb(200, 200, 200);
-}
-QRadioButton:!enabled{
- color: rgb(155, 155, 155);
-}
-QRadioButton::indicator {
- width: 20px;
- height: 20px;
-}
-QRadioButton::indicator:unchecked {
- image: url(:/Black/radioButton);
-}
-QRadioButton::indicator:unchecked:hover {
- image: url(:/Black/radioButtonHover);
-}
-QRadioButton::indicator:unchecked:pressed {
- image: url(:/Black/radioButtonPressed);
-}
-QRadioButton::indicator:checked {
- image: url(:/Black/radioButtonChecked);
-}
-QRadioButton::indicator:checked:hover {
- image: url(:/Black/radioButtonCheckedHover);
-}
-QRadioButton::indicator:checked:pressed {
- image: url(:/Black/radioButtonCheckedPressed);
-}
-
-/**********输入框**********/
-QLineEdit {
- border-radius: 4px;
- height: 25px;
- border: 1px solid rgb(100, 100, 100);
- background: rgb(72, 72, 73);
-}
-QLineEdit:enabled {
- color: rgb(175, 175, 175);
-}
-QLineEdit:enabled:hover, QLineEdit:enabled:focus {
- color: rgb(230, 230, 230);
-}
-QLineEdit:!enabled {
- color: rgb(155, 155, 155);
-}
-
-/**********文本编辑框**********/
-QTextEdit {
- border: 1px solid rgb(45, 45, 45);
- color: rgb(175, 175, 175);
- background: rgb(57, 58, 60);
-}
-
-/**********滚动区域**********/
-QScrollArea {
- border: 1px solid rgb(45, 45, 45);
- background: rgb(57, 58, 60);
-}
-
-/**********滚动区域**********/
-QWidget#transparentWidget {
- background: transparent;
-}
-
-/**********微调器**********/
-QSpinBox {
- border-radius: 4px;
- height: 24px;
- min-width: 40px;
- border: 1px solid rgb(100, 100, 100);
- background: rgb(68, 69, 73);
-}
-QSpinBox:enabled {
- color: rgb(220, 220, 220);
-}
-QSpinBox:enabled:hover, QLineEdit:enabled:focus {
- color: rgb(230, 230, 230);
-}
-QSpinBox:!enabled {
- color: rgb(65, 65, 65);
- background: transparent;
-}
-QSpinBox::up-button {
- width: 18px;
- height: 12px;
- border-top-right-radius: 4px;
- border-left: 1px solid rgb(100, 100, 100);
- image: url(:/Black/upButton);
- background: rgb(50, 50, 50);
-}
-QSpinBox::up-button:!enabled {
- border-left: 1px solid gray;
- background: transparent;
-}
-QSpinBox::up-button:enabled:hover {
- background: rgb(255, 255, 255, 30);
-}
-QSpinBox::down-button {
- width: 18px;
- height: 12px;
- border-bottom-right-radius: 4px;
- border-left: 1px solid rgb(100, 100, 100);
- image: url(:/Black/downButton);
- background: rgb(50, 50, 50);
-}
-QSpinBox::down-button:!enabled {
- border-left: 1px solid gray;
- background: transparent;
-}
-QSpinBox::down-button:enabled:hover {
- background: rgb(255, 255, 255, 30);
-}
-
-/**********标签**********/
-QLabel#grayLabel {
- color: rgb(175, 175, 175);
-}
-
-QLabel#highlightLabel {
- color: rgb(175, 175, 175);
-}
-
-QLabel#redLabel {
- color: red;
-}
-
-QLabel#grayYaHeiLabel {
- color: rgb(175, 175, 175);
- font-size: 16px;
-}
-
-QLabel#blueLabel {
- color: rgb(0, 160, 230);
-}
-
-QLabel#listLabel {
- color: rgb(0, 160, 230);
-}
-
-QLabel#lineBlueLabel {
- background: rgb(0, 160, 230);
-}
-
-QLabel#graySeperateLabel {
- background: rgb(45, 45, 45);
-}
-
-QLabel#seperateLabel {
- background: rgb(80, 80, 80);
-}
-
-QLabel#radiusBlueLabel {
- border-radius: 15px;
- color: white;
- font-size: 16px;
- background: rgb(0, 160, 230);
-}
-
-QLabel#skinLabel[colorProperty="normal"] {
- color: rgb(175, 175, 175);
-}
-QLabel#skinLabel[colorProperty="highlight"] {
- color: rgb(0, 160, 230);
-}
-
-QLabel#informationLabel {
- qproperty-pixmap: url(:/Black/information);
-}
-
-QLabel#errorLabel {
- qproperty-pixmap: url(:/Black/error);
-}
-
-QLabel#successLabel {
- qproperty-pixmap: url(:/Black/success);
-}
-
-QLabel#questionLabel {
- qproperty-pixmap: url(:/Black/question);
-}
-
-QLabel#warningLabel {
- qproperty-pixmap: url(:/Black/warning);
-}
-
-QLabel#groupLabel {
- color: rgb(0, 160, 230);
- border: 1px solid rgb(0, 160, 230);
- font-size: 15px;
- border-top-color: transparent;
- border-right-color: transparent;
- border-left-color: transparent;
-}
-
-/**********按钮**********/
-QToolButton#nsccButton{
- border: none;
- color: rgb(175, 175, 175);
- background: transparent;
- padding: 10px;
- qproperty-icon: url(:/Black/nscc);
- qproperty-iconSize: 32px 32px;
- qproperty-toolButtonStyle: ToolButtonTextUnderIcon;
-}
-QToolButton#nsccButton:hover{
- color: rgb(217, 218, 218);
- background: rgb(255, 255, 255, 20);
-}
-
-QToolButton#transferButton{
- border: none;
- color: rgb(175, 175, 175);
- background: transparent;
- padding: 10px;
- qproperty-icon: url(:/Black/transfer);
- qproperty-iconSize: 32px 32px;
- qproperty-toolButtonStyle: ToolButtonTextUnderIcon;
-}
-QToolButton#transferButton:hover{
- color: rgb(217, 218, 218);
- background: rgb(255, 255, 255, 20);
-}
-
-/**********按钮**********/
-QPushButton{
- border-radius: 4px;
- border: none;
- width: 75px;
- height: 25px;
-}
-QPushButton:enabled {
- background: rgb(68, 69, 73);
- color: white;
-}
-QPushButton:!enabled {
- background: rgb(100, 100, 100);
- color: rgb(200, 200, 200);
-}
-QPushButton:enabled:hover{
- background: rgb(85, 85, 85);
-}
-QPushButton:enabled:pressed{
- background: rgb(80, 80, 80);
-}
-
-QPushButton#blueButton {
- color: white;
-}
-QPushButton#blueButton:enabled {
- background: rgb(0, 165, 235);
- color: white;
-}
-QPushButton#blueButton:!enabled {
- background: gray;
- color: rgb(200, 200, 200);
-}
-QPushButton#blueButton:enabled:hover {
- background: rgb(0, 180, 255);
-}
-QPushButton#blueButton:enabled:pressed {
- background: rgb(0, 140, 215);
-}
-
-QPushButton#selectButton {
- border: none;
- border-radius: none;
- border-left: 1px solid rgb(100, 100, 100);
- image: url(:/Black/scan);
- background: transparent;
- color: white;
-}
-QPushButton#selectButton:enabled:hover{
- background: rgb(85, 85, 85);
-}
-QPushButton#selectButton:enabled:pressed{
- background: rgb(80, 80, 80);
-}
-
-QPushButton#linkButton {
- background: transparent;
- color: rgb(0, 160, 230);
- text-align:left;
-}
-QPushButton#linkButton:hover {
- color: rgb(20, 185, 255);
- text-decoration: underline;
-}
-QPushButton#linkButton:pressed {
- color: rgb(0, 160, 230);
-}
-
-QPushButton#transparentButton {
- background: transparent;
-}
-
-/*****************标题栏按钮*******************/
-QPushButton#minimizeButton {
- border-radius: none;
- border-bottom-left-radius: 4px;
- border-bottom-right-radius: 4px;
- background: rgb(50, 50, 50);
- image: url(:/Black/minimize);
-}
-QPushButton#minimizeButton:hover {
- background: rgb(60, 60, 60);
- image: url(:/Black/minimizeHover);
-}
-QPushButton#minimizeButton:pressed {
- background: rgb(55, 55, 55);
- image: url(:/Black/minimizePressed);
-}
-
-QPushButton#maximizeButton[maximizeProperty="maximize"] {
- border-radius: none;
- border-bottom-left-radius: 4px;
- border-bottom-right-radius: 4px;
- background: rgb(50, 50, 50);
- image: url(:/Black/maximize);
-}
-QPushButton#maximizeButton[maximizeProperty="maximize"]:hover {
- background: rgb(60, 60, 60);
- image: url(:/Black/maximizeHover);
-}
-QPushButton#maximizeButton[maximizeProperty="maximize"]:pressed {
- background: rgb(55, 55, 55);
- image: url(:/Black/maximizePressed);
-}
-
-QPushButton#maximizeButton[maximizeProperty="restore"] {
- border-radius: none;
- border-bottom-left-radius: 4px;
- border-bottom-right-radius: 4px;
- background: rgb(50, 50, 50);
- image: url(:/Black/restore);
-}
-QPushButton#maximizeButton[maximizeProperty="restore"]:hover {
- background: rgb(60, 60, 60);
- image: url(:/Black/restoreHover);
-}
-QPushButton#maximizeButton[maximizeProperty="restore"]:pressed {
- background: rgb(55, 55, 55);
- image: url(:/Black/restorePressed);
-}
-
-QPushButton#closeButton {
- border-radius: none;
- border-bottom-left-radius: 4px;
- border-bottom-right-radius: 4px;
- background: rgb(50, 50, 50);
- image: url(:/Black/close);
-}
-QPushButton#closeButton:hover {
- background: rgb(60, 60, 60);
- image: url(:/Black/closeHover);
-}
-QPushButton#closeButton:pressed {
- background: rgb(55, 55, 55);
- image: url(:/Black/closePressed);
-}
-
-QPushButton#skinButton {
- border-radius: none;
- border-bottom-left-radius: 4px;
- border-bottom-right-radius: 4px;
- background: rgb(50, 50, 50);
- image: url(:/Black/skin);
-}
-QPushButton#skinButton:hover {
- background: rgb(60, 60, 60);
- image: url(:/Black/skinHover);
-}
-QPushButton#skinButton:pressed {
- background: rgb(55, 55, 55);
- image: url(:/Black/skinPressed);
-}
-
-QPushButton#feedbackButton {
- border-radius: none;
- border-bottom-left-radius: 4px;
- border-bottom-right-radius: 4px;
- background: rgb(50, 50, 50);
- image: url(:/Black/feedback);
-}
-QPushButton#feedbackButton:hover {
- background: rgb(60, 60, 60);
- image: url(:/Black/feedbackHover);
-}
-QPushButton#feedbackButton:pressed {
- background: rgb(55, 55, 55);
- image: url(:/Black/feedbackPressed);
-}
-
-QPushButton#closeTipButton {
- border-radius: none;
- border-image: url(:/Black/close);
- background: transparent;
-}
-QPushButton#closeTipButton:hover {
- border-image: url(:/Black/closeHover);
-}
-QPushButton#closeTipButton:pressed {
- border-image: url(:/Black/closePressed);
-}
-
-QPushButton#changeSkinButton{
- border-radius: 4px;
- border: 2px solid rgb(41, 41, 41);
- background: rgb(51, 51, 51);
-}
-QPushButton#changeSkinButton:hover{
- border-color: rgb(45, 45, 45);
-}
-QPushButton#changeSkinButton:pressed, QPushButton#changeSkinButton:checked{
- border-color: rgb(0, 160, 230);
-}
-
-QPushButton#transferButton {
- padding-left: 5px;
- padding-right: 5px;
- color: white;
- background: rgb(0, 165, 235);
-}
-QPushButton#transferButton:hover {
- background: rgb(0, 180, 255);
-}
-QPushButton#transferButton:pressed {
- background: rgb(0, 140, 215);
-}
-QPushButton#transferButton[iconProperty="left"] {
- qproperty-icon: url(:/Black/left);
-}
-QPushButton#transferButton[iconProperty="right"] {
- qproperty-icon: url(:/Black/right);
-}
-
-QPushButton#openButton {
- border-radius: none;
- image: url(:/Black/open);
- background: transparent;
-}
-QPushButton#openButton:hover {
- image: url(:/Black/openHover);
-}
-QPushButton#openButton:pressed {
- image: url(:/Black/openPressed);
-}
-
-QPushButton#deleteButton {
- border-radius: none;
- image: url(:/Black/delete);
- background: transparent;
-}
-QPushButton#deleteButton:hover {
- image: url(:/Black/deleteHover);
-}
-QPushButton#deleteButton:pressed {
- image: url(:/Black/deletePressed);
-}
-
-QPushButton#menuButton {
- text-align: left center;
- padding-left: 3px;
- color: rgb(175, 175, 175);
- border: 1px solid rgb(100, 100, 100);
- background: rgb(72, 72, 73);
-}
-QPushButton#menuButton::menu-indicator{
- subcontrol-position: right center;
- subcontrol-origin: padding;
- image: url(:/Black/arrowBottom);
- padding-right: 3px;
-}
\ No newline at end of file
diff --git a/QUANTAXIS/QAView/test.py b/QUANTAXIS/QAView/test.py
deleted file mode 100644
index 136bde7c1..000000000
--- a/QUANTAXIS/QAView/test.py
+++ /dev/null
@@ -1,29 +0,0 @@
-import numpy as np
-import pandas as pd
-import matplotlib
-import tushare as ts
-import datetime
-import time
-import talib as ta
-from pandas.tseries.offsets import BDay
-import re
-import os
-import sys
-import QUANTAXIS as QA
-
-
-#wh = QA.Warehouse_Daily(source=QA.DATASOURCE.LOCALFILE)
-
-#wh = QA.Warehouse_Daily(source=QA.DATASOURCE.TUSHARE, start = '2017-01-01', end = "2018-06-01")
-#print(wh)
-#wh.update_realtime()
-
-df = QA.QA_fetch_stock_list_adv()
-dict = df.values
-print(dict)
-for item in dict:
- #print(item)
- if r"00029" in item[0]:
- print(item)
-
-
diff --git a/QUANTAXIS/QAWeb/arphandles.py b/QUANTAXIS/QAWeb/arphandles.py
index c14270128..022ceb3b1 100644
--- a/QUANTAXIS/QAWeb/arphandles.py
+++ b/QUANTAXIS/QAWeb/arphandles.py
@@ -24,6 +24,7 @@
import json
import tornado
+import datetime
from tornado.web import Application, RequestHandler, authenticated
from tornado.websocket import WebSocketHandler
@@ -39,6 +40,9 @@
class MemberHandler(QABaseHandler):
+ """
+ 获得所有的回测member
+ """
def get(self):
"""
采用了get_arguents来获取参数
@@ -51,6 +55,10 @@ def get(self):
# data = [res for res in query_account]
if len(query_account) > 0:
#data = [QA.QA_Account().from_message(x) for x in query_account]
+ warpper=lambda x: str(x) if isinstance(x,datetime.datetime) else x
+ for item in query_account:
+ item['trade_index']=list(map(str,item['trade_index']))
+ item['history']=[list(map(warpper,itemd)) for itemd in item['history']]
self.write({'result': query_account})
else:
@@ -58,6 +66,9 @@ def get(self):
class AccountHandler(QABaseHandler):
+ """
+ 对于某个回测账户
+ """
def get(self):
"""
采用了get_arguents来获取参数
@@ -68,8 +79,14 @@ def get(self):
query_account = QA_fetch_account({'account_cookie': account_cookie})
#data = [QA_Account().from_message(x) for x in query_account]
+
if len(query_account) > 0:
#data = [QA.QA_Account().from_message(x) for x in query_account]
+ warpper=lambda x: str(x) if isinstance(x,datetime.datetime) else x
+ for item in query_account:
+ item['trade_index']=list(map(str,item['trade_index']))
+ item['history']=[list(map(warpper,itemd)) for itemd in item['history']]
+
self.write({'result': query_account})
else:
@@ -77,6 +94,9 @@ def get(self):
class RiskHandler(QABaseHandler):
+ """
+ 回测账户的风险评价
+ """
def get(self):
account_cookie = self.get_argument('account_cookie', default='admin')
diff --git a/QUANTAXIS/QAWeb/backtesthandles.py b/QUANTAXIS/QAWeb/backtesthandles.py
index 0503e1ae7..0115be44f 100644
--- a/QUANTAXIS/QAWeb/backtesthandles.py
+++ b/QUANTAXIS/QAWeb/backtesthandles.py
@@ -38,3 +38,9 @@
from QUANTAXIS.QAWeb.basehandles import QABaseHandler
+"""
+希望做成可以api连接的网页版回测接口
+
+具备websocket实时查看回测状态的功能
+
+"""
\ No newline at end of file
diff --git a/QUANTAXIS/QAWeb/basehandles.py b/QUANTAXIS/QAWeb/basehandles.py
index 83a5f62fe..0e771f460 100644
--- a/QUANTAXIS/QAWeb/basehandles.py
+++ b/QUANTAXIS/QAWeb/basehandles.py
@@ -40,7 +40,9 @@
from QUANTAXIS.QAWeb.util import (APPLICATION_JSON, APPLICATION_XML, TEXT_XML,
convert)
-
+"""
+基础类
+"""
class QABaseHandler(RequestHandler):
@property
def db(self):
diff --git a/setup.py b/setup.py
index a34edad12..3ac1d2cf3 100644
--- a/setup.py
+++ b/setup.py
@@ -68,7 +68,7 @@ def read(fname):
"""
PACKAGES = ["QUANTAXIS", "QUANTAXIS.QAFetch", "QUANTAXIS.QACmd", "QUANTAXIS.QAMarket", 'QUANTAXIS.QAWeb', 'QUANTAXIS.QASetting',
"QUANTAXIS.QAApplication", "QUANTAXIS.QAEngine", "QUANTAXIS.QAData", 'QUANTAXIS.QAData.proto', "QUANTAXIS.QAAnalysis", 'QUANTAXIS.QASelector',
- "QUANTAXIS.QASU", "QUANTAXIS.QAUtil", "QUANTAXIS.QAARP", "QUANTAXIS.QAIndicator", "QUANTAXIS_CRAWLY", "QUANTAXIS.QAView"]
+ "QUANTAXIS.QASU", "QUANTAXIS.QAUtil", "QUANTAXIS.QAARP", "QUANTAXIS.QAIndicator", "QUANTAXIS_CRAWLY"]
"""
包含的包,可以多个,这是一个列表
"""