Skip to content

Commit

Permalink
feat: update bool types with warppers
Browse files Browse the repository at this point in the history
  • Loading branch information
keivanipchihagh committed Mar 21, 2024
1 parent 66a4d99 commit 73ca056
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -160,4 +160,5 @@ cython_debug/
#.idea/

# other
protos/**/*.py
protos/**/*_pb2.py
protos/**/*_pb2_grpc.py
2 changes: 2 additions & 0 deletions protos/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import sys
sys.path.append('protos')
7 changes: 4 additions & 3 deletions protos/athena/athena_struct.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
syntax = "proto3";

import "google/protobuf/timestamp.proto";
import "google/protobuf/wrappers.proto";

package athena.v1;

Expand All @@ -14,9 +15,9 @@ message Configuration {
// Capital risk limit imposed by the broker.
float capital_risk = 3;
// Indicates whether to trade on open or close.
bool trade_on_close = 4;
google.protobuf.BoolValue trade_on_close = 4;
// Indicates whether the broker accepts exclusive orders.
bool exclusive_orders = 5;
google.protobuf.BoolValue exclusive_orders = 5;
}

// Order
Expand All @@ -33,7 +34,7 @@ message Order {
// Take-profit price.
float take_profit = 5;
// Is order contingent.
bool is_contingent = 6;
google.protobuf.BoolValue is_contingent = 6;
// Hash.
string hash = 7;
}
Expand Down

0 comments on commit 73ca056

Please sign in to comment.