Skip to content

Commit

Permalink
Add snake case json tags to the market data stream structs
Browse files Browse the repository at this point in the history
  • Loading branch information
gnvk committed Aug 31, 2023
1 parent 8187a4e commit b3f4a02
Show file tree
Hide file tree
Showing 3 changed files with 1,942 additions and 1 deletion.
2 changes: 1 addition & 1 deletion alpaca/entities.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
)

//go:generate go install github.com/mailru/easyjson/[email protected]
//go:generate easyjson -all -lower_camel_case $GOFILE
//go:generate easyjson -all -snake_case $GOFILE

type Account struct {
ID string `json:"id"`
Expand Down
3 changes: 3 additions & 0 deletions marketdata/stream/entities.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import (
"github.com/alpacahq/alpaca-trade-api-go/v3/marketdata"
)

//go:generate go install github.com/mailru/easyjson/[email protected]
//go:generate easyjson -all -snake_case $GOFILE

// Trade is a stock trade that happened on the market
type Trade struct {
ID int64
Expand Down
Loading

0 comments on commit b3f4a02

Please sign in to comment.