Binance C++ Connector 2.0.0
Official C++ connectors for the Binance APIs
Loading...
Searching...
No Matches
binance::alpha::websocket_streams Namespace Reference

Classes

struct  AggregateTradeStreamParams
struct  AllBookTickerStreamParams
struct  AllMiniTickerStreamParams
struct  AllTickerStreamParams
struct  AllTokens24hTickerStreamParams
struct  BookTickerStreamParams
struct  ContractKlineStreamParams
struct  FullDepthStreamParams
struct  KlineStreamParams
struct  MiniTickerStreamParams
struct  PartialDepthStreamParams
struct  TickerStreamParams
struct  TradeStreamParams
class  Api
 Each method subscribes to one stream (or queues the subscription while the connection reconnects) and returns its handle. More...
struct  AggregateTradeStreamResponse
struct  AllBookTickerStreamResponse
struct  AllMiniTickerStreamResponse
struct  AllTickerStreamResponse
struct  AllTokens24hTickerStreamResponse
struct  AllTokens24hTickerStreamResponseDInner
struct  BookTickerStreamResponse
struct  ContractKlineStreamResponse
struct  ContractKlineStreamResponseK
 Kline payload. More...
struct  FullDepthStreamResponse
struct  KlineStreamResponse
struct  KlineStreamResponseK
struct  MiniTickerStreamResponse
struct  PartialDepthStreamResponse
struct  TickerStreamResponse
struct  TradeStreamResponse
class  WebsocketStreamsConnection
 A connection to the Alpha WebSocket streams, returned connected by WebsocketStreams::connect(). More...
class  WebsocketStreams
 Alpha WebSocket streams client: holds the configuration, and connect() opens a new connection with it, like the connect() of the other Binance connectors. More...

Enumerations

enum class  ContractKlineStreamIntervalEnum {
  Interval1s , Interval1m , Interval5m , Interval15m ,
  Interval1h , Interval4h , Interval1d , Unknown
}
enum class  FullDepthStreamIntervalEnum { Interval0ms , Interval100ms , Interval500ms , Unknown }
enum class  KlineStreamIntervalEnum {
  Interval1m , Interval3m , Interval5m , Interval15m ,
  Interval30m , Interval1h , Interval2h , Interval4h ,
  Interval6h , Interval8h , Interval12h , Interval1d ,
  Interval3d , Interval1w , Interval1Month , Unknown
}
enum class  PartialDepthStreamLevelsEnum { Levels5 , Levels10 , Levels20 , Unknown }
enum class  PartialDepthStreamIntervalEnum { Interval0ms , Interval100ms , Interval500ms , Unknown }

Functions

