Skip to content

Commit

Permalink
feat: update Athena protos and remove Athena CS
Browse files Browse the repository at this point in the history
  • Loading branch information
keivanipchihagh committed Mar 21, 2024
1 parent 40950c4 commit e2e3ff3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 116 deletions.
8 changes: 4 additions & 4 deletions protos/athena/athena.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ import "candlestick_struct.proto";
// GetBacktestRequest
message GetBacktestRequest {
// Backtest configurations.
BacktestConfig config = 1;
Configuration config = 1;
// Candlesticks data.
Candlestick candlesticks = 2;
}

// GetBacktestResponse
message GetBacktestResponse {
// Backtest statistics
// Backtest statistics.
Statistics statistics = 1;
// Backtest orders' history
// Backtest orders' history.
repeated Order orders = 2;
// Backtest trades' history
// Backtest trades' history.
repeated Trade trades = 3;
}

Expand Down
9 changes: 5 additions & 4 deletions protos/athena/athena_struct.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ import "google/protobuf/timestamp.proto";

package athena.v1;

// Config
message BacktestConfig {
// Configuration
// Represents the configurations for the backtest.
message Configuration {
// Commission rate charged by the broker for each trade.
float commission = 1;
// Initial balance for trading.
float cache = 2;
float cash = 2;
// Capital risk limit imposed by the broker.
float capital_risk = 3;
// Indicates whether to trade on open or close.
Expand All @@ -34,7 +35,7 @@ message Order {
// Is order contingent.
bool is_contingent = 6;
// Hash.
string hash = 6;
string hash = 7;
}

// Trade
Expand Down
47 changes: 0 additions & 47 deletions src/rpc/athena/client.py

This file was deleted.

61 changes: 0 additions & 61 deletions src/rpc/athena/server.py

This file was deleted.

0 comments on commit e2e3ff3

Please sign in to comment.