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 Dec 3, 2024
1 parent 6ce488e commit 28180ab
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
38 changes: 19 additions & 19 deletions src/systemathics/apis/services/static_data/v1/set_static_data.proto
Original file line number Diff line number Diff line change
Expand Up @@ -40,41 +40,41 @@ package systemathics.apis.services.static_data.v1;
// Called to set static data.
service SetStaticDataService
{
// Creates Option Static data from OTC Streaming
rpc CreateStaticDataOtcStreaming(CreateStaticDataOtcStreamingRequest) returns (StaticDataOtcStreamingResponse)
// Create Cds Index Option Static data
rpc CreateCdsIndexOption(CreateCdsIndexOptionRequest) returns (CdsIndexOptionIdResponse)
{
option (google.api.http) = {
post: "/v1/staticdata/otc_streaming"
};
}


// Get Option Static data from OTC Streaming by Id
rpc GetStaticDataOtcStreaming(SingleStaticDataOtcStreamingRequest) returns (StaticDataOtcStreamingResponse)
// Get Cds Index Option Static data by Id
rpc GetCdsIndexOption(CdsIndexOptionIdRequest) returns (CdsIndexOptionIdResponse)
{
option (google.api.http) = {
post: "/v1/staticdata/otc_streaming/{id}"
};
}

// Get all Option Static data from OTC Streaming
rpc GetAllStaticDataOtcStreaming(google.protobuf.Empty) returns (stream StaticDataOtcStreamingResponse)
// Get all Cds Index Option Static data
rpc GetAllCdsIndexOption(google.protobuf.Empty) returns (stream CdsIndexOptionIdResponse)
{
option (google.api.http) = {
get: "/v1/staticdata/otc_streaming"
};
}

// Update Option Static data from OTC Streaming by Id
rpc UpdateStaticDataOtcStreaming(UpdateStaticDataOtcStreamingRequest) returns (StaticDataOtcStreamingResponse)
// Update Cds Index Option Static data by Id
rpc UpdateCdsIndexOption(UpdateCdsIndexOptionRequest) returns (CdsIndexOptionIdResponse)
{
option (google.api.http) = {
put: "/v1/staticdata/otc_streaming/{id}"
};
}

// Get Option Static data from OTC Streaming by Id
rpc DeleteStaticDataOtcStreaming(SingleStaticDataOtcStreamingRequest) returns (google.protobuf.Empty)
rpc DeleteCdsIndexOption(CdsIndexOptionIdRequest) returns (google.protobuf.Empty)
{
option (google.api.http) = {
delete: "/v1/staticdata/otc_streaming/{id}"
Expand All @@ -83,15 +83,15 @@ service SetStaticDataService
}


message SingleStaticDataOtcStreamingRequest
message CdsIndexOptionIdRequest
{
// [Mandatory] The Id of the static data to delete.
int64 id = 1;
}


// Static data update message message for OTC Streaming data
message UpdateStaticDataOtcStreamingRequest
message UpdateCdsIndexOptionRequest
{
// [Mandatory] The Id of the static data to delete
int64 id = 1;
Expand All @@ -117,8 +117,8 @@ message UpdateStaticDataOtcStreamingRequest
// [Optional] Currency of the option. Set it only if it needs to be modified.
string currency = 8;

// [Optional] Markit Id of the option. Set it only if it needs to be modified.
string markit_id = 9;
// [Optional] Version of the CDS index
int32 version = 9;

// [Optional] FIGI code of the option. Set it only if it needs to be modified.
string figi = 10;
Expand All @@ -131,7 +131,7 @@ message UpdateStaticDataOtcStreamingRequest
}

// Static data creation message for OTC Streaming data
message CreateStaticDataOtcStreamingRequest
message CreateCdsIndexOptionRequest
{
// [Mandatory] Bloomberg Ticker
string ticker = 1;
Expand All @@ -154,8 +154,8 @@ message CreateStaticDataOtcStreamingRequest
// [Mandatory] Currency of the option
string currency = 7;

// [Optional] Markit Id of the option
string markit_id = 8;
// [Mandatory] Version of the CDS index
int32 version = 8;

// [Optional] FIGI code of the option
string figi = 9;
Expand All @@ -168,7 +168,7 @@ message CreateStaticDataOtcStreamingRequest
}


message StaticDataOtcStreamingResponse
message CdsIndexOptionIdResponse
{
// The Id of the static data
int64 id = 1;
Expand Down Expand Up @@ -200,8 +200,8 @@ message StaticDataOtcStreamingResponse
// The Currency of the option
string currency = 10;

// The Markit Id of the option
string markit_id = 11;
// Version of the CDS index
int32 version = 11;

// FIGI code of the option
string figi = 12;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,8 @@ message CdsIndexOptionEntry
google.type.Date expiry = 6;
// The swaption type of the option
SwaptionType swaption_type = 7;
// The markit identifier
string markit_id = 8;
// The cds index version
int32 version = 8;
// The Financial Instrument Global Identifier (FIGI) is an established global standard of the Object Management Group (www.OMG.org, an international non-profit technology standards consortium founded in 1989) and an identification standard adopted by the American National Committee X9. The FIGI standard is issued and distributed by Bloomberg L.P. as a Registration Authority and Certified Provider under the auspice of OMG. The Financial Instrument Global Identifier (FIGI) is a twelve character, alphanumeric identifier. The first 2 characters are upper-case consonants (including "Y"), the third character is the upper-case "G", characters 4 -11 are any upper-case consonant (including "Y") or integer between 0 and 9, and the last character is a check-digit.
string figi = 9;
// the calendar Code
Expand Down

0 comments on commit 28180ab

Please sign in to comment.