Skip to content

Commit 6486375

Browse files
author
Build System
committed
'Protobuf files change'
1 parent d6973ed commit 6486375

12 files changed

Lines changed: 103 additions & 56 deletions

src/systemathics/apis/services/tick/v1/tick_book.proto

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,7 @@ syntax = "proto3";
2727
import "google/protobuf/timestamp.proto";
2828

2929
import "systemathics/apis/type/shared/v1/constraints.proto";
30-
import "systemathics/apis/type/shared/v1/mappings.proto";
3130
import "systemathics/apis/type/shared/v1/level.proto";
32-
import "systemathics/apis/type/shared/v1/market_book_updates.proto";
33-
import "systemathics/apis/type/shared/v1/market_fields_updates.proto";
3431
import "systemathics/apis/type/shared/v1/identifier.proto";
3532
import "systemathics/apis/type/shared/v1/keys.proto";
3633
import "systemathics/apis/type/shared/v1/book.proto";

src/systemathics/apis/services/tick/v1/tick_trades.proto

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,7 @@ syntax = "proto3";
2727
import "google/protobuf/timestamp.proto";
2828

2929
import "systemathics/apis/type/shared/v1/constraints.proto";
30-
import "systemathics/apis/type/shared/v1/mappings.proto";
3130
import "systemathics/apis/type/shared/v1/level.proto";
32-
import "systemathics/apis/type/shared/v1/market_book_updates.proto";
33-
import "systemathics/apis/type/shared/v1/market_fields_updates.proto";
3431
import "systemathics/apis/type/shared/v1/identifier.proto";
3532
import "systemathics/apis/type/shared/v1/keys.proto";
3633
import "systemathics/apis/type/shared/v1/trade.proto";

src/systemathics/apis/services/tick/v1/tick_trades_and_book.proto

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,7 @@ syntax = "proto3";
2727
import "google/protobuf/timestamp.proto";
2828

2929
import "systemathics/apis/type/shared/v1/constraints.proto";
30-
import "systemathics/apis/type/shared/v1/mappings.proto";
3130
import "systemathics/apis/type/shared/v1/level.proto";
32-
import "systemathics/apis/type/shared/v1/market_book_updates.proto";
33-
import "systemathics/apis/type/shared/v1/market_fields_updates.proto";
3431
import "systemathics/apis/type/shared/v1/identifier.proto";
3532
import "systemathics/apis/type/shared/v1/keys.proto";
3633
import "systemathics/apis/type/shared/v1/book.proto";

src/systemathics/apis/services/tick/v1/tick_updates.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,6 @@ message TickUpdatesResponse
7575
systemathics.apis.type.shared.v1.MarketBookUpdates book_updates = 4;
7676

7777
// Event source and instrument identifier mapping. It's sent once when streaming begins.
78-
systemathics.apis.type.shared.v1.Mappings mappings = 5;
78+
systemathics.apis.type.shared.v1.Mappings mappings = 5;
7979
}
8080
}

src/systemathics/apis/services/tick/v2/tick_raw.proto

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,9 @@
2424
// <br>- Compare raw provider format data to normalized data
2525
syntax = "proto3";
2626

27-
import "google/protobuf/timestamp.proto";
28-
2927
import "systemathics/apis/type/shared/v1/constraints.proto";
3028
import "systemathics/apis/type/shared/v1/level.proto";
31-
import "systemathics/apis/type/shared/v1/identifier.proto";
29+
import "systemathics/apis/type/shared/v1/identifierandstream.proto";
3230
import "systemathics/apis/type/shared/v1/keys.proto";
3331
import "systemathics/apis/type/shared/v2/raw.proto";
3432