std::string_view to_string (ContractKlineStreamIntervalEnum value) noexcept
ContractKlineStreamIntervalEnum tag_invoke (boost::json::value_to_tag< ContractKlineStreamIntervalEnum >, const boost::json::value &jv)
void tag_invoke (boost::json::value_from_tag, boost::json::value &jv, ContractKlineStreamIntervalEnum value)
std::string_view to_string (FullDepthStreamIntervalEnum value) noexcept
FullDepthStreamIntervalEnum tag_invoke (boost::json::value_to_tag< FullDepthStreamIntervalEnum >, const boost::json::value &jv)
void tag_invoke (boost::json::value_from_tag, boost::json::value &jv, FullDepthStreamIntervalEnum value)
std::string_view to_string (KlineStreamIntervalEnum value) noexcept
KlineStreamIntervalEnum tag_invoke (boost::json::value_to_tag< KlineStreamIntervalEnum >, const boost::json::value &jv)
void tag_invoke (boost::json::value_from_tag, boost::json::value &jv, KlineStreamIntervalEnum value)
std::string_view to_string (PartialDepthStreamLevelsEnum value) noexcept
PartialDepthStreamLevelsEnum tag_invoke (boost::json::value_to_tag< PartialDepthStreamLevelsEnum >, const boost::json::value &jv)
void tag_invoke (boost::json::value_from_tag, boost::json::value &jv, PartialDepthStreamLevelsEnum value)
std::string_view to_string (PartialDepthStreamIntervalEnum value) noexcept
PartialDepthStreamIntervalEnum tag_invoke (boost::json::value_to_tag< PartialDepthStreamIntervalEnum >, const boost::json::value &jv)
void tag_invoke (boost::json::value_from_tag, boost::json::value &jv, PartialDepthStreamIntervalEnum value)
AggregateTradeStreamResponse tag_invoke (boost::json::value_to_tag< AggregateTradeStreamResponse >, const boost::json::value &jv)
void tag_invoke (boost::json::value_from_tag, boost::json::value &jv, const AggregateTradeStreamResponse &v)
AllBookTickerStreamResponse tag_invoke (boost::json::value_to_tag< AllBookTickerStreamResponse >, const boost::json::value &jv)
void tag_invoke (boost::json::value_from_tag, boost::json::value &jv, const AllBookTickerStreamResponse &v)
AllMiniTickerStreamResponse tag_invoke (boost::json::value_to_tag< AllMiniTickerStreamResponse >, const boost::json::value &jv)
void tag_invoke (boost::json::value_from_tag, boost::json::value &jv, const AllMiniTickerStreamResponse &v)
AllTickerStreamResponse tag_invoke (boost::json::value_to_tag< AllTickerStreamResponse >, const boost::json::value &jv)
void tag_invoke (boost::json::value_from_tag, boost::json::value &jv, const AllTickerStreamResponse &v)
AllTokens24hTickerStreamResponse tag_invoke (boost::json::value_to_tag< AllTokens24hTickerStreamResponse >, const boost::json::value &jv)
void tag_invoke (boost::json::value_from_tag, boost::json::value &jv, const AllTokens24hTickerStreamResponse &v)
AllTokens24hTickerStreamResponseDInner tag_invoke (boost::json::value_to_tag< AllTokens24hTickerStreamResponseDInner >, const boost::json::value &jv)
void tag_invoke (boost::json::value_from_tag, boost::json::value &jv, const AllTokens24hTickerStreamResponseDInner &v)
BookTickerStreamResponse tag_invoke (boost::json::value_to_tag< BookTickerStreamResponse >, const boost::json::value &jv)
void tag_invoke (boost::json::value_from_tag, boost::json::value &jv, const BookTickerStreamResponse &v)
ContractKlineStreamResponse tag_invoke (boost::json::value_to_tag< ContractKlineStreamResponse >, const boost::json::value &jv)
void tag_invoke (boost::json::value_from_tag, boost::json::value &jv, const ContractKlineStreamResponse &v)
ContractKlineStreamResponseK tag_invoke (boost::json::value_to_tag< ContractKlineStreamResponseK >, const boost::json::value &jv)
void tag_invoke (boost::json::value_from_tag, boost::json::value &jv, const ContractKlineStreamResponseK &v)
FullDepthStreamResponse tag_invoke (boost::json::value_to_tag< FullDepthStreamResponse >, const boost::json::value &jv)
void tag_invoke (boost::json::value_from_tag, boost::json::value &jv, const FullDepthStreamResponse &v)
KlineStreamResponse tag_invoke (boost::json::value_to_tag< KlineStreamResponse >, const boost::json::value &jv)
void tag_invoke (boost::json::value_from_tag, boost::json::value &jv, const KlineStreamResponse &v)
KlineStreamResponseK tag_invoke (boost::json::value_to_tag< KlineStreamResponseK >, const boost::json::value &jv)
void tag_invoke (boost::json::value_from_tag, boost::json::value &jv, const KlineStreamResponseK &v)
MiniTickerStreamResponse tag_invoke (boost::json::value_to_tag< MiniTickerStreamResponse >, const boost::json::value &jv)
void tag_invoke (boost::json::value_from_tag, boost::json::value &jv, const MiniTickerStreamResponse &v)
PartialDepthStreamResponse tag_invoke (boost::json::value_to_tag< PartialDepthStreamResponse >, const boost::json::value &jv)
void tag_invoke (boost::json::value_from_tag, boost::json::value &jv, const PartialDepthStreamResponse &v)
TickerStreamResponse tag_invoke (boost::json::value_to_tag< TickerStreamResponse >, const boost::json::value &jv)
void tag_invoke (boost::json::value_from_tag, boost::json::value &jv, const TickerStreamResponse &v)
TradeStreamResponse tag_invoke (boost::json::value_to_tag< TradeStreamResponse >, const boost::json::value &jv)
void tag_invoke (boost::json::value_from_tag, boost::json::value &jv, const TradeStreamResponse &v)

