Skip to main content

Crate bybit

Crate bybit 

Source

Modules§

http
ws

Structs§

OrderBookState
Local order book, reconstructed from a depth snapshot and a stream of diffs.
SensitiveString
Signer

Enums§

AccountType
AdlRankIndicator
AnnouncementType
ApplyOutcome
Outcome of OrderBookState::apply_snapshot, OrderBookState::apply_diff and OrderBookState::apply.
CancelType
Category
Unified Account: spot | linear | inverse | option Classic Account: linear | inverse | spot
ContractType
ConvertAccountType
CopyTrading
CreateType
CurAuctionPhase
DCPProduct
DataRecordingPeriod
DcpFunction
DepositStatus
DepthLevel
Env
Error
ExecType
ExtraFeeType
ExtraSubFeeType
Interval
IntervalTime
Locale
LtStatus
MaintainType
MarginMode
MarginTrading
OcoTriggerBy
OptionPeriod
OrderStatus
OrderType
Pair
Path
PlaceType
PositionIdx
PositionMode
PositionStatus
Product
RejectReason
ServiceTypes
Side
SlippageToleranceType
SmpType
SpotHedgingStatus
State
Status
StopOrderType
TickDirection
TimeInForce
Topic
TpslMode
TradeMode
TransferStatus
TriggerBy
TriggerDirection
Type
UnifiedMarginStatus
VipLevel
WithdrawStatus

Constants§

BASE_URL_API_DEMO
BASE_URL_API_MAINNET_1
BASE_URL_API_MAINNET_2
BASE_URL_API_MAINNET_3
For Netherland users.
BASE_URL_API_MAINNET_4
For Hong Kong users.
BASE_URL_API_MAINNET_5
For Turkey users.
BASE_URL_API_MAINNET_6
For Kazakhstan users.
BASE_URL_API_TESTNET
BASE_URL_STREAM_DEMO
BASE_URL_STREAM_MAINNET_1
BASE_URL_STREAM_MAINNET_2
For Turkey users.
BASE_URL_STREAM_MAINNET_3
For Kazakhstan users.
BASE_URL_STREAM_TESTNET

Functions§

create_stream_signature
hmac_sha256
Generates HMAC using the given key and message.
spot_fee_currency
timestamp
Return milliseconds.

Type Aliases§

Second
Timestamp