Skip to content

Releases: VictorFrWu/bybit.go.api

v1.1.1

15 Jan 07:13
986df2e

Choose a tag to compare

Bug Fixes

market_service.go - Fixed endpoints:

GetIndexPriceKline: /v5/market/mark-price-kline → /v5/market/index-price-kline
GetPremiumIndexPriceKline: /v5/market/mark-price-kline → /v5/market/premium-index-price-kline
New Files

api_limit.go - API limit query
apilimit.go - API rate limit management
fiat.go - Fiat trading endpoints
rfq.go - RFQ (Request for Quote) trading endpoints
examples/SpotMargin/auto-repay-mode.go
examples/SpotMargin/set-auto-repay-mode.go
New API Endpoints (54 total)

account.go (9 endpoints)

GetAccountInstrumentsInfo() - Get account instruments info
ManualBorrow() - Manual borrow
GetMaxBorrowableAmount() - Get max borrowable amount
GetPositionTiers() - Get position tiers
GetCoinState() - Get coin state
GetAvailableAmountToRepay() - Get available amount to repay
ManualRepay() - Manual repay
ManualRepayWithoutAssetConversion() - Manual repay without asset conversion
SetLimitPriceAction() - Set limit order price action
api_limit.go (2 endpoints)

QueryCap() - Query API limit cap
QueryAll() - Query all API limits
apilimit.go (2 endpoints)

SetApiRateLimit() - Set API rate limit
GetApiRateLimit() - Get API rate limit
asset.go (5 endpoints)

GetWithdrawalAddress() - Get withdrawal address
GetSmallBalanceList() - Get convertible small balance list
GetSmallBalanceConvertQuote() - Get small balance conversion quote
ExecuteSmallBalanceConvert() - Execute small balance conversion
GetSmallBalanceConvertHistory() - Get small balance conversion history
crypto_loan.go (5 endpoints)

RepayCollateral() - Repay collateral
RepayFixedCollateral() - Repay fixed collateral
RenewBorrowOrder() - Renew borrow order
GetRenewOrderInfo() - Get renew order info
GetCryptoLoanMaxCollateralAmount() - Get max collateral amount
fiat.go (7 endpoints)

GetFiatCoinList() - Query supported fiat coins
GetFiatReferencePrice() - Get fiat reference price
ApplyFiatQuote() - Apply for fiat quote
ExecuteFiatTrade() - Execute fiat trade
QueryFiatTrade() - Query fiat trade
GetFiatTradeHistory() - Get fiat trade history
GetFiatBalance() - Query fiat balance
ins_loan.go (1 endpoint)

RepayInsLoan() - Repay institutional loan
market_service.go (5 endpoints)

GetRPIOrderBook() - Get RPI order book
GetNewDeliveryPrice() - Get new delivery price
GetADLAlerts() - Get ADL alerts
GetIndexPriceComponents() - Get index price components
GetFeeGroupStructure() - Get fee group structure
rfq.go (14 endpoints)

GetRFQConfig() - Get RFQ config
CreateRFQ() - Create RFQ
CancelRFQ() - Cancel RFQ
CancelAllRFQ() - Cancel all RFQ
GetRFQList() - Get RFQ list
GetRFQRealtimePrice() - Get RFQ realtime price
GetRFQQuoteRealtime() - Get RFQ quote realtime
CreateRFQQuote() - Create RFQ quote
ExecuteRFQQuote() - Execute RFQ quote
CancelRFQQuote() - Cancel RFQ quote
GetRFQQuoteList() - Get RFQ quote list
GetRFQHistory() - Get RFQ history
GetRFQPublicTrades() - Get RFQ public trades
GetRFQTradeList() - Get RFQ trade list
saving.go (2 endpoints)

GetYieldHistory() - Get yield history
GetHourlyYieldHistory() - Get hourly yield history
spot_margin.go (2 endpoints)

GetSpotMarginAutoRepayMode() - Get spot margin auto repay mode
SetSpotMarginAutoRepayMode() - Set spot margin auto repay mode
trade.go (1 endpoint)

GetUserSettingConfig() - Get user setting config

v1.0.7

27 Jul 21:45

Choose a tag to compare

GO Sdk 1.0.7
Rest
Get closed option positions
Get price limit
Pre check order

Websocket
Order price limit
Insurance pool
Order price limit
Rpi order book

New crypto loan
Get borrowable coins
Get collateral coins
Get max allowed collateral reduction amount
Adjust collateral amount
Get collateral adjustment history
Get crypto loan position

Flexible loan
Borrow
Repay
Get flexible loan
Get borrow history
Get repay history

Fixed loan
Get supplying market
Get borrowing market
Create borrow order
Create supply order
Cancel borrow order
Cancel supply order
Get borrow contact info
Get supply contact info
Get borrow order info
Get supply order info
Repay
Get repayment history

Deprecated leverage token endpoints and legacy crypto loan endpoints

v1.0.6

21 Apr 21:23

Choose a tag to compare

Bybit go api
1.0.6

  • Add market order slippage tolerance type
  • Quick place order add marketUnit param
  • Regional host url
  • Fix Websocket Trade channel place/amend/cancel order
  • Implement web socket batch order feature
  • SendRequest return error and data
  • Implement repay liabilities
  • Implement batch set collateral coin
  • Implement withdrawal get entity list
  • Implement get transferable account amount
  • new websocket topic all liquidation in real time
  • Implement get all sub user api key info
  • Implement get fund custodian acc info
  • Implement get affiliate user list
  • Implement get tiered collateral coin ratio
  • Implement Crypto Loan module
  • Implement Earn product module
  • Implement Broker Reward feature

v1.0.2

22 Feb 17:23

Choose a tag to compare

fix assets endpoints

v1.0.1

12 Dec 23:27

Choose a tag to compare

1 Fix UserService Defect
2 Add ping interval and max alive time option to websocket
3 add new endpoint set spot hedge mode and confirm new risk limit

v1.0.0-alpha

06 Nov 16:32

Choose a tag to compare

v1.0.0-alpha Pre-release
Pre-release

The Official Go Lang API connector for Bybit's HTTP and WebSocket APIs.

Dive into a plethora of functionalities:

  • Market Data Retrieval
  • Trade Execution
  • Position Management
  • Account and Asset Info Retrieval
  • User and Upgrade Management
  • Public Websocket Streaming
  • Private Websocket Streaming
  • Lending Institution and Client
  • Broker Earning Data