Skip to content

Releases: JohnnyWic/bybit-java-api

v1.4.0

04 Feb 06:46
b58fc7e

Choose a tag to compare

What's New in v1.4.0

🐛 Bug Fixes

  • Fixed Spread Trading API parameter names
    • Spread Tickers: spreadSymbolsymbol
    • Spread Orderbook: spreadSymbolsymbol
    • Spread Recent Trades: spreadSymbolsymbol
  • Fixed Interest Rate History API parameters
    • Changed from coin to currency
    • Updated parameter list to match v5 UTA API specification

✨ New Features

  • RFQ (Request for Quote) Trading API

    • Full support for RFQ trading operations
    • Create, cancel, and query RFQ requests
    • Manage quotes and view trade history
    • Access public RFQ trades
  • Spread Trading API

    • Complete spread trading functionality
    • Support for multiple spread types (FundingRateArb, CarryTrade, PerpBasis, FutureSpread)
    • Order management and execution
    • Real-time and historical data access
  • Affiliate Program API

    • Affiliate user management
    • Commission tracking capabilities

📚 Examples

  • Added comprehensive sync examples for all new APIs
  • Added async examples for all new APIs
  • Updated existing examples with proper placeholder API keys

🔒 Security

  • Replaced all hardcoded API keys with placeholder values
  • Ensured no credentials are committed to repository

📦 API Coverage

New REST API Clients:

  • BybitApiRfqRestClient / BybitApiAsyncRfqRestClient
  • BybitApiSpreadRestClient / BybitApiAsyncSpreadRestClient
  • BybitApiAffiliateRestClient / BybitApiAsyncAffiliateRestClient

New Endpoints: 20+ new API endpoints across RFQ, Spread, and Affiliate modules

📊 Statistics

  • 41 files changed
  • 2,396 lines added
  • All new APIs tested with testnet environment

Full Changelog: v1.3.0...v1.4.0

v1.3.0

16 Jan 08:30

Choose a tag to compare

Commits (2)

  1. 0cc711c - fix pom
  2. 056933a - fix readme

Key Changes

  1. Project Configuration (pom.xml)
  • groupId changed: io.github.wuhewuhe → io.github.johnnywic
  • Version upgraded: 1.2.8-SNAPSHOT → 1.3.0
  • Repository URLs changed: Migrated from VictorFrWu to JohnnyWid
  • Publishing method changed: Migrated from Nexus Staging to Sonatype Central Portal
  • Dependency upgrades:
    • commons-codec: 1.15 → 1.17.1
    • commons-lang3: 3.12.0 → 3.18.0
    • commons-text: 1.10.0 → 1.12.0
    • jackson-databind: 2.14.2 → 2.15.0
    • logback-classic: 1.4.14 → 1.5.19
  • Plugin upgrades:
    • maven-source-plugin: 3.2.1 → 3.3.0
    • maven-javadoc-plugin: 2.9.1 → 3.6.3
    • maven-gpg-plugin: 1.5 → 3.1.0
  • Added new developer: Johnny
  1. README Updates
  • Updated Maven dependency groupId to io.github.johnnywic
  • Updated version to 1.3.0
  1. New API Features

Added UTA Spot Margin Auto Repay Mode endpoints:

  • setUTASpotMarginTradeAutoRepayMode - Set automatic repayment mode
  • getUTASpotMarginTradeAutoRepayMode - Get automatic repayment mode
  1. Test Files Removed

Deleted 27 test files (~1554 lines removed) covering:

  • Account tests
  • Asset tests
  • Loan tests
  • Market deserializer tests
  • Position tests
  • Spot margin tests
  • Trade tests
  • User tests
  1. CI/CD Updates

Updated .github/workflows/maven-publish.yml

1.2.7

11 Sep 15:50

Choose a tag to compare

Release-Notes

Rest API

  • Fix spot margin toogle
  • Fix spot margin set leverage
  • Add Broker to convert coin
  • Add get sub uids unlimited endpoint
  • Add get all sub uid api keys info endpoint
  • Add convert request quote endpoint
  • Add convert confirm quote endpoint
  • Add convert get status endpoint
  • Add convert get coin list quote endpoint
  • Add convert get history quote endpoint

v1.2.4

26 Feb 16:38

Choose a tag to compare

Release-Notes

Websockets

  • Add WebSocketMessage handler class to all public and private channels

Improvements

  • public and private websocket channel set message handler

Change Log

  • Spot Margin Trade endpoints are decrypted for classical users

v1.2.3

31 Jan 21:59

Choose a tag to compare

