Skip to content

Commit 0c89adf

Browse files
author
Build System
committed
'Protobuf files change'
1 parent 9f6abc4 commit 0c89adf

4 files changed

Lines changed: 71 additions & 39 deletions

File tree

src/systemathics/apis/services/static_data/v1/static_data.proto

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ syntax = "proto3";
2929

3030
import "google/protobuf/wrappers.proto";
3131
import "google/type/date.proto";
32+
import "google/protobuf/duration.proto";
33+
3234
import "systemathics/apis/type/shared/v1/identifier.proto";
3335

3436
package systemathics.apis.services.static_data.v1;
@@ -61,11 +63,11 @@ message StaticDataRequest
6163
// [Optional] Future category
6264
google.protobuf.StringValue future_category = 6;
6365

64-
// [Optional] Crypto currency (base)
65-
google.protobuf.StringValue crypto_currency = 7;
66+
// [Optional] Crypto base currency
67+
google.protobuf.StringValue crypto_base_currency = 7;
6668

67-
// [Optional] Crypto currency 2 (quote)
68-
google.protobuf.StringValue crypto_currency2 = 8;
69+
// [Optional] Crypto quote currency
70+
google.protobuf.StringValue crypto_quote_currency = 8;
6971

7072
// [Optional] Equity sector
7173
google.protobuf.StringValue equity_sector = 9;
@@ -125,9 +127,9 @@ message EquityEntry
125127
repeated string index = 9;
126128

127129
// Trading hours: the open time (continuous trading)
128-
string open = 10;
130+
google.protobuf.Duration open = 10;
129131
// Trading hours: the close time (continuous trading)
130-
string close = 11;
132+
google.protobuf.Duration close = 11;
131133
// Trading hours: the time zone
132134
string time_zone = 12;
133135

@@ -205,9 +207,9 @@ message EtfEntry
205207
repeated string index = 9;
206208

207209
// Trading hours: the open time (continuous trading)
208-
string open = 10;
210+
google.protobuf.Duration open = 10;
209211
// Trading hours: the close time (continuous trading)
210-
string close = 11;
212+
google.protobuf.Duration close = 11;
211213
// Trading hours: the time zone
212214
string time_zone = 12;
213215

@@ -285,9 +287,9 @@ message FutureEntry
285287
repeated string index = 9;
286288

287289
// Trading hours: the open time (continuous trading)
288-
string open = 10;
290+
google.protobuf.Duration open = 10;
289291
// Trading hours: the close time (continuous trading)
290-
string close = 11;
292+
google.protobuf.Duration close = 11;
291293
// Trading hours: the time zone
292294
string time_zone = 12;
293295

@@ -358,9 +360,9 @@ message IndexEntry
358360
repeated string index = 9;
359361

360362
// Trading hours: the open time (continuous trading)
361-
string open = 10;
363+
google.protobuf.Duration open = 10;
362364
// Trading hours: the close time (continuous trading)
363-
string close = 11;
365+
google.protobuf.Duration close = 11;
364366
// Trading hours: the time zone
365367
string time_zone = 12;
366368

@@ -409,7 +411,7 @@ message CryptoEntry
409411
// General information: the full name
410412
string name = 5;
411413
// General information: the base currency code (ISO 4217)
412-
string currency = 6;
414+
string base_currency = 6;
413415
// General information: the country code (ISO 3166)
414416
string country = 7;
415417
// General information: the tick size rule table
@@ -418,9 +420,9 @@ message CryptoEntry
418420
repeated string index = 9;
419421

420422
// Trading hours: the open time (continuous trading)
421-
string open = 10;
423+
google.protobuf.Duration open = 10;
422424
// Trading hours: the close time (continuous trading)
423-
string close = 11;
425+
google.protobuf.Duration close = 11;
424426
// Trading hours: the time zone
425427
string time_zone = 12;
426428

@@ -452,9 +454,9 @@ message CryptoEntry
452454
string figic = 24;
453455

454456
// Specific values for the crypto: the quote currency code
455-
string currency2 = 25;
456-
// Specific values for the crypto: the consensus mechanisms (POW, POS, DPOS)
457-
string consensus = 26;
457+
string quote_currency = 25;
458+
// Specific values for the crypto: the consensus mechanisms array (POW, POS, DPOS)
459+
repeated string consensus = 26;
458460
// Specific values for the crypto: the description of the crypto
459461
string description = 27;
460462
// Specific values for the crypto: the issue date of the crypto

src/systemathics/apis/services/tick_analytics/v1/tick_trade_conditions.proto

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import "google/protobuf/duration.proto";
2626

2727
import "systemathics/apis/type/shared/v1/constraints.proto";
2828
import "systemathics/apis/type/shared/v1/identifier.proto";
29+
import "systemathics/apis/type/shared/v1/condition.proto";
2930

3031
package systemathics.apis.services.tick_analytics.v1;
3132

@@ -68,10 +69,14 @@ message TickTradeConditionsResponse
6869
// Tick count of the conditions
6970
int64 count = 3;
7071

72+
// The trading condition description
73+
repeated systemathics.apis.type.shared.v1.Condition description = 4;
74+
7175
// The trade conditions items
72-
repeated TickTradeConditionData data = 4;
76+
repeated TickTradeConditionData data = 5;
7377
}
7478

79+
// The trade condition statistics for a given trading condition value
7580
message TickTradeConditionData
7681
{
7782
// The trading condition value

src/systemathics/apis/services/tick_conditions/v1/tick_conditions.proto

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
syntax = "proto3";
2323

2424
import "systemathics/apis/type/shared/v1/identifier.proto";
25+
import "systemathics/apis/type/shared/v1/condition.proto";
2526

2627
package systemathics.apis.services.tick_conditions.v1;
2728

@@ -52,24 +53,5 @@ message TickConditionsRequest
5253
message TickConditionsResponse
5354
{
5455
// The conditions: an array of Condition objects
55-
repeated Condition data = 1;
56-
}
57-
58-
// Contains the tick trading conditions's data: value, description, regular and auction.
59-
message Condition
60-
{
61-
// The trading condition value
62-
string value = 1;
63-
64-
// The trading condition description
65-
string description = 2;
66-
67-
// The trading condition comment
68-
string comment = 3;
69-
70-
// Is regular market condition
71-
bool regular = 4;
72-
73-
// Is auction market condition
74-
bool auction = 5;
56+
repeated systemathics.apis.type.shared.v1.Condition data = 1;
7557
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
// Copyright (c) 2021 Systemathics
2+
//
3+
// Permission is hereby granted, free of charge, to any person obtaining a copy
4+
// of this software and associated documentation files (the "Software"), to deal
5+
// in the Software without restriction, including without limitation the rights
6+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
// copies of the Software, and to permit persons to whom the Software is
8+
// furnished to do so, subject to the following conditions:
9+
//
10+
// The above copyright notice and this permission notice shall be included in all
11+
// copies or substantial portions of the Software.
12+
//
13+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19+
// SOFTWARE.
20+
21+
// The trading conditions
22+
syntax = "proto3";
23+
24+
package systemathics.apis.type.shared.v1;
25+
26+
// Contains the tick trading conditions's data: value, description, regular and auction.
27+
message Condition
28+
{
29+
// The trading condition value
30+
string value = 1;
31+
32+
// The trading condition description
33+
string description = 2;
34+
35+
// The trading condition comment
36+
string comment = 3;
37+
38+
// Is regular market condition
39+
bool regular = 4;
40+
41+
// Is auction market condition
42+
bool auction = 5;
43+
}

0 commit comments

Comments
 (0)