Enumeration Type Documentation

◆ ContractKlineStreamIntervalEnum

Enumerator
Interval1s 
Interval1m 
Interval5m 
Interval15m 
Interval1h 
Interval4h 
Interval1d 
Unknown 

A value this SDK version does not know, which a newer value decodes to. It cannot be sent.

◆ FullDepthStreamIntervalEnum

Enumerator
Interval0ms 
Interval100ms 
Interval500ms 
Unknown 

A value this SDK version does not know, which a newer value decodes to. It cannot be sent.

◆ KlineStreamIntervalEnum

Enumerator
Interval1m 
Interval3m 
Interval5m 
Interval15m 
Interval30m 
Interval1h 
Interval2h 
Interval4h 
Interval6h 
Interval8h 
Interval12h 
Interval1d 
Interval3d 
Interval1w 
Interval1Month 
Unknown 

A value this SDK version does not know, which a newer value decodes to. It cannot be sent.

◆ PartialDepthStreamLevelsEnum

Enumerator
Levels5 
Levels10 
Levels20 
Unknown 

A value this SDK version does not know, which a newer value decodes to. It cannot be sent.

◆ PartialDepthStreamIntervalEnum

Enumerator
Interval0ms 
Interval100ms 
Interval500ms 
Unknown 

A value this SDK version does not know, which a newer value decodes to. It cannot be sent.

Function Documentation

◆ to_string() [1/5]

std::string_view binance::alpha::websocket_streams::to_string ( ContractKlineStreamIntervalEnum value)
nodiscardnoexcept

◆ tag_invoke() [1/42]

ContractKlineStreamIntervalEnum binance::alpha::websocket_streams::tag_invoke ( boost::json::value_to_tag< ContractKlineStreamIntervalEnum > ,
const boost::json::value & jv )

◆ tag_invoke() [2/42]

void binance::alpha::websocket_streams::tag_invoke ( boost::json::value_from_tag ,
boost::json::value & jv,
ContractKlineStreamIntervalEnum value )

◆ to_string() [2/5]

std::string_view binance::alpha::websocket_streams::to_string ( FullDepthStreamIntervalEnum value)
nodiscardnoexcept

◆ tag_invoke() [3/42]

FullDepthStreamIntervalEnum binance::alpha::websocket_streams::tag_invoke ( boost::json::value_to_tag< FullDepthStreamIntervalEnum > ,
const boost::json::value & jv )

◆ tag_invoke() [4/42]

void binance::alpha::websocket_streams::tag_invoke ( boost::json::value_from_tag ,
boost::json::value & jv,
FullDepthStreamIntervalEnum value )

◆ to_string() [3/5]

std::string_view binance::alpha::websocket_streams::to_string ( KlineStreamIntervalEnum value)
nodiscardnoexcept

◆ tag_invoke() [5/42]

KlineStreamIntervalEnum binance::alpha::websocket_streams::tag_invoke ( boost::json::value_to_tag< KlineStreamIntervalEnum > ,
const boost::json::value & jv )

◆ tag_invoke() [6/42]

void binance::alpha::websocket_streams::tag_invoke ( boost::json::value_from_tag ,
boost::json::value & jv,
KlineStreamIntervalEnum value )

◆ to_string() [4/5]

std::string_view binance::alpha::websocket_streams::to_string ( PartialDepthStreamLevelsEnum value)
nodiscardnoexcept

◆ tag_invoke() [7/42]

PartialDepthStreamLevelsEnum binance::alpha::websocket_streams::tag_invoke ( boost::json::value_to_tag< PartialDepthStreamLevelsEnum > ,
const boost::json::value & jv )

◆ tag_invoke() [8/42]

void binance::alpha::websocket_streams::tag_invoke ( boost::json::value_from_tag ,
boost::json::value & jv,
PartialDepthStreamLevelsEnum value )

◆ to_string() [5/5]

std::string_view binance::alpha::websocket_streams::to_string ( PartialDepthStreamIntervalEnum value)
nodiscardnoexcept

◆ tag_invoke() [9/42]

PartialDepthStreamIntervalEnum binance::alpha::websocket_streams::tag_invoke ( boost::json::value_to_tag< PartialDepthStreamIntervalEnum > ,
const boost::json::value & jv )

◆ tag_invoke() [10/42]

void binance::alpha::websocket_streams::tag_invoke ( boost::json::value_from_tag ,
boost::json::value & jv,
PartialDepthStreamIntervalEnum value )

◆ tag_invoke() [11/42]

AggregateTradeStreamResponse binance::alpha::websocket_streams::tag_invoke ( boost::json::value_to_tag< AggregateTradeStreamResponse > ,
const boost::json::value & jv )

◆ tag_invoke() [12/42]

void binance::alpha::websocket_streams::tag_invoke ( boost::json::value_from_tag ,
boost::json::value & jv,
const AggregateTradeStreamResponse & v )

◆ tag_invoke() [13/42]

AllBookTickerStreamResponse binance::alpha::websocket_streams::tag_invoke ( boost::json::value_to_tag< AllBookTickerStreamResponse > ,
const boost::json::value & jv )

◆ tag_invoke() [14/42]

void binance::alpha::websocket_streams::tag_invoke ( boost::json::value_from_tag ,
boost::json::value & jv,
const AllBookTickerStreamResponse & v )

◆ tag_invoke() [15/42]

AllMiniTickerStreamResponse binance::alpha::websocket_streams::tag_invoke ( boost::json::value_to_tag< AllMiniTickerStreamResponse > ,
const boost::json::value & jv )

◆ tag_invoke() [16/42]

void binance::alpha::websocket_streams::tag_invoke ( boost::json::value_from_tag ,
boost::json::value & jv,
const AllMiniTickerStreamResponse & v )

◆ tag_invoke() [17/42]

AllTickerStreamResponse binance::alpha::websocket_streams::tag_invoke ( boost::json::value_to_tag< AllTickerStreamResponse > ,
const boost::json::value & jv )

◆ tag_invoke() [18/42]

void binance::alpha::websocket_streams::tag_invoke ( boost::json::value_from_tag ,
boost::json::value & jv,
const AllTickerStreamResponse & v )

◆ tag_invoke() [19/42]

AllTokens24hTickerStreamResponse binance::alpha::websocket_streams::tag_invoke ( boost::json::value_to_tag< AllTokens24hTickerStreamResponse > ,
const boost::json::value & jv )

◆ tag_invoke() [20/42]

void binance::alpha::websocket_streams::tag_invoke ( boost::json::value_from_tag ,
boost::json::value & jv,
const AllTokens24hTickerStreamResponse & v )

◆ tag_invoke() [21/42]

AllTokens24hTickerStreamResponseDInner binance::alpha::websocket_streams::tag_invoke ( boost::json::value_to_tag< AllTokens24hTickerStreamResponseDInner > ,
const boost::json::value & jv )

◆ tag_invoke() [22/42]

void binance::alpha::websocket_streams::tag_invoke ( boost::json::value_from_tag ,
boost::json::value & jv,
const AllTokens24hTickerStreamResponseDInner & v )

◆ tag_invoke() [23/42]

BookTickerStreamResponse binance::alpha::websocket_streams::tag_invoke ( boost::json::value_to_tag< BookTickerStreamResponse > ,
const boost::json::value & jv )

