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 Oct 1, 2024
1 parent 8f860ae commit 31b04c7
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/systemathics/apis/services/static_data/v1/static_data.proto
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,12 @@ message StaticDataRequest

// [Optional] Cds Reference Entity Data (RED) Pair Code
google.protobuf.StringValue cds_red_pair_code = 46;

// [Optional] Swaption type for option (Payer/Receiver)
SwaptionType swaption_type = 47;

// [Optional] Markit Id for option from OTCStreaming
google.protobuf.StringValue markit_id = 48;
}


Expand Down Expand Up @@ -884,6 +890,14 @@ message OptionEntry
systemathics.apis.type.shared.v1.OptionType option_type = 9;
// Specific values for the option: The way the option can be exercised: American, European or Bermudan.
ExerciseType exercise_type = 10;
// Specific values for the swaption: Indicates whether the swaption is payer or receiver.
SwaptionType swaption_type = 11;
// Mapping: The Markit id
string markit_id = 12;
// Mapping: 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 = 13;
// General information: The calendar code for that instrument.
string calendar = 14;
}

// Contains the reference data for bonds.
Expand Down Expand Up @@ -1246,6 +1260,7 @@ enum FrequencyType
FREQUENCY_TYPE_BIANNUAL = 8;
}


// Contains the option exercise types : Determines when, how, and under what circumstances, the option holder may exercise it.
enum ExerciseType
{
Expand Down Expand Up @@ -1511,3 +1526,13 @@ enum DayCount
DAY_COUNT_30M_360 = 997;

}


enum SwaptionType
{
SWAPTION_TYPE_UNSPECIFIED = 0;

SWAPTION_TYPE_PAYER = 1;

SWAPTION_TYPE_RECEIVER = 2;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
// Copyright (c) 2021 Systemathics
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

// Reference data encompasses a wide range of specification data about:
// <br>- financial instrument such as asset class, symbol, maturity, etc.
// <br>- counterparties such as issuer information.
// <br>- pricing such as open, high low and close prices.
// <br>- The challenge with reference data is that it tends to be sourced from multiple sources: internal, counterparties and providers.
// <br>- Reference data dedicated service is a result of various data sources and fields sourcing, validation, cross-checking and normalization.
syntax = "proto3";


import "google/api/annotations.proto";
import "google/type/date.proto";
import "google/protobuf/empty.proto";

import "systemathics/apis/services/static_data/v1/static_data.proto";

package systemathics.apis.services.static_data.v1;

// Called to request reference data.
service StaticDataSetService
{
// Gets reference data
rpc CreateStaticDataOtcStreaming(StaticDataOtcStreamingRequest) returns (google.protobuf.Empty)
{
option (google.api.http) = {
get: "/v1/staticdata/otc_streaming"
};
}
}

message StaticDataOtcStreamingRequest
{
string ticker = 1;

string provider = 2;

double strike = 3;

SwaptionType swaption_type = 4;

google.type.Date expiry = 5;

string underlying_ticker = 6;

string currency = 7;

string markit_id = 8;

string figi = 9;

string calendar = 10;
}

0 comments on commit 31b04c7

Please sign in to comment.