Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ COMPOSE=docker compose -p eye --env-file deploy/.env
COMPOSE_FILE=deploy/compose.yaml

.PHONY: gen go-gen up debug down logs clean buf-gen docs-api \
test test-unit test-integration schema-apply schema-diff \
test test-unit test-integration test-smoke schema-apply schema-diff \
lint vet check

# Generate all code
Expand Down Expand Up @@ -50,6 +50,13 @@ test-integration:
@echo "Running integration tests..."
go test -v -p 1 -tags=integration ./internal/store/postgres/...

# Run smoke tests against the live compose stack.
# Starts eye-dev (and its deps postgres + migrate) automatically via depends_on.
# API keys come from deploy/secrets.env. Binance always runs; CoinGecko/Moralis need keys.
test-smoke:
$(COMPOSE) -f $(COMPOSE_FILE) --profile default --profile test run --rm \
eye-test go test -v -p 1 -tags=smoke -timeout 120s ./test/smoke/...

# Atlas: apply schema to dev database (uses compose migrate service — no env vars needed)
schema-apply:
$(COMPOSE) -f $(COMPOSE_FILE) run --rm migrate
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/api/v1/automation.pb.go → api/v1/automation.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/v1/automation.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import "google/protobuf/field_mask.proto";
import "google/protobuf/struct.proto";
import "google/api/annotations.proto";

option go_package = "github.com/foxcool/greedy-eye/internal/api/v1;apiv1";
option go_package = "github.com/foxcool/greedy-eye/api/v1;apiv1";

// =============================================================================
// TYPES
Expand Down
53 changes: 27 additions & 26 deletions internal/api/v1/marketdata.pb.go → api/v1/marketdata.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 8 additions & 7 deletions api/v1/marketdata.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import "google/protobuf/timestamp.proto";
import "google/protobuf/field_mask.proto";
import "google/api/annotations.proto";

option go_package = "github.com/foxcool/greedy-eye/internal/api/v1;apiv1";
option go_package = "github.com/foxcool/greedy-eye/api/v1;apiv1";

// =============================================================================
// TYPES
Expand Down Expand Up @@ -45,13 +45,14 @@ message Price {
// Examples: "1m", "5m", "1h", "4h", "1d", "tick", "latest".
string interval = 5;
uint32 decimals = 6;
int64 last = 7;
// Prices are raw integers scaled by `decimals`, sent as decimal strings (precision-safe).
string last = 7;
// OHLCV data - applicable when 'interval' represents a standard candle type.
optional int64 open = 8;
optional int64 high = 9;
optional int64 low = 10;
optional int64 close = 11;
optional int64 volume = 12;
optional string open = 8;
optional string high = 9;
optional string low = 10;
optional string close = 11;
optional string volume = 12;
google.protobuf.Timestamp timestamp = 13;
}

Expand Down
65 changes: 40 additions & 25 deletions internal/api/v1/portfolio.pb.go → api/v1/portfolio.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading