Skip to content

Commit

Permalink
feat(indicators): calculate sma
Browse files Browse the repository at this point in the history
  • Loading branch information
h-varmazyar committed Jan 10, 2024
1 parent cca5aa7 commit eeac38a
Show file tree
Hide file tree
Showing 41 changed files with 4,765 additions and 469 deletions.
200 changes: 86 additions & 114 deletions services/chipmunk/api/proto/candle.pb.go

Large diffs are not rendered by default.

7 changes: 2 additions & 5 deletions services/chipmunk/api/proto/src/candle.proto
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
syntax = "proto3";
package chipmunkApi;
option go_package = "github.com/h-varmazyar/Gate/services/chipmunk/api/proto";
import "services/chipmunk/api/proto/src/indicator.proto";
import "api/proto/src/misc.proto";

service CandleService {
Expand Down Expand Up @@ -30,12 +29,10 @@ message Candle {
double Low = 9;
// @inject_tag: json:"id"
uint64 ID = 10;
// @inject_tag: json:"indicator_values"
map<string, indicatorValue> IndicatorValues = 11; // key is indicator id
// @inject_tag: json:"market_id"
string MarketID = 12;
string MarketID = 11;
// @inject_tag: json:"resolution_id"
string ResolutionID = 13;
string ResolutionID = 12;
}

message Candles {
Expand Down
135 changes: 0 additions & 135 deletions services/chipmunk/api/proto/src/indicator.proto

This file was deleted.

Loading

0 comments on commit eeac38a

Please sign in to comment.