Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
invest_api
master
Top Level Namespace
CurrentStockInfo
InstrumentInfoStreamEvent
MoexBondInfo
MoexCsvApi
OrderbookStreamEvent
StreamEvent
TinkoffCandleData
TinkoffCandleInterval
TinkoffMarketInstrument
TinkoffPortfolioCurrencyPosition
TinkoffPortfolioPosition
TinkoffRestApi
TinkoffStreamApi
ValueWithCurrency
Built with Crystal 1.9.2
2023-10-07 18:25:28 UTC
class
TinkoffStreamApi
TinkoffStreamApi
Reference
Object
Overview
Для работы со Stream API Тинькофф
Defined in:
tinkoff_api/tinkoff_stream_api.cr
Constructors
.new
(client : HTTP::WebSocket)
Class Method Summary
.connect
(token : String, &onconnect : StreamApi -> Void) : StreamApi
Instance Method Summary
#on_message
(&onmessage : StreamEvent -> Void)
#run
#send
(data : String)
Constructor Detail
def self.
new
(client : HTTP::WebSocket)
#
[
View source
]
Class Method Detail
def self.
connect
(token : String, &onconnect : StreamApi -> Void) : StreamApi
#
[
View source
]
Instance Method Detail
def
on_message
(&onmessage :
StreamEvent
-> Void)
#
[
View source
]
def
run
#
[
View source
]
def
send
(data : String)
#
[
View source
]