Skip to content

Commit

Permalink
'Protobuf files change'
Browse files Browse the repository at this point in the history
  • Loading branch information
Build System committed Nov 13, 2024
1 parent 68db42a commit 9eebd78
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ syntax = "proto3";
import "google/protobuf/empty.proto";
import "google/api/annotations.proto";
import "google/type/date.proto";
import "google/protobuf/struct.proto";

import "systemathics/apis/type/shared/v1/asset.proto";
import "systemathics/apis/type/shared/v1/identifier.proto";
Expand Down
16 changes: 8 additions & 8 deletions src/systemathics/apis/services/tick/v2/get_tick.proto
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ service TickService


// Gets tick historical data timeseries by identifier using streaming
rpc TickMatrixRowStream(TickRequest) returns (stream TickMatrixRowStreamResponse)
rpc TickVectorStream(TickRequest) returns (stream TickVectorStreamResponse)
{
option (google.api.http) = {
get: "/v2/tick_matrix_row/"
get: "/v2/tick_vector/"
};
}

Expand Down Expand Up @@ -145,15 +145,15 @@ message TickScalarStreamResponse


// Represents the tick scalar stream response.
message TickMatrixRowStreamResponse
message TickVectorStreamResponse
{
oneof payload
{
// The tick fields. Issued in the first frame.
TickStreamFields info = 1;

// The mapping data. Issued in the following frames.
TickMatrixRowStreamItem data = 2;
TickVectorStreamItem data = 2;
}
}

Expand All @@ -176,12 +176,12 @@ message TickScalarStreamItem
}

// Represents the data part of a tick scalar stream response.
message TickMatrixRowStreamItem
message TickVectorStreamItem
{
// The data date.
google.type.DateTime datetime = 1;

// The matrix row key
// The vector key
string key = 2;

// The data. Lenght of the array is the same as the fields.
Expand Down Expand Up @@ -212,8 +212,8 @@ message TickFieldsResponse
// The collection containing items values for scalars.
repeated TickFieldsItemResponse scalars = 1;

// The collection containing items values for matrix rows.
repeated TickFieldsItemResponse matrix_rows = 2;
// The collection containing items values for vectors.
repeated TickFieldsItemResponse vectors = 2;
}

// Represents a links between an asset and a provider.
Expand Down
34 changes: 17 additions & 17 deletions src/systemathics/apis/services/tick/v2/set_tick.proto
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ service SetTickService
};
}

// Sets tick matrix row timeseries.
rpc WriteTickMatrixRow(stream SetTickMatrixRowRequest) returns (google.protobuf.Empty)
// Sets tick vector timeseries.
rpc WriteTickVector(stream SetTickVectorRequest) returns (google.protobuf.Empty)
{
option (google.api.http) = {
post: "/v2/tick_matrix_row"
post: "/v2/tick_vector"
};
}

Expand All @@ -61,11 +61,11 @@ service SetTickService
};
}

// Update tick matrix rows timeseries.
rpc UpdateTickMatrixRow(stream SetTickMatrixRowRequest) returns (google.protobuf.Empty)
// Update tick vectors timeseries.
rpc UpdateTickVector(stream SetTickVectorRequest) returns (google.protobuf.Empty)
{
option (google.api.http) = {
put: "/v2/tick_matrix_row"
put: "/v2/tick_vector"
};
}

Expand All @@ -78,10 +78,10 @@ service SetTickService
}

// Delete tick scalar timeseries.
rpc DeleteTickMatrixRow(DeleteTickMatrixRowRequest) returns (google.protobuf.Empty)
rpc DeleteTickVector(DeleteTickVectorRequest) returns (google.protobuf.Empty)
{
option (google.api.http) = {
delete: "/v2/tick_matrix_row"
delete: "/v2/tick_vector"
};
}
}
Expand All @@ -101,15 +101,15 @@ message SetTickScalarRequest
}

// The required input to request the SetTickScalar endpoint
message SetTickMatrixRowRequest
message SetTickVectorRequest
{
oneof payload
{
// The tick info
SetTickInfo info = 1;

// The mapping data
SetTickMatrixRowData data = 2;
SetTickVectorData data = 2;
}
}

Expand All @@ -128,7 +128,7 @@ message DeleteTickScalarRequest


// The required input to request DeleteTickScalar.
message DeleteTickMatrixRowRequest
message DeleteTickVectorRequest
{
// [Mandatory] The instrument identifiers: a bloomberg ticker and an asset type
systemathics.apis.type.shared.v1.Identifier identifier = 1;
Expand All @@ -137,7 +137,7 @@ message DeleteTickMatrixRowRequest
repeated string fields = 2;

// [Mandatory] The keys to be deleted.
repeated MatrixRowKey keys = 3;
repeated VectorKey keys = 3;
}

// The required input to request the GetTickByDate endpoint
Expand All @@ -160,23 +160,23 @@ message SetTickScalarData
repeated double data = 2;
}

// Represent the key for a matrix row.
message MatrixRowKey {
// Represent the key for a vector.
message VectorKey {
// [Mandatory] The date used to request data.
google.type.DateTime datetime = 1;

// [Mandatory] The matrix key.
// [Mandatory] The vector key.
string key = 2;
}


// Represent the data to be added to the data scalar timeseries.
message SetTickMatrixRowData
message SetTickVectorData
{
// [Mandatory] The date used to request data.
google.type.DateTime datetime = 1;

// [Mandatory] The matrix key.
// [Mandatory] The vector key.
string key = 2;

// [Mandatory] The data.
Expand Down

0 comments on commit 9eebd78

Please sign in to comment.