@@ -44,15 +42,12 @@ service TickRawService
4442
// The required inputs to request the TickRawService.
4543
message TickRawRequest
4644
{
47-
// [Mandatory] The instrument identifiers: a list of tickers and exchanges
48-
repeated systemathics.apis.type.shared.v1.Identifier identifiers = 1;
45+
// [Mandatory] The instrument and streams identifiers: a list of tickers and exchanges and streams
46+
repeated systemathics.apis.type.shared.v1.IdentifierAndStream identifiers = 1;
4947

5048
// [Optional] The time constraints used to define the look-back period.
5149
// If empty, then all the available data is retrieved.
5250
systemathics.apis.type.shared.v1.Constraints constraints = 2;
53-
54-
// [Mandatory] The stream level (Level 1 or Level 1 and 2)
55-
systemathics.apis.type.shared.v1.Level level = 3;
5651
}
5752

5853
// Represents the RAW response

src/systemathics/apis/services/tick/v2/tick_updates.proto

Lines changed: 13 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,10 @@
2424
// <br>- Feed best execution reports for a given watchlist over the time
2525
syntax = "proto3";
2626

27-
import "google/protobuf/timestamp.proto";
28-
2927
import "systemathics/apis/type/shared/v1/constraints.proto";
30-
import "systemathics/apis/type/shared/v1/mappings.proto";
28+
import "systemathics/apis/type/shared/v1/keys.proto";
3129
import "systemathics/apis/type/shared/v1/level.proto";
32-
import "systemathics/apis/type/shared/v1/identifier.proto";
30+
import "systemathics/apis/type/shared/v1/identifierandstream.proto";
3331
import "systemathics/apis/type/shared/v2/market_fields_updates.proto";
3432
import "systemathics/apis/type/shared/v2/mbl_market_book_updates.proto";
3533
import "systemathics/apis/type/shared/v2/mbo_market_book_updates.proto";
@@ -46,42 +44,33 @@ service TickUpdatesService
4644
// The required inputs to request the TickUpdatesService.
4745
message TickUpdatesRequest
4846
{
49-
// [Mandatory] The instrument identifier: a ticker and exchange
50-
repeated systemathics.apis.type.shared.v1.Identifier identifiers = 1;
51-
52-
// [Mandatory] Level representing either Trades only(Level 1) or Trades + Book (Level 1 and Level 2)
53-
systemathics.apis.type.shared.v1.Level level = 2;
54-
47+
// [Mandatory] The instrument and streams identifiers: a list of tickers and exchanges and streams
48+
repeated systemathics.apis.type.shared.v1.IdentifierAndStream identifiers = 1;
49+
5550
// [Optional] The time constraints used to define the look-back period.
5651
// If empty, then all the available data is retrieved.
57-
systemathics.apis.type.shared.v1.Constraints constraints = 3;
52+
systemathics.apis.type.shared.v1.Constraints constraints = 2;
5853

5954
// [Optional] The corporate action adjustment, by default the value is set to false
60-
bool adjustment = 4;
55+
bool adjustment = 3;
6156
}
6257

6358
// Contains the tick by tick normalized historical data: event source, timestamp and payload.
6459
message TickUpdatesResponse
65-
{
66-
// Event source: short code for instrument identifier
67-
uint32 event_source = 1;
68-
69-
// Timestamp from the market
70-
google.protobuf.Timestamp time_stamp = 2;
71-
60+
{
7261
// Payload: that can be a mapping (event source and instrument identifier), some fields update or some books update
7362
oneof payload
7463
{
7564
// Some fields update
76-
systemathics.apis.type.shared.v2.MarketFieldsUpdates fields_updates = 3;
65+
systemathics.apis.type.shared.v2.MarketFieldsUpdates fields_updates = 1;
7766

7867
// Some MBL books update
79-
systemathics.apis.type.shared.v2.MblMarketBookUpdates mbl_book_updates = 4;
68+
systemathics.apis.type.shared.v2.MblMarketBookUpdates mbl_book_updates = 2;
8069

8170
// Some MBO books update
82-
systemathics.apis.type.shared.v2.MboMarketBookUpdates mbo_book_updates = 5;
71+
systemathics.apis.type.shared.v2.MboMarketBookUpdates mbo_book_updates = 3;
8372

84-
// Event source and instrument identifier mapping. It's sent once when streaming begins.
85-
systemathics.apis.type.shared.v1.Mappings mappings = 6;
73+
// The mapping data
74+
systemathics.apis.type.shared.v1.Keys mapping = 4;
8675
}
8776
}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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+
// Instrument identifier is built from:
22+
// <br>- An exchange code: MIC
23+
// <br>- A ticker: instrument name given by the exchange
24+
// <br>- An optional provider name if several tick data providers are used
25+
syntax = "proto3";
26+
27+
import "google/protobuf/wrappers.proto";
28+
29+
package systemathics.apis.type.shared.v1;
30+
31+
// Contains the instrument identifier and stream.
32+
message IdentifierAndStream
33+
{
34+
// [Mandatory] Exchange market identifier code (MIC defined in ISO-20022)
35+
string exchange = 1;
36+
37+
// [Mandatory] Ticker name, associated with market idenfier code defines a unique asset
38+
string ticker = 2;
39+
40+
// [Optional] tick data provider name if several tick data providers are available
41+
google.protobuf.StringValue provider = 3;
42+
43+
// [Mandatory]
44+
string stream = 4;
45+
}

src/systemathics/apis/type/shared/v1/mappings.proto

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ message Mapping
3333
systemathics.apis.type.shared.v1.Identifier identifier = 1;
3434
// Memo associated with Identifier
3535
systemathics.apis.type.shared.v1.Memo memo = 2;
36-
// Short name for a memo
37-
uint32 event_source = 3;
36+
// Short name for a memo
37+
uint32 event_source = 3;
3838
}
3939