◆ tag_invoke() [24/42]

void binance::alpha::websocket_streams::tag_invoke ( boost::json::value_from_tag ,
boost::json::value & jv,
const BookTickerStreamResponse & v )

◆ tag_invoke() [25/42]

ContractKlineStreamResponse binance::alpha::websocket_streams::tag_invoke ( boost::json::value_to_tag< ContractKlineStreamResponse > ,
const boost::json::value & jv )

◆ tag_invoke() [26/42]

void binance::alpha::websocket_streams::tag_invoke ( boost::json::value_from_tag ,
boost::json::value & jv,
const ContractKlineStreamResponse & v )

◆ tag_invoke() [27/42]

ContractKlineStreamResponseK binance::alpha::websocket_streams::tag_invoke ( boost::json::value_to_tag< ContractKlineStreamResponseK > ,
const boost::json::value & jv )

◆ tag_invoke() [28/42]

void binance::alpha::websocket_streams::tag_invoke ( boost::json::value_from_tag ,
boost::json::value & jv,
const ContractKlineStreamResponseK & v )

◆ tag_invoke() [29/42]

FullDepthStreamResponse binance::alpha::websocket_streams::tag_invoke ( boost::json::value_to_tag< FullDepthStreamResponse > ,
const boost::json::value & jv )

◆ tag_invoke() [30/42]

void binance::alpha::websocket_streams::tag_invoke ( boost::json::value_from_tag ,
boost::json::value & jv,
const FullDepthStreamResponse & v )

◆ tag_invoke() [31/42]

KlineStreamResponse binance::alpha::websocket_streams::tag_invoke ( boost::json::value_to_tag< KlineStreamResponse > ,
const boost::json::value & jv )

◆ tag_invoke() [32/42]

void binance::alpha::websocket_streams::tag_invoke ( boost::json::value_from_tag ,
boost::json::value & jv,
const KlineStreamResponse & v )

◆ tag_invoke() [33/42]

KlineStreamResponseK binance::alpha::websocket_streams::tag_invoke ( boost::json::value_to_tag< KlineStreamResponseK > ,
const boost::json::value & jv )

◆ tag_invoke() [34/42]

void binance::alpha::websocket_streams::tag_invoke ( boost::json::value_from_tag ,
boost::json::value & jv,
const KlineStreamResponseK & v )

◆ tag_invoke() [35/42]

MiniTickerStreamResponse binance::alpha::websocket_streams::tag_invoke ( boost::json::value_to_tag< MiniTickerStreamResponse > ,
const boost::json::value & jv )

◆ tag_invoke() [36/42]

void binance::alpha::websocket_streams::tag_invoke ( boost::json::value_from_tag ,
boost::json::value & jv,
const MiniTickerStreamResponse & v )

◆ tag_invoke() [37/42]

PartialDepthStreamResponse binance::alpha::websocket_streams::tag_invoke ( boost::json::value_to_tag< PartialDepthStreamResponse > ,
const boost::json::value & jv )

◆ tag_invoke() [38/42]

void binance::alpha::websocket_streams::tag_invoke ( boost::json::value_from_tag ,
boost::json::value & jv,
const PartialDepthStreamResponse & v )

◆ tag_invoke() [39/42]

TickerStreamResponse binance::alpha::websocket_streams::tag_invoke ( boost::json::value_to_tag< TickerStreamResponse > ,
const boost::json::value & jv )

◆ tag_invoke() [40/42]

void binance::alpha::websocket_streams::tag_invoke ( boost::json::value_from_tag ,
boost::json::value & jv,
const TickerStreamResponse & v )

◆ tag_invoke() [41/42]

TradeStreamResponse binance::alpha::websocket_streams::tag_invoke ( boost::json::value_to_tag< TradeStreamResponse > ,
const boost::json::value & jv )

◆ tag_invoke() [42/42]

void binance::alpha::websocket_streams::tag_invoke ( boost::json::value_from_tag ,
boost::json::value & jv,
const TradeStreamResponse & v )