-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add snake case json tags to the market data stream structs (#257)
- Loading branch information
Showing
3 changed files
with
1,942 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -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"` | ||
|
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 |
---|---|---|
|
@@ -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 | ||
|
Oops, something went wrong.