4040
// Represents several Mapping
4141
message Mappings
4242
{
43-
// An array of Mapping
44-
repeated Mapping table = 1;
43+
// An array of Mapping
44+
repeated Mapping table = 1;
4545
}

src/systemathics/apis/type/shared/v2/market_fields_updates.proto

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

2424

25+
import "google/protobuf/timestamp.proto";
26+
import "google/protobuf/wrappers.proto";
27+
2528
import "systemathics/apis/type/shared/v1/action.proto";
2629
import "systemathics/apis/type/shared/v2/field.proto";
2730

@@ -30,11 +33,17 @@ package systemathics.apis.type.shared.v2;
3033
// Represents market field updates.
3134
message MarketFieldsUpdates
3235
{
33-
// If is a snapshot, previous data must be cleared, otherwise it's incremental
34-
bool is_snapshot = 1;
36+
// The instrument mapping key: short code for instrument identifier.
37+
uint32 mapping = 1;
38+
39+
// Timestamp from the market
40+
google.protobuf.Timestamp time_stamp = 2;
41+
42+
// If set, previous data must be cleared entirely, otherwise current data is an increment on top of previous data
43+
bool reset = 3;
3544

3645
// The market book updates: an array of MarketFieldUpdate objects
37-
repeated MarketFieldUpdate updates = 2;
46+
repeated MarketFieldUpdate updates = 4;
3847
}
3948

4049
// Represents a market field update

src/systemathics/apis/type/shared/v2/mbl_market_book_updates.proto

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

2424

25+
import "google/protobuf/timestamp.proto";
2526
import "google/protobuf/wrappers.proto";
2627

2728
import "systemathics/apis/type/shared/v1/action.proto";
@@ -32,11 +33,17 @@ package systemathics.apis.type.shared.v2;
3233
// Contains MBL market book updates data.
3334
message MblMarketBookUpdates
3435
{
35-
// If is a snapshot, previous data must be cleared, otherwise it's incremental
36-
bool is_snapshot = 1;
36+
// The instrument mapping key: short code for instrument identifier.
37+
uint32 mapping = 1;
38+
39+
// Timestamp from the market
40+
google.protobuf.Timestamp time_stamp = 2;
41+
42+
// If set, previous data must be cleared entirely, otherwise current data is an increment on top of previous data
43+
bool reset = 3;
3744

3845
// The market book updates: an array of MarketBookUpdate objects
39-
repeated systemathics.apis.type.shared.v2.MblMarketBookUpdate updates = 2;
46+
repeated systemathics.apis.type.shared.v2.MblMarketBookUpdate updates = 4;
4047
}
4148

4249
// Represents a MBL market book update.

0 commit comments

Comments
 (0)