Release-Notes

HTTP Sync & Async Request

  • Position new endpoints: Move Positions and Get Move Positions History
  • Account new endpoint: Batch Set Collateral Coin
  • TradeOrderRequest add a new parameter: marketUnit

Improvements

  • Fix Switch Position Mode Issue

Change Log

  • C:\Net\GithubProjects\open-api-sdk\bybit-java-api
  • Set Tp/SL and Set Risk Limit endpoints are deprecated
  • GetExecutionList move from PositionService to TradeService and rename to GetTradeHistory

v1.1.5

28 Jan 16:55

Choose a tag to compare

Release-Notes

HTTP Sync & Async Request

  • Position new endpoints: Move Positions and Get Move Positions History
  • Account new endpoint: Batch Set Collateral Coin

Improvements

  • Fix Switch Position Mode Issue

Change Log

  • Set Tp/SL and Set Risk Limit endpoints are deprecated
  • GetExecutionList move from PositionService to TradeService and rename to GetTradeHistory

v1.1.3

18 Dec 16:17

Choose a tag to compare

1 improve stability of websocket connection
2 add bind or unbind endpoint to Institution endpoint
3 refactor market and announcement endpoints

v1.1.2

18 Nov 16:31

Choose a tag to compare

Release-Notes

HTTP Sync & Async Request

  • Receive Window Parameter: Added by default (5 seconds).
  • Debug Mode Parameter: Added by default (false) to print request and response headers.
  • Base URL Setting: Allows setting to testnet or mainnet.
  • Log Option Interceptor Parameter: Currently supports SLF4J and OkHttp3; planning to support customized messaging in the next version.
  • Trade API: For create/amend/cancel single & batch orders, now supports dedicated class, map, and JSON.
  • Asset API: Deposit and withdrawal operations will automatically generate a transfer ID.
  • Account API : Add new function Set Spot Hedging
  • Position API : Add new function Confirm New Risk Limi

WebSocket

  • Ping Pong Interval Parameter: Added by default (20 seconds).
  • Max Alive Time Parameter: Only supports private channel, ranging from 30s to 600s (also supports minutes).
  • Log Option Interceptor for WebSocket: Currently supports SLF4J and OkHttp3; planning to support customized messaging in the next version.

Improvements

  • Class Mapping for POST Requests: Each POST request will have a class mapped and converted to JSON for the request body.
  • Enhanced Unit Tests: Added more tests for serialization and deserialization of data.
  • Performance Tests for WebSocket: Added tests for maximum argument limits.
  • POST Request Handling: Parameters not supported in query string will be reset to the body.
  • Security Enhancements: Secure check for signed requests implemented.

Change Log

  • CategoryType: Renamed from ProductType.
  • Deprecated useTestnet: This function is now deprecated.
  • Serialization Optimization: No reserialization of data before sending POST requests, using conversion instead.

v1.1.1

16 Nov 23:33

Choose a tag to compare

Release-Notes

HTTP Sync & Async Request

  • Receive Window Parameter: Added by default (5 seconds).
  • Debug Mode Parameter: Added by default (false) to print request and response headers.
  • Base URL Setting: Allows setting to testnet or mainnet.
  • Log Option Interceptor Parameter: Currently supports SLF4J and OkHttp3; planning to support customized messaging in the next version.
  • Trade API: For create/amend/cancel single & batch orders, now supports dedicated class, map, and JSON.
  • Asset API: Deposit and withdrawal operations will automatically generate a transfer ID.

WebSocket

  • Ping Pong Interval Parameter: Added by default (20 seconds).
  • Max Alive Time Parameter: Only supports private channel, ranging from 30s to 600s (also supports minutes).
  • Log Option Interceptor for WebSocket: Currently supports SLF4J and OkHttp3; planning to support customized messaging in the next version.

Improvements

  • Class Mapping for POST Requests: Each POST request will have a class mapped and converted to JSON for the request body.
  • Enhanced Unit Tests: Added more tests for serialization and deserialization of data.
  • Performance Tests for WebSocket: Added tests for maximum argument limits.
  • POST Request Handling: Parameters not supported in query string will be reset to the body.
  • Security Enhancements: Secure check for signed requests implemented.

Change Log

  • CategoryType: Renamed from ProductType.
  • Deprecated useTestnet: This function is now deprecated.
  • Serialization Optimization: No reserialization of data before sending POST requests, using conversion instead.

1.0.0

27 Oct 09:23

Choose a tag to compare

1 Websocket allow pass multiple args to public and private websocket client
2 Websocket add a debug mode to show request and response header