Documentation ¶
Index ¶
- func CreateUid() string
- func MessageFromHeader(md metadata.MD) string
- func RemainingLimitFromHeader(md metadata.MD) int
- func TimeToTimestamp(t time.Time) *timestamp.Timestamp
- type AssetResponse
- type AssetsResponse
- type BondResponse
- type BondsResponse
- type Brand
- type CancelOrderResponse
- type CancelStopOrderResponse
- type Client
- func (c *Client) NewInstrumentsServiceClient() *InstrumentsServiceClient
- func (c *Client) NewMDStreamClient() *MDStreamClient
- func (c *Client) NewMarketDataServiceClient() *MarketDataServiceClient
- func (c *Client) NewOperationsServiceClient() *OperationsServiceClient
- func (c *Client) NewOperationsStreamClient() *OperationsStreamClient
- func (c *Client) NewOrdersServiceClient() *OrdersServiceClient
- func (c *Client) NewOrdersStreamClient() *OrdersStreamClient
- func (c *Client) NewSandboxServiceClient() *SandboxServiceClient
- func (c *Client) NewStopOrdersServiceClient() *StopOrdersServiceClient
- func (c *Client) NewUsersServiceClient() *UsersServiceClient
- func (c *Client) Stop() error
- type CloseSandboxAccountResponse
- type Config
- type CurrenciesResponse
- type CurrencyResponse
- type EditFavoritesResponse
- type EtfResponse
- type EtfsResponse
- type FindInstrumentResponse
- type FutureResponse
- type FuturesResponse
- type GenerateBrokerReportResponse
- type GetAccountsResponse
- type GetAccruedInterestsResponse
- type GetBondCouponsResponse
- type GetBrandsResponse
- type GetBrokerReportResponse
- type GetCandlesResponse
- type GetClosePricesResponse
- type GetCountriesResponse
- type GetDividendsForeignIssuerResponse
- type GetDividendsResponse
- type GetFavoritesResponse
- type GetFuturesMarginResponse
- type GetHistoricCandlesRequest
- type GetInfoResponse
- type GetLastPricesResponse
- type GetLastTradesResponse
- type GetMarginAttributesResponse
- type GetOperationsByCursorRequest
- type GetOperationsByCursorResponse
- type GetOperationsRequest
- type GetOrderBookResponse
- type GetOrderStateResponse
- type GetOrdersResponse
- type GetStopOrdersResponse
- type GetTradingStatusResponse
- type GetTradingStatusesResponse
- type GetUserTariffResponse
- type InstrumentResponse
- type InstrumentsServiceClient
- func (is *InstrumentsServiceClient) BondByFigi(id string) (*BondResponse, error)
- func (is *InstrumentsServiceClient) BondByPositionUid(id string) (*BondResponse, error)
- func (is *InstrumentsServiceClient) BondByTicker(id string, classCode string) (*BondResponse, error)
- func (is *InstrumentsServiceClient) BondByUid(id string) (*BondResponse, error)
- func (is *InstrumentsServiceClient) Bonds(status pb.InstrumentStatus) (*BondsResponse, error)
- func (is *InstrumentsServiceClient) Currencies(status pb.InstrumentStatus) (*CurrenciesResponse, error)
- func (is *InstrumentsServiceClient) CurrencyByFigi(id string) (*CurrencyResponse, error)
- func (is *InstrumentsServiceClient) CurrencyByPositionUid(id string) (*CurrencyResponse, error)
- func (is *InstrumentsServiceClient) CurrencyByTicker(id string, classCode string) (*CurrencyResponse, error)
- func (is *InstrumentsServiceClient) CurrencyByUid(id string) (*CurrencyResponse, error)
- func (is *InstrumentsServiceClient) EditFavorites(instruments []string, actionType pb.EditFavoritesActionType) (*EditFavoritesResponse, error)
- func (is *InstrumentsServiceClient) EtfByFigi(id string) (*EtfResponse, error)
- func (is *InstrumentsServiceClient) EtfByPositionUid(id string) (*EtfResponse, error)
- func (is *InstrumentsServiceClient) EtfByTicker(id string, classCode string) (*EtfResponse, error)
- func (is *InstrumentsServiceClient) EtfByUid(id string) (*EtfResponse, error)
- func (is *InstrumentsServiceClient) Etfs(status pb.InstrumentStatus) (*EtfsResponse, error)
- func (is *InstrumentsServiceClient) FindInstrument(query string) (*FindInstrumentResponse, error)
- func (is *InstrumentsServiceClient) FutureByFigi(id string) (*FutureResponse, error)
- func (is *InstrumentsServiceClient) FutureByPositionUid(id string) (*FutureResponse, error)
- func (is *InstrumentsServiceClient) FutureByTicker(id string, classCode string) (*FutureResponse, error)
- func (is *InstrumentsServiceClient) FutureByUid(id string) (*FutureResponse, error)
- func (is *InstrumentsServiceClient) Futures(status pb.InstrumentStatus) (*FuturesResponse, error)
- func (is *InstrumentsServiceClient) GetAccruedInterests(figi string, from, to time.Time) (*GetAccruedInterestsResponse, error)
- func (is *InstrumentsServiceClient) GetAssetBy(id string) (*AssetResponse, error)
- func (is *InstrumentsServiceClient) GetAssets() (*AssetsResponse, error)
- func (is *InstrumentsServiceClient) GetBondCoupons(figi string, from, to time.Time) (*GetBondCouponsResponse, error)
- func (is *InstrumentsServiceClient) GetBrandBy(id string) (*Brand, error)
- func (is *InstrumentsServiceClient) GetBrands() (*GetBrandsResponse, error)
- func (is *InstrumentsServiceClient) GetCountries() (*GetCountriesResponse, error)
- func (is *InstrumentsServiceClient) GetDividents(figi string, from, to time.Time) (*GetDividendsResponse, error)
- func (is *InstrumentsServiceClient) GetFavorites() (*GetFavoritesResponse, error)
- func (is *InstrumentsServiceClient) GetFuturesMargin(figi string) (*GetFuturesMarginResponse, error)
- func (is *InstrumentsServiceClient) InstrumentByFigi(id string) (*InstrumentResponse, error)
- func (is *InstrumentsServiceClient) InstrumentByPositionUid(id string) (*InstrumentResponse, error)
- func (is *InstrumentsServiceClient) InstrumentByTicker(id string, classCode string) (*InstrumentResponse, error)
- func (is *InstrumentsServiceClient) InstrumentByUid(id string) (*InstrumentResponse, error)
- func (is *InstrumentsServiceClient) OptionByPositionUid(id string) (*OptionResponse, error)
- func (is *InstrumentsServiceClient) OptionByTicker(id string, classCode string) (*OptionResponse, error)
- func (is *InstrumentsServiceClient) OptionByUid(id string) (*OptionResponse, error)
- func (is *InstrumentsServiceClient) Options(status pb.InstrumentStatus) (*OptionsResponse, error)
- func (is *InstrumentsServiceClient) ShareByFigi(id string) (*ShareResponse, error)
- func (is *InstrumentsServiceClient) ShareByPositionUid(id string) (*ShareResponse, error)
- func (is *InstrumentsServiceClient) ShareByTicker(id string, classCode string) (*ShareResponse, error)
- func (is *InstrumentsServiceClient) ShareByUid(id string) (*ShareResponse, error)
- func (is *InstrumentsServiceClient) Shares(status pb.InstrumentStatus) (*SharesResponse, error)
- func (is *InstrumentsServiceClient) TradingSchedules(exchange string, from, to time.Time) (*TradingSchedulesResponse, error)
- type Logger
- type MDStream
- func (mds *MDStream) GetMySubscriptions() error
- func (mds *MDStream) Listen() error
- func (mds *MDStream) Stop()
- func (mds *MDStream) SubscribeCandle(ids []string, interval pb.SubscriptionInterval) (<-chan *pb.Candle, error)
- func (mds *MDStream) SubscribeInfo(ids []string) (<-chan *pb.TradingStatus, error)
- func (mds *MDStream) SubscribeLastPrice(ids []string) (<-chan *pb.LastPrice, error)
- func (mds *MDStream) SubscribeOrderBook(ids []string, depth int32) (<-chan *pb.OrderBook, error)
- func (mds *MDStream) SubscribeTrade(ids []string) (<-chan *pb.Trade, error)
- func (mds *MDStream) UnSubscribeAll() error
- func (mds *MDStream) UnSubscribeCandle(ids []string, interval pb.SubscriptionInterval) error
- func (mds *MDStream) UnSubscribeInfo(ids []string) error
- func (mds *MDStream) UnSubscribeLastPrice(ids []string) error
- func (mds *MDStream) UnSubscribeOrderBook(ids []string) error
- func (mds *MDStream) UnSubscribeTrade(ids []string) error
- type MDStreamClient
- type MarketDataServiceClient
- func (md *MarketDataServiceClient) GetAllHistoricCandles(req *GetHistoricCandlesRequest) ([]*pb.HistoricCandle, error)
- func (md *MarketDataServiceClient) GetCandles(instrumentId string, interval pb.CandleInterval, from, to time.Time) (*GetCandlesResponse, error)
- func (md *MarketDataServiceClient) GetClosePrices(instrumentIds []string) (*GetClosePricesResponse, error)
- func (md *MarketDataServiceClient) GetHistoricCandles(req *GetHistoricCandlesRequest) ([]*pb.HistoricCandle, error)
- func (md *MarketDataServiceClient) GetLastPrices(instrumentIds []string) (*GetLastPricesResponse, error)
- func (md *MarketDataServiceClient) GetLastTrades(instrumentId string, from, to time.Time) (*GetLastTradesResponse, error)
- func (md *MarketDataServiceClient) GetOrderBook(instrumentId string, depth int32) (*GetOrderBookResponse, error)
- func (md *MarketDataServiceClient) GetTradingStatus(instrumentId string) (*GetTradingStatusResponse, error)
- func (md *MarketDataServiceClient) GetTradingStatuses(instrumentIds []string) (*GetTradingStatusesResponse, error)
- type OpenSandboxAccountResponse
- type OperationsResponse
- type OperationsServiceClient
- func (os *OperationsServiceClient) GenerateBrokerReport(accountId string, from, to time.Time) (*GenerateBrokerReportResponse, error)
- func (os *OperationsServiceClient) GenerateDividentsForeignIssuer(accountId string, from, to time.Time) (*GetDividendsForeignIssuerResponse, error)
- func (os *OperationsServiceClient) GetBrokerReport(taskId string, page int32) (*GetBrokerReportResponse, error)
- func (os *OperationsServiceClient) GetDividentsForeignIssuer(taskId string, page int32) (*GetDividendsForeignIssuerResponse, error)
- func (os *OperationsServiceClient) GetOperations(req *GetOperationsRequest) (*OperationsResponse, error)
- func (os *OperationsServiceClient) GetOperationsByCursor(req *GetOperationsByCursorRequest) (*GetOperationsByCursorResponse, error)
- func (os *OperationsServiceClient) GetOperationsByCursorShort(accountId string) (*GetOperationsByCursorResponse, error)
- func (os *OperationsServiceClient) GetPortfolio(accountId string, currency pb.PortfolioRequest_CurrencyRequest) (*PortfolioResponse, error)
- func (os *OperationsServiceClient) GetPositions(accountId string) (*PositionsResponse, error)
- func (os *OperationsServiceClient) GetWithdrawLimits(accountId string) (*WithdrawLimitsResponse, error)
- type OperationsStreamClient
- type OptionResponse
- type OptionsResponse
- type OrdersServiceClient
- func (os *OrdersServiceClient) Buy(req *PostOrderRequestShort) (*PostOrderResponse, error)
- func (os *OrdersServiceClient) CancelOrder(accountId, orderId string) (*CancelOrderResponse, error)
- func (os *OrdersServiceClient) GetOrderState(accountId, orderId string) (*GetOrderStateResponse, error)
- func (os *OrdersServiceClient) GetOrders(accountId string) (*GetOrdersResponse, error)
- func (os *OrdersServiceClient) PostOrder(req *PostOrderRequest) (*PostOrderResponse, error)
- func (os *OrdersServiceClient) ReplaceOrder(req *ReplaceOrderRequest) (*PostOrderResponse, error)
- func (os *OrdersServiceClient) Sell(req *PostOrderRequestShort) (*PostOrderResponse, error)
- type OrdersStreamClient
- type PortfolioResponse
- type PortfolioStream
- type PositionsResponse
- type PositionsStream
- type PostOrderRequest
- type PostOrderRequestShort
- type PostOrderResponse
- type PostStopOrderRequest
- type PostStopOrderResponse
- type ReplaceOrderRequest
- type SandboxPayInRequest
- type SandboxPayInResponse
- type SandboxServiceClient
- func (s *SandboxServiceClient) CancelSandboxOrder(accountId, orderId string) (*CancelOrderResponse, error)
- func (s *SandboxServiceClient) CloseSandboxAccount(accountId string) (*CloseSandboxAccountResponse, error)
- func (s *SandboxServiceClient) GetSandboxAccounts() (*GetAccountsResponse, error)
- func (s *SandboxServiceClient) GetSandboxOperations(req *GetOperationsRequest) (*OperationsResponse, error)
- func (s *SandboxServiceClient) GetSandboxOperationsByCursor(req *GetOperationsByCursorRequest) (*GetOperationsByCursorResponse, error)
- func (s *SandboxServiceClient) GetSandboxOrderState(accountId, orderId string) (*GetOrderStateResponse, error)
- func (s *SandboxServiceClient) GetSandboxOrders(accountId string) (*GetOrdersResponse, error)
- func (s *SandboxServiceClient) GetSandboxPortfolio(accountId string, currency pb.PortfolioRequest_CurrencyRequest) (*PortfolioResponse, error)
- func (s *SandboxServiceClient) GetSandboxPositions(accountId string) (*PositionsResponse, error)
- func (s *SandboxServiceClient) GetSandboxWithdrawLimits(accountId string) (*WithdrawLimitsResponse, error)
- func (s *SandboxServiceClient) OpenSandboxAccount() (*OpenSandboxAccountResponse, error)
- func (s *SandboxServiceClient) PostSandboxOrder(req *PostOrderRequest) (*PostOrderResponse, error)
- func (s *SandboxServiceClient) ReplaceSandboxOrder(req *ReplaceOrderRequest) (*PostOrderResponse, error)
- func (s *SandboxServiceClient) SandboxPayIn(req *SandboxPayInRequest) (*SandboxPayInResponse, error)
- type ShareResponse
- type SharesResponse
- type StopOrdersServiceClient
- func (s *StopOrdersServiceClient) CancelStopOrder(accountId, stopOrderId string) (*CancelStopOrderResponse, error)
- func (s *StopOrdersServiceClient) GetStopOrders(accountId string) (*GetStopOrdersResponse, error)
- func (s *StopOrdersServiceClient) PostStopOrder(req *PostStopOrderRequest) (*PostStopOrderResponse, error)
- type TradesStream
- type TradingSchedulesResponse
- type UsersServiceClient
- func (us *UsersServiceClient) GetAccounts() (*GetAccountsResponse, error)
- func (us *UsersServiceClient) GetInfo() (*GetInfoResponse, error)
- func (us *UsersServiceClient) GetMarginAttributes(accountId string) (*GetMarginAttributesResponse, error)
- func (us *UsersServiceClient) GetUserTariff() (*GetUserTariffResponse, error)
- type WithdrawLimitsResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateUid ¶
func CreateUid() string
CreateUid - возвращает строку - уникальный идентификатор длинной 16 байт
func MessageFromHeader ¶
MessageFromHeader - Метод извлечения сообщения из заголовка
func RemainingLimitFromHeader ¶
RemainingLimitFromHeader - Метод извлечения остатка запросов из заголовка, возвращает -1 при ошибке
Types ¶
type AssetResponse ¶
type AssetResponse struct { *pb.AssetResponse Header metadata.MD }
func (*AssetResponse) GetHeader ¶
func (p *AssetResponse) GetHeader() metadata.MD
type AssetsResponse ¶
type AssetsResponse struct { *pb.AssetsResponse Header metadata.MD }
func (*AssetsResponse) GetHeader ¶
func (p *AssetsResponse) GetHeader() metadata.MD
type BondResponse ¶
type BondResponse struct { *pb.BondResponse Header metadata.MD }
func (*BondResponse) GetHeader ¶
func (p *BondResponse) GetHeader() metadata.MD
type BondsResponse ¶
type BondsResponse struct { *pb.BondsResponse Header metadata.MD }
func (*BondsResponse) GetHeader ¶
func (p *BondsResponse) GetHeader() metadata.MD
type CancelOrderResponse ¶
type CancelOrderResponse struct { *pb.CancelOrderResponse Header metadata.MD }
func (*CancelOrderResponse) GetHeader ¶
func (p *CancelOrderResponse) GetHeader() metadata.MD
type CancelStopOrderResponse ¶
type CancelStopOrderResponse struct { *pb.CancelStopOrderResponse Header metadata.MD }
func (*CancelStopOrderResponse) GetHeader ¶
func (p *CancelStopOrderResponse) GetHeader() metadata.MD
type Client ¶
func (*Client) NewInstrumentsServiceClient ¶
func (c *Client) NewInstrumentsServiceClient() *InstrumentsServiceClient
NewInstrumentsServiceClient - создание клиента сервиса инструментов
func (*Client) NewMDStreamClient ¶
func (c *Client) NewMDStreamClient() *MDStreamClient
NewMDStreamClient - создание клиента для сервиса стримов маркетадаты
func (*Client) NewMarketDataServiceClient ¶
func (c *Client) NewMarketDataServiceClient() *MarketDataServiceClient
NewMarketDataServiceClient - создание клиента сервиса маркетдаты
func (*Client) NewOperationsServiceClient ¶
func (c *Client) NewOperationsServiceClient() *OperationsServiceClient
NewOperationsServiceClient - создание клиента сервиса операций
func (*Client) NewOperationsStreamClient ¶
func (c *Client) NewOperationsStreamClient() *OperationsStreamClient
NewOperationsStreamClient - создание клиента стримов обновлений портфеля
func (*Client) NewOrdersServiceClient ¶
func (c *Client) NewOrdersServiceClient() *OrdersServiceClient
NewOrdersServiceClient - создание клиента сервиса ордеров
func (*Client) NewOrdersStreamClient ¶
func (c *Client) NewOrdersStreamClient() *OrdersStreamClient
NewOrdersStreamClient - создание клиента стримов сделок
func (*Client) NewSandboxServiceClient ¶
func (c *Client) NewSandboxServiceClient() *SandboxServiceClient
NewSandboxServiceClient - создание клиента для работы с песочницей
func (*Client) NewStopOrdersServiceClient ¶
func (c *Client) NewStopOrdersServiceClient() *StopOrdersServiceClient
NewStopOrdersServiceClient - создание клиента сервиса стоп-ордеров
func (*Client) NewUsersServiceClient ¶
func (c *Client) NewUsersServiceClient() *UsersServiceClient
NewUsersServiceClient - создание клиента сервиса счетов
type CloseSandboxAccountResponse ¶
type CloseSandboxAccountResponse struct { *pb.CloseSandboxAccountResponse Header metadata.MD }
func (*CloseSandboxAccountResponse) GetHeader ¶
func (p *CloseSandboxAccountResponse) GetHeader() metadata.MD
type Config ¶
type Config struct { EndPoint string `yaml:"EndPoint"` Token string `yaml:"APIToken"` AppName string `yaml:"AppName"` AccountId string `yaml:"AccountId"` }
Config - структура для кофигурации SDK
func LoadConfig ¶
type CurrenciesResponse ¶
type CurrenciesResponse struct { *pb.CurrenciesResponse Header metadata.MD }
func (*CurrenciesResponse) CurrencyResponse ¶
func (p *CurrenciesResponse) CurrencyResponse() metadata.MD
type CurrencyResponse ¶
type CurrencyResponse struct { *pb.CurrencyResponse Header metadata.MD }
type EditFavoritesResponse ¶
type EditFavoritesResponse struct { *pb.EditFavoritesResponse Header metadata.MD }
func (*EditFavoritesResponse) GetHeader ¶
func (p *EditFavoritesResponse) GetHeader() metadata.MD
type EtfResponse ¶
type EtfResponse struct { *pb.EtfResponse Header metadata.MD }
func (*EtfResponse) GetHeader ¶
func (p *EtfResponse) GetHeader() metadata.MD
type EtfsResponse ¶
type EtfsResponse struct { *pb.EtfsResponse Header metadata.MD }
func (*EtfsResponse) GetHeader ¶
func (p *EtfsResponse) GetHeader() metadata.MD
type FindInstrumentResponse ¶
type FindInstrumentResponse struct { *pb.FindInstrumentResponse Header metadata.MD }
func (*FindInstrumentResponse) GetHeader ¶
func (p *FindInstrumentResponse) GetHeader() metadata.MD
type FutureResponse ¶
type FutureResponse struct { *pb.FutureResponse Header metadata.MD }
func (*FutureResponse) GetHeader ¶
func (p *FutureResponse) GetHeader() metadata.MD
type FuturesResponse ¶
type FuturesResponse struct { *pb.FuturesResponse Header metadata.MD }
func (*FuturesResponse) GetHeader ¶
func (p *FuturesResponse) GetHeader() metadata.MD
type GenerateBrokerReportResponse ¶
type GenerateBrokerReportResponse struct { *pb.GenerateBrokerReportResponse Header metadata.MD }
func (*GenerateBrokerReportResponse) GetHeader ¶
func (p *GenerateBrokerReportResponse) GetHeader() metadata.MD
type GetAccountsResponse ¶
type GetAccountsResponse struct { *pb.GetAccountsResponse Header metadata.MD }
func (*GetAccountsResponse) GetHeader ¶
func (p *GetAccountsResponse) GetHeader() metadata.MD
type GetAccruedInterestsResponse ¶
type GetAccruedInterestsResponse struct { *pb.GetAccruedInterestsResponse Header metadata.MD }
func (*GetAccruedInterestsResponse) GetHeader ¶
func (p *GetAccruedInterestsResponse) GetHeader() metadata.MD
type GetBondCouponsResponse ¶
type GetBondCouponsResponse struct { *pb.GetBondCouponsResponse Header metadata.MD }
func (*GetBondCouponsResponse) GetHeader ¶
func (p *GetBondCouponsResponse) GetHeader() metadata.MD
type GetBrandsResponse ¶
type GetBrandsResponse struct { *pb.GetBrandsResponse Header metadata.MD }
func (*GetBrandsResponse) GetHeader ¶
func (p *GetBrandsResponse) GetHeader() metadata.MD
type GetBrokerReportResponse ¶
type GetBrokerReportResponse struct { *pb.GetBrokerReportResponse Header metadata.MD }
func (*GetBrokerReportResponse) GetHeader ¶
func (p *GetBrokerReportResponse) GetHeader() metadata.MD
type GetCandlesResponse ¶
type GetCandlesResponse struct { *pb.GetCandlesResponse Header metadata.MD }
func (*GetCandlesResponse) GetHeader ¶
func (p *GetCandlesResponse) GetHeader() metadata.MD
type GetClosePricesResponse ¶
type GetClosePricesResponse struct { *pb.GetClosePricesResponse Header metadata.MD }
func (*GetClosePricesResponse) GetHeader ¶
func (p *GetClosePricesResponse) GetHeader() metadata.MD
type GetCountriesResponse ¶
type GetCountriesResponse struct { *pb.GetCountriesResponse Header metadata.MD }
func (*GetCountriesResponse) GetHeader ¶
func (p *GetCountriesResponse) GetHeader() metadata.MD
type GetDividendsForeignIssuerResponse ¶
type GetDividendsForeignIssuerResponse struct { *pb.GetDividendsForeignIssuerResponse Header metadata.MD }
func (*GetDividendsForeignIssuerResponse) GetHeader ¶
func (p *GetDividendsForeignIssuerResponse) GetHeader() metadata.MD
type GetDividendsResponse ¶
type GetDividendsResponse struct { *pb.GetDividendsResponse Header metadata.MD }
func (*GetDividendsResponse) GetHeader ¶
func (p *GetDividendsResponse) GetHeader() metadata.MD
type GetFavoritesResponse ¶
type GetFavoritesResponse struct { *pb.GetFavoritesResponse Header metadata.MD }
func (*GetFavoritesResponse) GetHeader ¶
func (p *GetFavoritesResponse) GetHeader() metadata.MD
type GetFuturesMarginResponse ¶
type GetFuturesMarginResponse struct { *pb.GetFuturesMarginResponse Header metadata.MD }
func (*GetFuturesMarginResponse) GetHeader ¶
func (p *GetFuturesMarginResponse) GetHeader() metadata.MD
type GetInfoResponse ¶
type GetInfoResponse struct { *pb.GetInfoResponse Header metadata.MD }
func (*GetInfoResponse) GetHeader ¶
func (p *GetInfoResponse) GetHeader() metadata.MD
type GetLastPricesResponse ¶
type GetLastPricesResponse struct { *pb.GetLastPricesResponse Header metadata.MD }
func (*GetLastPricesResponse) GetHeader ¶
func (p *GetLastPricesResponse) GetHeader() metadata.MD
type GetLastTradesResponse ¶
type GetLastTradesResponse struct { *pb.GetLastTradesResponse Header metadata.MD }
func (*GetLastTradesResponse) GetHeader ¶
func (p *GetLastTradesResponse) GetHeader() metadata.MD
type GetMarginAttributesResponse ¶
type GetMarginAttributesResponse struct { *pb.GetMarginAttributesResponse Header metadata.MD }
func (*GetMarginAttributesResponse) GetHeader ¶
func (p *GetMarginAttributesResponse) GetHeader() metadata.MD
type GetOperationsByCursorResponse ¶
type GetOperationsByCursorResponse struct { *pb.GetOperationsByCursorResponse Header metadata.MD }
func (*GetOperationsByCursorResponse) GetHeader ¶
func (p *GetOperationsByCursorResponse) GetHeader() metadata.MD
type GetOperationsRequest ¶
type GetOrderBookResponse ¶
type GetOrderBookResponse struct { *pb.GetOrderBookResponse Header metadata.MD }
func (*GetOrderBookResponse) GetHeader ¶
func (p *GetOrderBookResponse) GetHeader() metadata.MD
type GetOrderStateResponse ¶
type GetOrderStateResponse struct { *pb.OrderState Header metadata.MD }
func (*GetOrderStateResponse) GetHeader ¶
func (p *GetOrderStateResponse) GetHeader() metadata.MD
type GetOrdersResponse ¶
type GetOrdersResponse struct { *pb.GetOrdersResponse Header metadata.MD }
func (*GetOrdersResponse) GetHeader ¶
func (p *GetOrdersResponse) GetHeader() metadata.MD
type GetStopOrdersResponse ¶
type GetStopOrdersResponse struct { *pb.GetStopOrdersResponse Header metadata.MD }
func (*GetStopOrdersResponse) GetHeader ¶
func (p *GetStopOrdersResponse) GetHeader() metadata.MD
type GetTradingStatusResponse ¶
type GetTradingStatusResponse struct { *pb.GetTradingStatusResponse Header metadata.MD }
func (*GetTradingStatusResponse) GetHeader ¶
func (p *GetTradingStatusResponse) GetHeader() metadata.MD
type GetTradingStatusesResponse ¶
type GetTradingStatusesResponse struct { *pb.GetTradingStatusesResponse Header metadata.MD }
func (*GetTradingStatusesResponse) GetHeader ¶
func (p *GetTradingStatusesResponse) GetHeader() metadata.MD
type GetUserTariffResponse ¶
type GetUserTariffResponse struct { *pb.GetUserTariffResponse Header metadata.MD }
func (*GetUserTariffResponse) GetHeader ¶
func (p *GetUserTariffResponse) GetHeader() metadata.MD
type InstrumentResponse ¶
type InstrumentResponse struct { *pb.InstrumentResponse Header metadata.MD }
func (*InstrumentResponse) GetHeader ¶
func (p *InstrumentResponse) GetHeader() metadata.MD
type InstrumentsServiceClient ¶
type InstrumentsServiceClient struct {
// contains filtered or unexported fields
}
func (*InstrumentsServiceClient) BondByFigi ¶
func (is *InstrumentsServiceClient) BondByFigi(id string) (*BondResponse, error)
BondByFigi - Метод получения облигации по figi
func (*InstrumentsServiceClient) BondByPositionUid ¶
func (is *InstrumentsServiceClient) BondByPositionUid(id string) (*BondResponse, error)
BondByPositionUid - Метод получения облигации по PositionUid
func (*InstrumentsServiceClient) BondByTicker ¶
func (is *InstrumentsServiceClient) BondByTicker(id string, classCode string) (*BondResponse, error)
BondByTicker - Метод получения облигации по Ticker
func (*InstrumentsServiceClient) BondByUid ¶
func (is *InstrumentsServiceClient) BondByUid(id string) (*BondResponse, error)
BondByUid - Метод получения облигации по Uid
func (*InstrumentsServiceClient) Bonds ¶
func (is *InstrumentsServiceClient) Bonds(status pb.InstrumentStatus) (*BondsResponse, error)
Bonds - Метод получения списка облигаций
func (*InstrumentsServiceClient) Currencies ¶
func (is *InstrumentsServiceClient) Currencies(status pb.InstrumentStatus) (*CurrenciesResponse, error)
Currencies - Метод получения списка валют
func (*InstrumentsServiceClient) CurrencyByFigi ¶
func (is *InstrumentsServiceClient) CurrencyByFigi(id string) (*CurrencyResponse, error)
CurrencyByFigi - Метод получения валюты по Figi
func (*InstrumentsServiceClient) CurrencyByPositionUid ¶
func (is *InstrumentsServiceClient) CurrencyByPositionUid(id string) (*CurrencyResponse, error)
CurrencyByPositionUid - Метод получения валюты по PositionUid
func (*InstrumentsServiceClient) CurrencyByTicker ¶
func (is *InstrumentsServiceClient) CurrencyByTicker(id string, classCode string) (*CurrencyResponse, error)
CurrencyByTicker - Метод получения валюты по Ticker
func (*InstrumentsServiceClient) CurrencyByUid ¶
func (is *InstrumentsServiceClient) CurrencyByUid(id string) (*CurrencyResponse, error)
CurrencyByUid - Метод получения валюты по Uid
func (*InstrumentsServiceClient) EditFavorites ¶
func (is *InstrumentsServiceClient) EditFavorites(instruments []string, actionType pb.EditFavoritesActionType) (*EditFavoritesResponse, error)
EditFavorites - Метод редактирования списка избранных инструментов
func (*InstrumentsServiceClient) EtfByFigi ¶
func (is *InstrumentsServiceClient) EtfByFigi(id string) (*EtfResponse, error)
EtfByFigi - Метод получения инвестиционного фонда по Figi
func (*InstrumentsServiceClient) EtfByPositionUid ¶
func (is *InstrumentsServiceClient) EtfByPositionUid(id string) (*EtfResponse, error)
EtfByPositionUid - Метод получения инвестиционного фонда по PositionUid
func (*InstrumentsServiceClient) EtfByTicker ¶
func (is *InstrumentsServiceClient) EtfByTicker(id string, classCode string) (*EtfResponse, error)
EtfByTicker - Метод получения инвестиционного фонда по Ticker
func (*InstrumentsServiceClient) EtfByUid ¶
func (is *InstrumentsServiceClient) EtfByUid(id string) (*EtfResponse, error)
EtfByUid - Метод получения инвестиционного фонда по Uid
func (*InstrumentsServiceClient) Etfs ¶
func (is *InstrumentsServiceClient) Etfs(status pb.InstrumentStatus) (*EtfsResponse, error)
Etfs - Метод получения списка инвестиционных фондов
func (*InstrumentsServiceClient) FindInstrument ¶
func (is *InstrumentsServiceClient) FindInstrument(query string) (*FindInstrumentResponse, error)
FindInstrument - Метод поиска инструмента, например по тикеру или названию компании
func (*InstrumentsServiceClient) FutureByFigi ¶
func (is *InstrumentsServiceClient) FutureByFigi(id string) (*FutureResponse, error)
FutureByFigi - Метод получения фьючерса по Figi
func (*InstrumentsServiceClient) FutureByPositionUid ¶
func (is *InstrumentsServiceClient) FutureByPositionUid(id string) (*FutureResponse, error)
FutureByPositionUid - Метод получения фьючерса по PositionUid
func (*InstrumentsServiceClient) FutureByTicker ¶
func (is *InstrumentsServiceClient) FutureByTicker(id string, classCode string) (*FutureResponse, error)
FutureByTicker - Метод получения фьючерса по Ticker
func (*InstrumentsServiceClient) FutureByUid ¶
func (is *InstrumentsServiceClient) FutureByUid(id string) (*FutureResponse, error)
FutureByUid - Метод получения фьючерса по Uid
func (*InstrumentsServiceClient) Futures ¶
func (is *InstrumentsServiceClient) Futures(status pb.InstrumentStatus) (*FuturesResponse, error)
Futures - Метод получения списка фьючерсов
func (*InstrumentsServiceClient) GetAccruedInterests ¶
func (is *InstrumentsServiceClient) GetAccruedInterests(figi string, from, to time.Time) (*GetAccruedInterestsResponse, error)
GetAccruedInterests - Метод получения накопленного купонного дохода по облигации
func (*InstrumentsServiceClient) GetAssetBy ¶
func (is *InstrumentsServiceClient) GetAssetBy(id string) (*AssetResponse, error)
GetAssetBy - Метод получения актива по его uid идентификатору.
func (*InstrumentsServiceClient) GetAssets ¶
func (is *InstrumentsServiceClient) GetAssets() (*AssetsResponse, error)
GetAssets - Метод получения списка активов
func (*InstrumentsServiceClient) GetBondCoupons ¶
func (is *InstrumentsServiceClient) GetBondCoupons(figi string, from, to time.Time) (*GetBondCouponsResponse, error)
GetBondCoupons - Метод получения графика выплат купонов по облигации
func (*InstrumentsServiceClient) GetBrandBy ¶
func (is *InstrumentsServiceClient) GetBrandBy(id string) (*Brand, error)
GetBrandBy - Метод получения бренда по его uid идентификатору
func (*InstrumentsServiceClient) GetBrands ¶
func (is *InstrumentsServiceClient) GetBrands() (*GetBrandsResponse, error)
GetBrands - Метод получения списка брендов
func (*InstrumentsServiceClient) GetCountries ¶
func (is *InstrumentsServiceClient) GetCountries() (*GetCountriesResponse, error)
GetCountries - Метод получения списка стран
func (*InstrumentsServiceClient) GetDividents ¶
func (is *InstrumentsServiceClient) GetDividents(figi string, from, to time.Time) (*GetDividendsResponse, error)
GetDividents - Метод для получения событий выплаты дивидендов по инструменту
func (*InstrumentsServiceClient) GetFavorites ¶
func (is *InstrumentsServiceClient) GetFavorites() (*GetFavoritesResponse, error)
GetFavorites - Метод получения списка избранных инструментов
func (*InstrumentsServiceClient) GetFuturesMargin ¶
func (is *InstrumentsServiceClient) GetFuturesMargin(figi string) (*GetFuturesMarginResponse, error)
GetFuturesMargin - Метод получения размера гарантийного обеспечения по фьючерсам
func (*InstrumentsServiceClient) InstrumentByFigi ¶
func (is *InstrumentsServiceClient) InstrumentByFigi(id string) (*InstrumentResponse, error)
InstrumentByFigi - Метод получения основной информации об инструменте
func (*InstrumentsServiceClient) InstrumentByPositionUid ¶
func (is *InstrumentsServiceClient) InstrumentByPositionUid(id string) (*InstrumentResponse, error)
InstrumentByPositionUid - Метод получения основной информации об инструменте
func (*InstrumentsServiceClient) InstrumentByTicker ¶
func (is *InstrumentsServiceClient) InstrumentByTicker(id string, classCode string) (*InstrumentResponse, error)
InstrumentByTicker - Метод получения основной информации об инструменте
func (*InstrumentsServiceClient) InstrumentByUid ¶
func (is *InstrumentsServiceClient) InstrumentByUid(id string) (*InstrumentResponse, error)
InstrumentByUid - Метод получения основной информации об инструменте
func (*InstrumentsServiceClient) OptionByPositionUid ¶
func (is *InstrumentsServiceClient) OptionByPositionUid(id string) (*OptionResponse, error)
OptionByPositionUid - Метод получения опциона по PositionUid
func (*InstrumentsServiceClient) OptionByTicker ¶
func (is *InstrumentsServiceClient) OptionByTicker(id string, classCode string) (*OptionResponse, error)
OptionByTicker - Метод получения опциона по Ticker
func (*InstrumentsServiceClient) OptionByUid ¶
func (is *InstrumentsServiceClient) OptionByUid(id string) (*OptionResponse, error)
OptionByUid - Метод получения опциона по Uid
func (*InstrumentsServiceClient) Options ¶
func (is *InstrumentsServiceClient) Options(status pb.InstrumentStatus) (*OptionsResponse, error)
Options - Метод получения списка опционов
func (*InstrumentsServiceClient) ShareByFigi ¶
func (is *InstrumentsServiceClient) ShareByFigi(id string) (*ShareResponse, error)
ShareByFigi - Метод получения акции по Figi
func (*InstrumentsServiceClient) ShareByPositionUid ¶
func (is *InstrumentsServiceClient) ShareByPositionUid(id string) (*ShareResponse, error)
ShareByPositionUid - Метод получения акции по PositionUid
func (*InstrumentsServiceClient) ShareByTicker ¶
func (is *InstrumentsServiceClient) ShareByTicker(id string, classCode string) (*ShareResponse, error)
ShareByTicker - Метод получения акции по Ticker
func (*InstrumentsServiceClient) ShareByUid ¶
func (is *InstrumentsServiceClient) ShareByUid(id string) (*ShareResponse, error)
ShareByUid - Метод получения акции по Uid
func (*InstrumentsServiceClient) Shares ¶
func (is *InstrumentsServiceClient) Shares(status pb.InstrumentStatus) (*SharesResponse, error)
Shares - Метод получения списка акций
func (*InstrumentsServiceClient) TradingSchedules ¶
func (is *InstrumentsServiceClient) TradingSchedules(exchange string, from, to time.Time) (*TradingSchedulesResponse, error)
TradingSchedules - Метод получения расписания торгов торговых площадок
type MDStream ¶
type MDStream struct {
// contains filtered or unexported fields
}
func (*MDStream) GetMySubscriptions ¶
GetMySubscriptions - метод получения подписок в рамках данного стрима
func (*MDStream) SubscribeCandle ¶
func (mds *MDStream) SubscribeCandle(ids []string, interval pb.SubscriptionInterval) (<-chan *pb.Candle, error)
SubscribeCandle - Метод подписки на свечи с заданным интервалом
func (*MDStream) SubscribeInfo ¶
func (mds *MDStream) SubscribeInfo(ids []string) (<-chan *pb.TradingStatus, error)
SubscribeInfo - метод подписки на торговые статусы инструментов
func (*MDStream) SubscribeLastPrice ¶
SubscribeLastPrice - метод подписки на последние цены инструментов
func (*MDStream) SubscribeOrderBook ¶
SubscribeOrderBook - метод подписки на стаканы инструментов с одинаковой глубиной
func (*MDStream) SubscribeTrade ¶
SubscribeTrade - метод подписки на ленту обезличенных сделок
func (*MDStream) UnSubscribeAll ¶
UnSubscribeAll - Метод отписки от всей информации, отслеживаемой на данный момент
func (*MDStream) UnSubscribeCandle ¶
func (mds *MDStream) UnSubscribeCandle(ids []string, interval pb.SubscriptionInterval) error
UnSubscribeCandle - Метод отписки от свечей
func (*MDStream) UnSubscribeInfo ¶
UnSubscribeInfo - метод отписки от торговых статусов инструментов
func (*MDStream) UnSubscribeLastPrice ¶
UnSubscribeLastPrice - метод отписки от последних цен инструментов
func (*MDStream) UnSubscribeOrderBook ¶
UnSubscribeOrderBook - метод отдписки от стаканов инструментов
func (*MDStream) UnSubscribeTrade ¶
UnSubscribeTrade - метод отписки от ленты обезличенных сделок
type MDStreamClient ¶
type MDStreamClient struct {
// contains filtered or unexported fields
}
func (*MDStreamClient) MarketDataStream ¶
func (c *MDStreamClient) MarketDataStream() (*MDStream, error)
MarketDataStream - метод возвращает стрим биржевой информации
type MarketDataServiceClient ¶
type MarketDataServiceClient struct {
// contains filtered or unexported fields
}
func (*MarketDataServiceClient) GetAllHistoricCandles ¶
func (md *MarketDataServiceClient) GetAllHistoricCandles(req *GetHistoricCandlesRequest) ([]*pb.HistoricCandle, error)
GetAllHistoricCandles - Метод получения всех свечей по инструменту, поля from, to игнорируются
func (*MarketDataServiceClient) GetCandles ¶
func (md *MarketDataServiceClient) GetCandles(instrumentId string, interval pb.CandleInterval, from, to time.Time) (*GetCandlesResponse, error)
GetCandles - Метод запроса исторических свечей по инструменту
func (*MarketDataServiceClient) GetClosePrices ¶
func (md *MarketDataServiceClient) GetClosePrices(instrumentIds []string) (*GetClosePricesResponse, error)
GetClosePrices - Метод запроса цен закрытия торговой сессии по инструментам
func (*MarketDataServiceClient) GetHistoricCandles ¶
func (md *MarketDataServiceClient) GetHistoricCandles(req *GetHistoricCandlesRequest) ([]*pb.HistoricCandle, error)
GetHistoricCandles - Метод загрузки исторических свечей. Если указать File = true, то создастся .csv файл с записями свечей в формате: instrumentId;time;open;close;high;low;volume. Имя файла по умолчанию: "candles hh:mm:ss"
func (*MarketDataServiceClient) GetLastPrices ¶
func (md *MarketDataServiceClient) GetLastPrices(instrumentIds []string) (*GetLastPricesResponse, error)
GetLastPrices - Метод запроса цен последних сделок по инструментам
func (*MarketDataServiceClient) GetLastTrades ¶
func (md *MarketDataServiceClient) GetLastTrades(instrumentId string, from, to time.Time) (*GetLastTradesResponse, error)
GetLastTrades - Метод запроса обезличенных сделок за последний час
func (*MarketDataServiceClient) GetOrderBook ¶
func (md *MarketDataServiceClient) GetOrderBook(instrumentId string, depth int32) (*GetOrderBookResponse, error)
GetOrderBook - Метод получения стакана по инструменту
func (*MarketDataServiceClient) GetTradingStatus ¶
func (md *MarketDataServiceClient) GetTradingStatus(instrumentId string) (*GetTradingStatusResponse, error)
GetTradingStatus - Метод запроса статуса торгов по инструменту
func (*MarketDataServiceClient) GetTradingStatuses ¶
func (md *MarketDataServiceClient) GetTradingStatuses(instrumentIds []string) (*GetTradingStatusesResponse, error)
GetTradingStatuses - Метод запроса статуса торгов по инструментам
type OpenSandboxAccountResponse ¶
type OpenSandboxAccountResponse struct { *pb.OpenSandboxAccountResponse Header metadata.MD }
func (*OpenSandboxAccountResponse) GetHeader ¶
func (p *OpenSandboxAccountResponse) GetHeader() metadata.MD
type OperationsResponse ¶
type OperationsResponse struct { *pb.OperationsResponse Header metadata.MD }
func (*OperationsResponse) GetHeader ¶
func (p *OperationsResponse) GetHeader() metadata.MD
type OperationsServiceClient ¶
type OperationsServiceClient struct {
// contains filtered or unexported fields
}
func (*OperationsServiceClient) GenerateBrokerReport ¶
func (os *OperationsServiceClient) GenerateBrokerReport(accountId string, from, to time.Time) (*GenerateBrokerReportResponse, error)
GenerateBrokerReport - Метод получения брокерского отчёта
func (*OperationsServiceClient) GenerateDividentsForeignIssuer ¶
func (os *OperationsServiceClient) GenerateDividentsForeignIssuer(accountId string, from, to time.Time) (*GetDividendsForeignIssuerResponse, error)
GenerateDividentsForeignIssuer - Метод получения отчёта "Справка о доходах за пределами РФ"
func (*OperationsServiceClient) GetBrokerReport ¶
func (os *OperationsServiceClient) GetBrokerReport(taskId string, page int32) (*GetBrokerReportResponse, error)
GetBrokerReport - Метод получения брокерского отчёта
func (*OperationsServiceClient) GetDividentsForeignIssuer ¶
func (os *OperationsServiceClient) GetDividentsForeignIssuer(taskId string, page int32) (*GetDividendsForeignIssuerResponse, error)
GetDividentsForeignIssuer - Метод получения отчёта "Справка о доходах за пределами РФ"
func (*OperationsServiceClient) GetOperations ¶
func (os *OperationsServiceClient) GetOperations(req *GetOperationsRequest) (*OperationsResponse, error)
GetOperations - Метод получения списка операций по счёту
func (*OperationsServiceClient) GetOperationsByCursor ¶
func (os *OperationsServiceClient) GetOperationsByCursor(req *GetOperationsByCursorRequest) (*GetOperationsByCursorResponse, error)
GetOperationsByCursor - Метод получения списка операций по счёту с пагинацией
func (*OperationsServiceClient) GetOperationsByCursorShort ¶
func (os *OperationsServiceClient) GetOperationsByCursorShort(accountId string) (*GetOperationsByCursorResponse, error)
GetOperationsByCursorShort - Метод получения списка операций по счёту с пагинацией
func (*OperationsServiceClient) GetPortfolio ¶
func (os *OperationsServiceClient) GetPortfolio(accountId string, currency pb.PortfolioRequest_CurrencyRequest) (*PortfolioResponse, error)
GetPortfolio - Метод получения портфеля по счёту
func (*OperationsServiceClient) GetPositions ¶
func (os *OperationsServiceClient) GetPositions(accountId string) (*PositionsResponse, error)
GetPositions - Метод получения списка позиций по счёту
func (*OperationsServiceClient) GetWithdrawLimits ¶
func (os *OperationsServiceClient) GetWithdrawLimits(accountId string) (*WithdrawLimitsResponse, error)
GetWithdrawLimits - Метод получения доступного остатка для вывода средств
type OperationsStreamClient ¶
type OperationsStreamClient struct {
// contains filtered or unexported fields
}
func (*OperationsStreamClient) PortfolioStream ¶
func (o *OperationsStreamClient) PortfolioStream(accounts []string) (*PortfolioStream, error)
PortfolioStream - Server-side stream обновлений портфеля
func (*OperationsStreamClient) PositionsStream ¶
func (o *OperationsStreamClient) PositionsStream(accounts []string) (*PositionsStream, error)
PositionsStream - Server-side stream обновлений информации по изменению позиций портфеля
type OptionResponse ¶
type OptionResponse struct { *pb.OptionResponse Header metadata.MD }
func (*OptionResponse) GetHeader ¶
func (p *OptionResponse) GetHeader() metadata.MD
type OptionsResponse ¶
type OptionsResponse struct { *pb.OptionsResponse Header metadata.MD }
func (*OptionsResponse) GetHeader ¶
func (p *OptionsResponse) GetHeader() metadata.MD
type OrdersServiceClient ¶
type OrdersServiceClient struct {
// contains filtered or unexported fields
}
func (*OrdersServiceClient) Buy ¶
func (os *OrdersServiceClient) Buy(req *PostOrderRequestShort) (*PostOrderResponse, error)
Buy - Метод выставления поручения на покупку инструмента
func (*OrdersServiceClient) CancelOrder ¶
func (os *OrdersServiceClient) CancelOrder(accountId, orderId string) (*CancelOrderResponse, error)
CancelOrder - Метод отмены биржевой заявки
func (*OrdersServiceClient) GetOrderState ¶
func (os *OrdersServiceClient) GetOrderState(accountId, orderId string) (*GetOrderStateResponse, error)
GetOrderState - Метод получения статуса торгового поручения
func (*OrdersServiceClient) GetOrders ¶
func (os *OrdersServiceClient) GetOrders(accountId string) (*GetOrdersResponse, error)
GetOrders - Метод получения списка активных заявок по счёту
func (*OrdersServiceClient) PostOrder ¶
func (os *OrdersServiceClient) PostOrder(req *PostOrderRequest) (*PostOrderResponse, error)
PostOrder - Метод выставления биржевой заявки
func (*OrdersServiceClient) ReplaceOrder ¶
func (os *OrdersServiceClient) ReplaceOrder(req *ReplaceOrderRequest) (*PostOrderResponse, error)
ReplaceOrder - Метод изменения выставленной заявки
func (*OrdersServiceClient) Sell ¶
func (os *OrdersServiceClient) Sell(req *PostOrderRequestShort) (*PostOrderResponse, error)
Sell - Метод выставления поручения на продажу инструмента
type OrdersStreamClient ¶
type OrdersStreamClient struct {
// contains filtered or unexported fields
}
func (*OrdersStreamClient) TradesStream ¶
func (o *OrdersStreamClient) TradesStream(accounts []string) (*TradesStream, error)
TradesStream - Стрим сделок по запрашиваемым аккаунтам
type PortfolioResponse ¶
type PortfolioResponse struct { *pb.PortfolioResponse Header metadata.MD }
func (*PortfolioResponse) GetHeader ¶
func (p *PortfolioResponse) GetHeader() metadata.MD
type PortfolioStream ¶
type PortfolioStream struct {
// contains filtered or unexported fields
}
func (*PortfolioStream) Listen ¶
func (p *PortfolioStream) Listen() error
Listen - метод начинает слушать стрим и отправлять информацию в канал, для получения канала: Portfolios()
func (*PortfolioStream) Portfolios ¶
func (p *PortfolioStream) Portfolios() <-chan *pb.PortfolioResponse
Portfolios - Метод возвращает канал для чтения обновлений портфеля
type PositionsResponse ¶
type PositionsResponse struct { *pb.PositionsResponse Header metadata.MD }
func (*PositionsResponse) GetHeader ¶
func (p *PositionsResponse) GetHeader() metadata.MD
type PositionsStream ¶
type PositionsStream struct {
// contains filtered or unexported fields
}
func (*PositionsStream) Listen ¶
func (p *PositionsStream) Listen() error
Listen - метод начинает слушать стрим и отправлять информацию в канал, для получения канала: Positions()
func (*PositionsStream) Positions ¶
func (p *PositionsStream) Positions() <-chan *pb.PositionData
Positions - Метод возвращает канал для чтения обновлений информации по изменению позиций портфеля
type PostOrderRequest ¶
type PostOrderRequestShort ¶
type PostOrderResponse ¶
type PostOrderResponse struct { *pb.PostOrderResponse Header metadata.MD }
func (*PostOrderResponse) CurrencyResponse ¶
func (p *PostOrderResponse) CurrencyResponse() metadata.MD
func (*PostOrderResponse) GetHeader ¶
func (p *PostOrderResponse) GetHeader() metadata.MD
type PostStopOrderRequest ¶
type PostStopOrderRequest struct { InstrumentId string Quantity int64 Price *pb.Quotation StopPrice *pb.Quotation Direction pb.StopOrderDirection AccountId string ExpirationType pb.StopOrderExpirationType StopOrderType pb.StopOrderType ExpireDate time.Time }
type PostStopOrderResponse ¶
type PostStopOrderResponse struct { *pb.PostStopOrderResponse Header metadata.MD }
func (*PostStopOrderResponse) GetHeader ¶
func (p *PostStopOrderResponse) GetHeader() metadata.MD
type ReplaceOrderRequest ¶
type SandboxPayInRequest ¶
type SandboxPayInResponse ¶
type SandboxPayInResponse struct { *pb.SandboxPayInResponse Header metadata.MD }
func (*SandboxPayInResponse) GetHeader ¶
func (p *SandboxPayInResponse) GetHeader() metadata.MD
type SandboxServiceClient ¶
type SandboxServiceClient struct {
// contains filtered or unexported fields
}
func (*SandboxServiceClient) CancelSandboxOrder ¶
func (s *SandboxServiceClient) CancelSandboxOrder(accountId, orderId string) (*CancelOrderResponse, error)
CancelSandboxOrder - Метод отмены торгового поручения в песочнице
func (*SandboxServiceClient) CloseSandboxAccount ¶
func (s *SandboxServiceClient) CloseSandboxAccount(accountId string) (*CloseSandboxAccountResponse, error)
CloseSandboxAccount - Метод закрытия счёта в песочнице
func (*SandboxServiceClient) GetSandboxAccounts ¶
func (s *SandboxServiceClient) GetSandboxAccounts() (*GetAccountsResponse, error)
GetSandboxAccounts - Метод получения счетов в песочнице
func (*SandboxServiceClient) GetSandboxOperations ¶
func (s *SandboxServiceClient) GetSandboxOperations(req *GetOperationsRequest) (*OperationsResponse, error)
GetSandboxOperations - Метод получения операций в песочнице по номеру счёта
func (*SandboxServiceClient) GetSandboxOperationsByCursor ¶
func (s *SandboxServiceClient) GetSandboxOperationsByCursor(req *GetOperationsByCursorRequest) (*GetOperationsByCursorResponse, error)
GetSandboxOperationsByCursor - Метод получения операций в песочнице по номеру счета с пагинацией
func (*SandboxServiceClient) GetSandboxOrderState ¶
func (s *SandboxServiceClient) GetSandboxOrderState(accountId, orderId string) (*GetOrderStateResponse, error)
GetSandboxOrderState - Метод получения статуса заявки в песочнице
func (*SandboxServiceClient) GetSandboxOrders ¶
func (s *SandboxServiceClient) GetSandboxOrders(accountId string) (*GetOrdersResponse, error)
GetSandboxOrders - Метод получения списка активных заявок по счёту в песочнице
func (*SandboxServiceClient) GetSandboxPortfolio ¶
func (s *SandboxServiceClient) GetSandboxPortfolio(accountId string, currency pb.PortfolioRequest_CurrencyRequest) (*PortfolioResponse, error)
GetSandboxPortfolio - Метод получения портфолио в песочнице
func (*SandboxServiceClient) GetSandboxPositions ¶
func (s *SandboxServiceClient) GetSandboxPositions(accountId string) (*PositionsResponse, error)
GetSandboxPositions - Метод получения позиций по виртуальному счёту песочницы
func (*SandboxServiceClient) GetSandboxWithdrawLimits ¶
func (s *SandboxServiceClient) GetSandboxWithdrawLimits(accountId string) (*WithdrawLimitsResponse, error)
GetSandboxWithdrawLimits - Метод получения доступного остатка для вывода средств в песочнице
func (*SandboxServiceClient) OpenSandboxAccount ¶
func (s *SandboxServiceClient) OpenSandboxAccount() (*OpenSandboxAccountResponse, error)
OpenSandboxAccount - Метод регистрации счёта в песочнице
func (*SandboxServiceClient) PostSandboxOrder ¶
func (s *SandboxServiceClient) PostSandboxOrder(req *PostOrderRequest) (*PostOrderResponse, error)
PostSandboxOrder - Метод выставления торгового поручения в песочнице
func (*SandboxServiceClient) ReplaceSandboxOrder ¶
func (s *SandboxServiceClient) ReplaceSandboxOrder(req *ReplaceOrderRequest) (*PostOrderResponse, error)
ReplaceSandboxOrder - Метод изменения выставленной заявки
func (*SandboxServiceClient) SandboxPayIn ¶
func (s *SandboxServiceClient) SandboxPayIn(req *SandboxPayInRequest) (*SandboxPayInResponse, error)
SandboxPayIn - Метод пополнения счёта в песочнице
type ShareResponse ¶
type ShareResponse struct {}
func (*ShareResponse) GetHeader ¶
func (p *ShareResponse) GetHeader() metadata.MD
type SharesResponse ¶
type SharesResponse struct {}
func (*SharesResponse) GetHeader ¶
func (p *SharesResponse) GetHeader() metadata.MD
type StopOrdersServiceClient ¶
type StopOrdersServiceClient struct {
// contains filtered or unexported fields
}
func (*StopOrdersServiceClient) CancelStopOrder ¶
func (s *StopOrdersServiceClient) CancelStopOrder(accountId, stopOrderId string) (*CancelStopOrderResponse, error)
CancelStopOrder - Метод отмены стоп-заявки
func (*StopOrdersServiceClient) GetStopOrders ¶
func (s *StopOrdersServiceClient) GetStopOrders(accountId string) (*GetStopOrdersResponse, error)
GetStopOrders - Метод получения списка активных стоп заявок по счёту
func (*StopOrdersServiceClient) PostStopOrder ¶
func (s *StopOrdersServiceClient) PostStopOrder(req *PostStopOrderRequest) (*PostStopOrderResponse, error)
PostStopOrder - Метод выставления стоп-заявки
type TradesStream ¶
type TradesStream struct {
// contains filtered or unexported fields
}
func (*TradesStream) Listen ¶
func (t *TradesStream) Listen() error
Listen - метод начинает слушать стрим и отправлять информацию в канал, для получения канала: Trades()
func (*TradesStream) Trades ¶
func (t *TradesStream) Trades() <-chan *pb.OrderTrades
Trades - Метод возвращает канал для чтения информации о торговых поручениях
type TradingSchedulesResponse ¶
type TradingSchedulesResponse struct { *pb.TradingSchedulesResponse Header metadata.MD }
func (*TradingSchedulesResponse) GetHeader ¶
func (p *TradingSchedulesResponse) GetHeader() metadata.MD
type UsersServiceClient ¶
type UsersServiceClient struct {
// contains filtered or unexported fields
}
func (*UsersServiceClient) GetAccounts ¶
func (us *UsersServiceClient) GetAccounts() (*GetAccountsResponse, error)
GetAccounts - Метод получения счетов пользователя
func (*UsersServiceClient) GetInfo ¶
func (us *UsersServiceClient) GetInfo() (*GetInfoResponse, error)
GetInfo - Метод получения информации о пользователе
func (*UsersServiceClient) GetMarginAttributes ¶
func (us *UsersServiceClient) GetMarginAttributes(accountId string) (*GetMarginAttributesResponse, error)
GetMarginAttributes - Расчёт маржинальных показателей по счёту
func (*UsersServiceClient) GetUserTariff ¶
func (us *UsersServiceClient) GetUserTariff() (*GetUserTariffResponse, error)
GetUserTariff - Запрос тарифа пользователя
type WithdrawLimitsResponse ¶
type WithdrawLimitsResponse struct { *pb.WithdrawLimitsResponse Header metadata.MD }
func (*WithdrawLimitsResponse) GetHeader ¶
func (p *WithdrawLimitsResponse) GetHeader() metadata.MD