Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,72 @@
# Changelog
## 0.1.1 — 2026-10-09

### Added
- `AccountService::demoApplyMoney(...)`
- `AccountService::getOptionAssetInfo(...)`
- `AccountService::getPayInfo(...)`
- `AccountService::getTradeInfoForAnalysis(...)`
- `AssetService::getOverview(...)`
- `AssetService::getCoinGreeks(...)`
- `AssetService::queryCoinChainInfo(...)`
- `AssetService::smallAssetQuote(...)`
- `AssetService::smallAssetConvert(...)`
- `AssetService::querySmallAssetConvertOrder(...)`
- `AssetService::querySmallAssetList(...)`
- `AssetService::getDeliveryRecord(...)`
- `AssetService::setDefaultDepositToAccount(...)`
- `AssetService::queryDepositAddress(...)`
- `AssetService::queryInternalDepositRecords(...)`
- `AssetService::queryDepositRecords(...)`
- `AssetService::querySubMemberDepositAddress(...)`
- `AssetService::querySubMemberDepositRecords(...)`
- `AssetService::convertExecute(...)`
- `AssetService::queryResult(...)`
- `AssetService::queryOrderByPage(...)`
- `AssetService::coinListQuery(...)`
- `AssetService::convertHistoryQuery(...)`
- `AssetService::quoteApply(...)`
- `AssetService::getPortfolioMargin(...)`
- `AssetService::getSettlementRecord(...)`
- `AssetService::getTotalMembersAssets(...)`
- `AssetService::interTransfer(...)`
- `AssetService::accountCoinBalanceQuery(...)`
- `AssetService::interTransferListQuery(...)`
- `AssetService::subMemberListQuery(...)`
- `AssetService::transferCoinListQuery(...)`
- `AssetService::universalTransferListQuery(...)`
- `AssetService::universalTransfer(...)`
- `AssetService::cancelWithdraw(...)`
- `AssetService::sendWithdraw(...)`
- `AssetService::queryWithdrawAddresses(...)`
- `AssetService::queryWithdrawRecords(...)`
- `AssetService::getVaspList(...)`
- `AssetService::getWithdrawableAmountByCoin(...)`
- `CryptoLoanService::getFixedAvailableInventory(...)`
- `CryptoLoanService::getFixedRepaymentHistory(...)`
- `CryptoLoanService::supplyFixed(...)`
- `CryptoLoanService::getFlexibleAvailableInventory(...)`
- `EarnService::listAutoSavings(...)`
- `EarnService::editEarnAutoSavings(...)`
- `MarketService::getOptionBaseCoins(...)`
- `PositionService::getSymbolInfo(...)`
- `SpotMarginService::getTradeCoinState(...)`
- `SpotMarginService::queryFixedAvailableInventory(...)`
- `SpotMarginService::accountFixedBorrow(...)`
- `SpotMarginService::queryFixedBorrowContracts(...)`
- `SpotMarginService::queryFixedBorrowOrders(...)`
- `SpotMarginService::queryFixedBorrowMarket(...)`
- `SpotMarginService::renewFixedBorrow(...)`
- `SpotMarginService::getTradeFlexibleAvailableInventory(...)`
- `SpotMarginService::getTradeAutoRepayMode(...)`
- `SpotMarginService::queryBorrowLiability(...)`
- `SpotMarginService::getTradeMaxBorrowable(...)`
- `SpotMarginService::getTradeRepaymentAvailableAmount(...)`
- `SpotMarginService::setAutoRepayMode(...)`
- `SpotMarginService::spotMarginSetLeverage(...)`
- `SpotMarginService::getTradeState(...)`
- `SpotMarginService::spotMarginSwitchMode(...)`
- `UserService::queryReferralCode(...)`

All notable changes to this project will be documented in this file.

Expand Down
2 changes: 1 addition & 1 deletion src/Bybit.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
final class Bybit
{
public const VERSION = '0.1.0';
public const VERSION = '0.1.1';

public const BASE_URL_MAINNET = 'https://api.bybit.com';
public const BASE_URL_TESTNET = 'https://api-testnet.bybit.com';
Expand Down
65 changes: 65 additions & 0 deletions src/RestApi/AccountService.php
Original file line number Diff line number Diff line change
Expand Up @@ -424,4 +424,69 @@ public function upgradeToUtaPro(array $options = []): array
{
return $this->session->signRequest('POST', '/v5/account/upgrade-to-uta', $options);
}

/**
* Apply demo funds
*
* Demo Trading only. Configure `baseUrl: 'https://api-demo.bybit.com'`;
* `testnet: true` uses api-testnet.bybit.com and cannot call this endpoint.
*
* POST /v5/account/demo-apply-money
*
* @param array $options
* @return array Bybit V5 ApiResponse envelope (retCode / retMsg / result / retExtInfo / time).
* @see https://bybit-exchange.github.io/docs/v5/demo#request-demo-trading-funds
*/
public function demoApplyMoney(array $options = []): array
{
return $this->session->signRequest('POST', '/v5/account/demo-apply-money', $options);
}

/**
* Get Option Asset Info
*
* GET /v5/account/option-asset-info
*
* @param array $options
* @return array Bybit V5 ApiResponse envelope (retCode / retMsg / result / retExtInfo / time).
* @see https://bybit-exchange.github.io/docs/v5/account/option-asset-info
*/
public function getOptionAssetInfo(array $options = []): array
{
return $this->session->signRequest('GET', '/v5/account/option-asset-info', $options);
}

/**
* Get Pay Info
*
* GET /v5/account/pay-info
*
* @param array $options
* @return array Bybit V5 ApiResponse envelope (retCode / retMsg / result / retExtInfo / time).
* @see https://bybit-exchange.github.io/docs/v5/account/pay-info
*/
public function getPayInfo(array $options = []): array
{
return $this->session->signRequest('GET', '/v5/account/pay-info', $options);
}

/**
* Get Trade Info For Analysis
*
* GET /v5/account/trade-info-for-analysis
*
* @param string $symbol Symbol name, e.g. `BTCUSDT`, `ETHUSDT`.
* @param array $options
* @return array Bybit V5 ApiResponse envelope (retCode / retMsg / result / retExtInfo / time).
* @see https://bybit-exchange.github.io/docs/v5/account/trade-info-for-analysis
*/
public function getTradeInfoForAnalysis(string $symbol, array $options = []): array
{
return $this->session->signRequest(
'GET',
'/v5/account/trade-info-for-analysis',
array_merge($options, ['symbol' => $symbol])
);
}

}
Loading
Loading