-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b080d71
commit 50dce8e
Showing
5 changed files
with
49 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
syntax = "proto3"; | ||
|
||
package athena.v1; | ||
|
||
import "athena_struct.proto"; | ||
import "candlestick_struct.proto"; | ||
|
||
// [Request] RequestBacktest | ||
// broker: Broker properties. | ||
// historicals: Historical data. | ||
message RequestBacktest { | ||
Broker broker = 1; | ||
Historical historicals = 2; | ||
} | ||
|
||
// [Response] ResponseBacktest | ||
message ResponseBacktest { | ||
int64 id = 1; | ||
} | ||
|
||
service Athena { | ||
rpc Backtest (RequestBacktest) returns (ResponseBacktest); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
syntax = "proto3"; | ||
|
||
package athena.v1; | ||
|
||
// Broker configuration. | ||
// commission: Commission rate charged by the broker for each trade. | ||
// cache: Initial balance for trading. | ||
// capital_risk: Capital risk limit imposed by the broker. | ||
// trade_on_close: Indicates whether to trade on open or close. | ||
// exclusive_orders: Indicates whether the broker accepts exclusive orders. | ||
message Broker { | ||
float commission = 1; | ||
float cache = 2; | ||
float capital_risk = 3; | ||
bool trade_on_close = 4; | ||
bool exclusive_orders = 5; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.