-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6fa817c
commit 0eca1b4
Showing
14 changed files
with
694 additions
and
380 deletions.
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 |
---|---|---|
|
@@ -10,4 +10,4 @@ jobs: | |
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v2 | ||
with: | ||
version: v1.54.2 | ||
version: v1.59.1 |
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
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
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package tnkbroker | ||
|
||
import ( | ||
"github.com/russianinvestments/invest-api-go-sdk/investgo" | ||
pb "github.com/russianinvestments/invest-api-go-sdk/proto" | ||
) | ||
|
||
// nolint: lll | ||
// | ||
//go:generate docker run --rm -v ${PWD}:/app -w /app vektra/mockery --name ordersServiceClient --inpackage --case snake | ||
type ordersServiceClient interface { | ||
PostOrder(req *investgo.PostOrderRequest) (*investgo.PostOrderResponse, error) | ||
GetOrderState(accountID, orderID string, priceType pb.PriceType) (*investgo.GetOrderStateResponse, error) | ||
} | ||
|
||
// nolint: lll | ||
// | ||
//go:generate docker run --rm -v ${PWD}:/app -w /app vektra/mockery --name stopOrdersServiceClient --inpackage --case snake | ||
type stopOrdersServiceClient interface { | ||
PostStopOrder(req *investgo.PostStopOrderRequest) (*investgo.PostStopOrderResponse, error) | ||
CancelStopOrder(accountID, stopOrderID string) (*investgo.CancelStopOrderResponse, error) | ||
GetStopOrders(accountID string) (*investgo.GetStopOrdersResponse, error) | ||
} | ||
|
||
// nolint: lll | ||
// | ||
//go:generate docker run --rm -v ${PWD}:/app -w /app vektra/mockery --name ordersStreamClient --inpackage --case snake | ||
type ordersStreamClient interface { | ||
TradesStream(accounts []string) (*investgo.TradesStream, error) | ||
} | ||
|
||
// nolint: lll | ||
// | ||
//go:generate docker run --rm -v ${PWD}:/app -w /app vektra/mockery --name marketDataServiceClient --inpackage --case snake | ||
type marketDataServiceClient interface { | ||
GetLastPrices(instrumentIds []string) (*investgo.GetLastPricesResponse, error) | ||
} | ||
|
||
// nolint: lll | ||
// | ||
//go:generate docker run --rm -v ${PWD}:/app -w /app vektra/mockery --name instrumentsServiceClient --inpackage --case snake | ||
type instrumentsServiceClient interface { | ||
InstrumentByFigi(id string) (*investgo.InstrumentResponse, error) | ||
} |
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
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.