Skip to content

feat(php-binance-api): add futures and other improvements. #509

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 77 commits into from
Apr 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
f86493a
add futuresGetPing, futuresUseServerTime, futuresExchangeInfo
rayBastard Mar 14, 2025
030927c
futuresUseServerTime updated
rayBastard Mar 17, 2025
d7dbde6
Base urls updated
yzh-pelle Mar 18, 2025
cfb390f
httpRequest updated
yzh-pelle Mar 18, 2025
eeb4d10
systemStatus updated with fapi
yzh-pelle Mar 19, 2025
83c5460
futuresTime and futuresExchangeInfo added
yzh-pelle Mar 19, 2025
66f99e9
futuresDepth added
yzh-pelle Mar 19, 2025
57591b2
futuresRecentTrades and futuresHistoricalTrades added
yzh-pelle Mar 19, 2025
46350b7
futuresAggTrades and futuresCandlesticks added
yzh-pelle Mar 20, 2025
2f7cb10
futuresCandlesticks updated
yzh-pelle Mar 20, 2025
cdf8f0d
different futures kline types added
yzh-pelle Mar 20, 2025
1751a46
futuresMarkPrice, futuresFundingRateHistory, futuresFundingInfo, futu…
rayBastard Mar 20, 2025
393f798
futuresSymbolPriceTickerV2, futuresSymbolOrderBookTicker, futuresDeli…
rayBastard Mar 21, 2025
dac8734
futuresFundingInfo, futuresDeliveryPrice, futuresOpenInterestStatisti…
yzh-pelle Mar 21, 2025
cc13309
futuresOpenInterestHistory and futuresTopLongShortPositionRatio added
yzh-pelle Mar 21, 2025
7fb78fc
other futures Ratio and Basis added
yzh-pelle Mar 21, 2025
70a47fe
futuresIndexInfo, assetIndex and futuresConstituents added
yzh-pelle Mar 21, 2025
7ad10b0
futures tickers updated
yzh-pelle Mar 25, 2025
863676f
futuresOrders added
yzh-pelle Apr 3, 2025
9f34d3b
futuresOrders updated
yzh-pelle Apr 3, 2025
0717e59
futuresOrders updated
yzh-pelle Apr 4, 2025
a426f84
futuresBuy added
yzh-pelle Apr 4, 2025
2bb1409
futuresSell added
yzh-pelle Apr 4, 2025
940c39d
createFuturesOrderRequest added
yzh-pelle Apr 4, 2025
626dbba
futuresBatchOrders added
yzh-pelle Apr 4, 2025
7be3f49
Argument test added to the futuresOrder
yzh-pelle Apr 4, 2025
f0f2fa7
createBatchOrdersRequest added
yzh-pelle Apr 4, 2025
a153747
futuresEditOrder added
yzh-pelle Apr 4, 2025
e79136c
futuresEditOrders added
yzh-pelle Apr 4, 2025
c0c1454
futuresBuyTest and futuresSellTest added
yzh-pelle Apr 4, 2025
b93f644
futuresOrderAmendment added
yzh-pelle Apr 5, 2025
bd6a812
futuresCancel added
yzh-pelle Apr 5, 2025
dac346e
futuresCancelBatchOrders added
yzh-pelle Apr 5, 2025
a442dc1
futuresCancelOpenOrders added
yzh-pelle Apr 5, 2025
99147cb
futuresCancelOpenOrders added
yzh-pelle Apr 7, 2025
49ac415
futuresOrderStatus added
yzh-pelle Apr 7, 2025
913e289
futuresAllOrders added
yzh-pelle Apr 7, 2025
f1bba3f
futuresOpenOrders added
yzh-pelle Apr 7, 2025
af0050b
futuresOpenOrder added
yzh-pelle Apr 7, 2025
3418007
futuresForceOrders added
yzh-pelle Apr 7, 2025
6be93e9
futuresSetMarginMode added
yzh-pelle Apr 7, 2025
a957982
futuresSetPositionMode added
yzh-pelle Apr 7, 2025
245cf52
futuresSetLeverage added
yzh-pelle Apr 7, 2025
ed4ebec
futuresSetMultiAssetsMarginMode added
yzh-pelle Apr 7, 2025
f02381d
futuresAddMargin futuresReduceMargin added
yzh-pelle Apr 7, 2025
a2e9358
futuresPositions added
yzh-pelle Apr 7, 2025
f33b6ff
futuresAdlQuantile added
yzh-pelle Apr 7, 2025
f03d84b
futuresPositionMarginChangeHistory added
yzh-pelle Apr 7, 2025
a436f12
v3 positions added
yzh-pelle Apr 7, 2025
d1353b9
transfer added
yzh-pelle Apr 7, 2025
98c31c6
balances updated for futures
yzh-pelle Apr 7, 2025
373bfaf
futuresBalances added
yzh-pelle Apr 7, 2025
a124da5
futuresAccount added
yzh-pelle Apr 7, 2025
6ec3af7
transfersHistory added
yzh-pelle Apr 7, 2025
79a3c93
futuresTradeFee added
yzh-pelle Apr 8, 2025
1e25133
futuresAccountConfig added
yzh-pelle Apr 8, 2025
a10a2aa
futuresMarginModes added
yzh-pelle Apr 8, 2025
5b489d6
Some other endpoints added
yzh-pelle Apr 8, 2025
d94d226
futuresLedger added
yzh-pelle Apr 8, 2025
755207b
futuresTradingStatus added
yzh-pelle Apr 8, 2025
bbbe2e1
futuresDownloadIdForTransactions added
yzh-pelle Apr 8, 2025
83f5f14
Futures transaction downloads added
yzh-pelle Apr 8, 2025
a9557df
futuresFeeBurn added
yzh-pelle Apr 8, 2025
2cab9c2
futuresFeeBurnStatus added
yzh-pelle Apr 8, 2025
5bcd574
futuresConvertExchangeInfo added
yzh-pelle Apr 8, 2025
c3f6dd2
convert endpoints added
yzh-pelle Apr 8, 2025
c75ea9b
add first test
carlosmiei Apr 8, 2025
9f362a9
init static tests
carlosmiei Apr 8, 2025
8eaf0ea
add live tests
carlosmiei Apr 8, 2025
ff950a7
composer.lock
carlosmiei Apr 8, 2025
901fc47
update gitignore
carlosmiei Apr 8, 2025
0d556b8
Merge remote-tracking branch 'upstream/master' into fapi-api
carlosmiei Apr 8, 2025
7e518a3
add live tests to the pipeline
carlosmiei Apr 8, 2025
222e9ec
add some live tests
carlosmiei Apr 9, 2025
8441e5e
fapiRequest added
yzh-pelle Apr 9, 2025
54daba7
update readme
carlosmiei Apr 10, 2025
6d61261
balances updated
yzh-pelle Apr 10, 2025
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
4 changes: 3 additions & 1 deletion .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ jobs:

- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Tests
- name: Static Tests
run: composer test
- name: Live Tests
run: composer live-tests

# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
# Docs: https://getcomposer.org/doc/articles/scripts.md
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
composer.lock
# composer.lock
vendor**
.buildpath
.project
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/683459a5a71c4875956cf23078a0c39b)](https://www.codacy.com/app/dmzoneill/php-binance-api?utm_source=github.com&utm_medium=referral&utm_content=jaggedsoft/php-binance-api&utm_campaign=Badge_Grade)
-->
# PHP Binance API
This project is designed to help you make your own projects that interact with [Binance](https://accounts.binance.com/register?ref=PGDFCE46). You can stream candlestick chart data, market depth, or use other advanced features such as setting stop losses and iceberg orders. This project seeks to have complete API coverage including WebSockets.
This project is designed to help you make your own projects that interact with [Binance](https://accounts.binance.com/register?ref=PGDFCE46). You can stream candlestick chart data, market depth, or use other advanced features such as setting stop losses and iceberg orders. This project seeks to have complete API coverage (spot and futures) including WebSockets.

#### Installation
```
Expand Down
8 changes: 6 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
"url": "https://github.com/jaggedsoft/php-binance-api"
}],
"require": {
"php": ">=7.0",
"php": ">=7.4",
"ext-curl": "*",
"ratchet/pawl": "^0.4.0",
"react/socket": "^1.0 || ^0.8 || ^0.7",
"ratchet/rfc6455": "^0.3"
},
"require-dev": {
"phpunit/phpunit": "~6",
"phpunit/phpunit": "^12.0",
"codacy/coverage": "dev-master"
},
"config": {
Expand All @@ -27,5 +27,9 @@
"php-binance-api.php",
"php-binance-api-rate-limiter.php"
]
},
"scripts": {
"test": "phpunit tests/BinanceStaticTests.php",
"live-tests": "phpunit tests/BinanceLiveTests.php"
}
}
Loading