syntax = "proto3";

package alt.v1;

option go_package = "git.toki-labs.com/toki/alt/packages/contracts/gen/go/alt/v1;altv1";

message Decimal {
  string value = 1;
}

enum Market {
  MARKET_UNSPECIFIED = 0;
  MARKET_KR = 1;
  MARKET_US = 2;
}

enum Venue {
  VENUE_UNSPECIFIED = 0;
  VENUE_KRX = 1;
  VENUE_NASDAQ = 2;
  VENUE_NYSE = 3;
}

enum Currency {
  CURRENCY_UNSPECIFIED = 0;
  CURRENCY_KRW = 1;
  CURRENCY_USD = 2;
}

enum AssetType {
  ASSET_TYPE_UNSPECIFIED = 0;
  ASSET_TYPE_EQUITY = 1;
  ASSET_TYPE_ETF = 2;
}

enum Timeframe {
  TIMEFRAME_UNSPECIFIED = 0;
  TIMEFRAME_DAILY = 1;
  TIMEFRAME_MINUTE_1 = 2;
  TIMEFRAME_MINUTE_5 = 3;
}

message ErrorInfo {
  string code = 1;
  string message = 2;
}

message HelloRequest {
  string client_name = 1;
  string client_version = 2;
  string alt_protocol_version = 3;
}

message HelloResponse {
  string server_name = 1;
  string server_version = 2;
  string alt_protocol_version = 3;
  repeated string capabilities = 4;
}
