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 May 24, 2024
1 parent 4b40051 commit 7598634
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ syntax = "proto3";

import "google/api/annotations.proto";

import "systemathics/apis/services/static_data/v1/static_data.proto";
import "systemathics/apis/type/shared/v1/asset.proto";

import "systemathics/apis/services/daily/v1/daily_bars.proto";
import "systemathics/apis/services/daily/v1/daily_prices.proto";
Expand Down Expand Up @@ -56,7 +56,7 @@ service ReferenceService
message ReferenceRequest
{
// The asset class type
systemathics.apis.services.static_data.v1.AssetType asset_type = 1;
systemathics.apis.type.shared.v1.AssetType asset_type = 1;

// The ticker code
string ticker = 2;
Expand Down
38 changes: 2 additions & 36 deletions src/systemathics/apis/services/static_data/v1/static_data.proto
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import "google/protobuf/wrappers.proto";
import "google/protobuf/duration.proto";
import "google/type/date.proto";

import "systemathics/apis/type/shared/v1/asset.proto";
import "systemathics/apis/type/shared/v1/identifier.proto";

package systemathics.apis.services.static_data.v1;
Expand All @@ -52,7 +53,7 @@ service StaticDataService
message StaticDataRequest
{
// [Optional] Asset Type
AssetType asset_type = 1;
systemathics.apis.type.shared.v1.AssetType asset_type = 1;

// [Optional] Define the first element index to be retrieved
google.protobuf.Int32Value start = 2;
Expand Down Expand Up @@ -1098,42 +1099,7 @@ message TickSize
double tick = 2;
}

// Contains the asset type for the reference data request.
enum AssetType
{
// Not specified ?
ASSET_TYPE_UNSPECIFIED = 0;

// Search on all asset types
ASSET_TYPE_ALL = 1;

// Search only on equities
ASSET_TYPE_EQUITY = 2;

// Search only on futures
ASSET_TYPE_FUTURE = 3;

// Search only on Exchange Traded Fund
ASSET_TYPE_ETF = 4;

// Search only on Index
ASSET_TYPE_INDEX = 5;

// Search only on Crypto currencies
ASSET_TYPE_CRYPTO = 6;

// Search only on Forex pairs
ASSET_TYPE_FOREX = 7;

// Search only on options
ASSET_TYPE_OPTION = 8;

// Search only on bonds
ASSET_TYPE_BOND = 9;

// Search only on cds
ASSET_TYPE_CDS = 10;
}

// Contains the frequency types.
enum FrequencyType
Expand Down
63 changes: 63 additions & 0 deletions src/systemathics/apis/type/shared/v1/asset.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
// 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.


// The asset type
syntax = "proto3";


package systemathics.apis.type.shared.v1;

// Contains all asset types for the static data request.
enum AssetType
{
// Not specified ?
ASSET_TYPE_UNSPECIFIED = 0;

// Search on all asset types
ASSET_TYPE_ALL = 1;

// Search only on equities
ASSET_TYPE_EQUITY = 2;

// Search only on futures
ASSET_TYPE_FUTURE = 3;

// Search only on Exchange Traded Fund
ASSET_TYPE_ETF = 4;

// Search only on Index
ASSET_TYPE_INDEX = 5;

// Search only on Crypto currencies
ASSET_TYPE_CRYPTO = 6;

// Search only on Forex pairs
ASSET_TYPE_FOREX = 7;

// Search only on options
ASSET_TYPE_OPTION = 8;

// Search only on bonds
ASSET_TYPE_BOND = 9;

// Search only on cds
ASSET_TYPE_CDS = 10;
}
5 changes: 5 additions & 0 deletions src/systemathics/apis/type/shared/v1/identifier.proto
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ syntax = "proto3";

import "google/protobuf/wrappers.proto";

import "systemathics/apis/type/shared/v1/asset.proto";

package systemathics.apis.type.shared.v1;

// Contains the instrument identifier.
Expand All @@ -39,4 +41,7 @@ message Identifier

// Optional provider tick data name if several tick data providers are used
google.protobuf.StringValue provider = 3;

// Asset of the identifier
systemathics.apis.type.shared.v1.AssetType asset_type = 4;
}

0 comments on commit 7598634

Please sign in to comment.