Skip to content

Commit

Permalink
Liquidate all positions response format
Browse files Browse the repository at this point in the history
fixes #281
  • Loading branch information
sai-g authored Jun 7, 2024
2 parents 2944366 + 2f14f63 commit c4ac1dc
Show file tree
Hide file tree
Showing 4 changed files with 391 additions and 210 deletions.
9 changes: 9 additions & 0 deletions alpaca/entities.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,3 +368,12 @@ func (e *APIError) Error() string {
}
return fmt.Sprintf("%s (HTTP %d)", e.Message, e.StatusCode)
}

//easyjson:json
type closeAllPositionsSlice []closeAllPositionsResponse

type closeAllPositionsResponse struct {
Symbol string `json:"symbol"`
Status int `json:"status"`
Body json.RawMessage `json:"body,omitempty"`
}
Loading

0 comments on commit c4ac1dc

Please sign in to comment.