Skip to content
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

Force source encoding to UTF-8 #25

Open
wants to merge 126 commits into
base: master
Choose a base branch
from
Open
Changes from 2 commits
Commits
Show all changes
126 commits
Select commit Hold shift + click to select a range
880955a
Ignore unknown properties for Orders.
joaopsilva Dec 6, 2017
af6ab53
Fixed #2 - Update account domain object to take into account newly ad…
joaopsilva Dec 12, 2017
432a77d
Create LICENSE
joaopsilva Dec 16, 2017
824b2e4
Resolves #5 - Support /exchangeInfo endpoint
joaopsilva Dec 23, 2017
adb7699
Merge branch 'master' of github.com:binance-exchange/binance-java-api
joaopsilva Dec 23, 2017
4e87d0c
Update HmacSHA256Signer.java
VaultDeveloper Jan 2, 2018
6b9c775
Update HmacSHA256Signer.java
VaultDeveloper Jan 2, 2018
b9a8afa
Merge pull request #19 from VaultDeveloper/patch-1
joaopsilva Jan 2, 2018
f0f4380
Fix java compile warnings
xezon Jan 6, 2018
59609e0
Ignore any user project files (generally starting with dot)
xezon Jan 6, 2018
4b70eea
Merge pull request #21 from xezon/warnings
joaopsilva Jan 7, 2018
f9d65c0
Merge pull request #22 from xezon/gitignore
joaopsilva Jan 7, 2018
076dc91
Add Json Serializers for CandlestickEvent and OrderBookEntry
xezon Jan 10, 2018
dc1c4f1
Fix missing Fill or Kill in TimeInForce
amirulzin Jan 11, 2018
5f66558
Merge pull request #28 from amirulzin/patch-add-timeinforce
joaopsilva Jan 11, 2018
74289e4
Merge pull request #26 from xezon/event_serialization
joaopsilva Jan 11, 2018
a07a578
Fix ObjectMapper not being cached per response call
amirulzin Jan 13, 2018
a718416
Create ObjectMapper lazily on UserDataUpdateEvent deserialization
amirulzin Jan 13, 2018
4d76c23
Merge pull request #30 from amirulzin/fix-objectmapper
joaopsilva Jan 13, 2018
c25eb80
Expose the 'U' (first update), as well as the 'u' (final update)
Jan 22, 2018
299411f
- added javadocs
Jan 23, 2018
382a679
Merge pull request #41 from datalorax/expose_first_update
joaopsilva Jan 23, 2018
18e3b0a
Improvements to error handling and the ability to shutdown the client…
Jan 25, 2018
f2b5a83
Allow up to 100 connections to binance.
mcourteaux Jan 26, 2018
c1c7f96
Merge pull request #53 from mcourteaux/more-connections
joaopsilva Jan 27, 2018
4a47ca1
Added AllMarketTickers channel
tonyskulk Jan 27, 2018
9130566
Swicthed to use ToStringBuilder
tonyskulk Jan 27, 2018
92ae20a
Add all market tickers example.
tonyskulk Jan 27, 2018
5995165
Added ability to query 24hr ticker price change statistics for all sy…
nomailforme Jan 28, 2018
e3df9d7
Merge pull request #56 from tonyskulk/all-market-tickers
joaopsilva Jan 29, 2018
1564ffe
Fixes #59 Typo in CandlestickInterval enum.
joaopsilva Jan 29, 2018
c3cd9e1
Merge branch 'master' into error_handling_and_shutdown
big-andy-coates Jan 29, 2018
e95b670
NewOrder.newClientOrderId() is now passed through to binance when pla…
Feb 2, 2018
89d4c79
Merge pull request #63 from wiigor/master
joaopsilva Feb 2, 2018
8080c1f
Added symbol name to TickerStatistics
nomailforme Feb 3, 2018
a10dc0c
-Removed unused imports
Feb 4, 2018
8664140
Add error handling and closure of websockets to readme
Feb 5, 2018
37ef9a0
code review improvements
Feb 5, 2018
d088fe0
Pull request changes
nomailforme Feb 5, 2018
31fd444
Merge pull request #60 from nomailforme/master
joaopsilva Feb 6, 2018
8f41f61
issues-52 Fix - Added feature to override the ToStringStyle used by t…
gizmochief7 Feb 7, 2018
769d8ff
issues-52 Fix - Added feature to override the ToStringStyle used by t…
gizmochief7 Feb 7, 2018
25114c5
fixe issue #54
Feb 8, 2018
d3ef4f3
- add test
Feb 8, 2018
71556ef
Merge pull request #66 from datalorax/auth_intercept
joaopsilva Feb 8, 2018
57f67de
Merge origin/master
gizmochief7 Feb 8, 2018
577f678
issues-52 removed GSON dependancy. Removed prettyPrintJson util metho…
gizmochief7 Feb 8, 2018
ee97f99
Merge branch 'master' of https://github.com/gizmochief7/binance-java-api
gizmochief7 Feb 21, 2018
f7909b3
Merge pull request #65 from gizmochief7/master
joaopsilva Feb 21, 2018
8619c19
/api/v1/trades and /api/v1/historicalTrades calls support
hoota Feb 23, 2018
ce283c9
/api/v1/trades and /api/v1/historicalTrades calls support import styl…
hoota Feb 23, 2018
b610284
/api/v1/trades and /api/v1/historicalTrades calls support import styl…
hoota Feb 23, 2018
da76f01
/api/v1/trades and /api/v1/historicalTrades calls support import styl…
hoota Feb 23, 2018
e7d53bf
/api/v1/trades and /api/v1/historicalTrades calls support import styl…
hoota Feb 23, 2018
f7f022d
ENDPOINT_SECURITY_TYPE_APIKEY_HEADER for historicalTrades
hoota Feb 23, 2018
c64cee1
Merge pull request #49 from big-andy-coates/error_handling_and_shutdown
joaopsilva Feb 23, 2018
c74e807
/api/v1/trades and /api/v1/historicalTrades async calls support
hoota Feb 23, 2018
8046f75
Merge pull request #80 from hoota/trades_api_call
joaopsilva Feb 23, 2018
6d86212
Fix the initialization of the depth cache. Old code had a race condit…
big-andy-coates Feb 24, 2018
5029b19
Better docs / comments
big-andy-coates Feb 24, 2018
8ae3b0a
Merge pull request #82 from big-andy-coates/fix_depth_cache_init
joaopsilva Feb 25, 2018
0c9354f
Add reconnect & close logic
big-andy-coates Feb 25, 2018
6f53a88
Merge pull request #83 from big-andy-coates/reconnect
joaopsilva Feb 26, 2018
8571a99
Add support for AllAssets
TobCar Mar 14, 2018
91dd28f
Expose getAllAssets JSON call
TobCar Mar 25, 2018
00cb268
Merge pull request #98 from TobCar/master
joaopsilva Mar 25, 2018
69f56f5
Fixes #103: Add support for fetching all assets.
joaopsilva Mar 26, 2018
97a08b0
Route exceptions via onFailure callback rather than throwing them
nilswx Apr 25, 2018
1c90686
Add support for newOrderRespType (v3 API)
nilswx Apr 29, 2018
7b92e7a
Demonstrate use of newOrderRespType in OrdersExample
nilswx Apr 29, 2018
ce38cb8
Parse both 'id' and 'tradeId' into Trade#id to deal with inconsistent…
nilswx Apr 29, 2018
d7835f5
Add NewOrderResponse#origQty
nilswx Apr 29, 2018
16e94f3
Demonstrate use of newOrderRespType in README.md
nilswx Apr 29, 2018
6067b08
withdrawal status added, conflicts resolved
May 4, 2018
db200f2
Merge pull request #126 from igorustinov/master
joaopsilva May 4, 2018
bf55921
Fix #125: Avoid 301 redirect for asset info API.
joaopsilva May 4, 2018
eb1ff5c
Merge pull request #122 from nilswxa/master
joaopsilva May 4, 2018
ff7db64
Fix #127 Remove meta header.
joaopsilva May 6, 2018
a00fa6e
Merge branch 'master' of github.com:binance-exchange/binance-java-api
joaopsilva May 6, 2018
aebcf15
Cleanup the client/interceptor and errorBody converter mess in Binanc…
nilswx May 15, 2018
bed23c0
Improve web socket creation: use the process-wide shared HTTP client …
nilswx May 15, 2018
95ab6bf
Upgrade Retrofit, which upgrades OkHttp, which now properly honors pi…
nilswx May 15, 2018
a10a0e9
Cannot deserialize value of type `com.binance.api.client.domain.gener…
Jul 19, 2018
25e008e
Merge pull request #156 from jinxxik/master
joaopsilva Jul 19, 2018
84adddb
Add support for ICEBERG_PARTS and MAX_NUM_ALGO_ORDERS filter.
joaopsilva Jul 19, 2018
9dd2477
ignore properties add for avoiding new fields deserialization exception
gungoren Jul 20, 2018
fcee5de
Merge branch 'master' of https://github.com/binance-exchange/binance-…
gungoren Jul 20, 2018
137cfd4
Issue 157: Exception when getting all trades of a symbol
Jul 20, 2018
59bf8ff
Merge pull request #159 from pahgo/master
joaopsilva Jul 20, 2018
505a4a0
Merge pull request #158 from evhar002/master
joaopsilva Jul 20, 2018
bb8a3b6
binance api change 2018-07-18: added param cummulativeQuoteQty to the…
brintal Jul 20, 2018
6b4de68
binance api change 2018-07-18: updated javadoc to reflect the new lim…
brintal Jul 20, 2018
29f603e
Merge pull request #160 from brintal/master
joaopsilva Jul 20, 2018
dff4c70
Merge latest remote changes into this fork to maintain API compatility
nilswx Jul 23, 2018
9a6cd16
fixed market ticker event
Jul 23, 2018
abe4e31
Fix for ORDER_WOULD_TRIGGER_IMMEDIATELY
Aug 20, 2018
fd76377
Merge pull request #170 from Moskitek/master
joaopsilva Aug 23, 2018
f0cf925
multi-channel subscription on single websocket
mironbalcerzak Aug 26, 2018
429c704
Preventing NPE while boxing/unboxing
mironbalcerzak Sep 2, 2018
8055ac1
Preventing NPE while boxing/unboxing - JUnit fix
mironbalcerzak Sep 2, 2018
4363070
Add support for cancel order response.
joaopsilva Sep 12, 2018
8f2bff1
Merge pull request #133 from nilswxa/master
joaopsilva Sep 13, 2018
15489f0
Merge branch 'master' into master
joaopsilva Sep 13, 2018
e31ad64
Merge pull request #163 from Krasks/master
joaopsilva Sep 13, 2018
2da9453
Make fills toString null-safe.
joaopsilva Sep 13, 2018
e7995c0
Add unit tests for NewOrderResponse.
joaopsilva Sep 13, 2018
7a1fc4f
Merge pull request #178 from mironbalcerzak/master
joaopsilva Sep 13, 2018
d39139a
configure custom dispatcher for sharedClient to allow for more parall…
brintal Nov 14, 2018
d74588f
Merge pull request #190 from brintal/master
joaopsilva Dec 3, 2018
d6801c2
adds new filter type values
igorustinov Dec 4, 2018
0a5624b
Merge pull request #194 from igorustinov/pr_new_filtertypes
joaopsilva Dec 4, 2018
7c2a4f4
Add bid price and quantity to AllMarketTickersEvent
Gtofig Jan 12, 2019
1d0eef8
Merge pull request #198 from Gtofig/AllMarketTickersEventBidPricePatch
joaopsilva Jan 14, 2019
dd121ac
Cache ObjectMapper.
joaopsilva Mar 10, 2019
96bbbd1
Use ObjectReader instance for processing JSON.
joaopsilva Mar 10, 2019
5c4451c
add status and executedQty to CancelOrderResponse
mdvx Mar 31, 2019
0d47038
Merge branch 'master' of github.com:binance-exchange/binance-java-api
mdvx Mar 31, 2019
e038355
Merge pull request #207 from mdvx/master
joaopsilva May 21, 2019
22df744
Add license to POM for license-maven-plugin compatibility
benalexau Jun 14, 2019
54bc694
Add Cummulative Quote Quantity
putraxor Aug 12, 2019
25a23ce
Fixed parsing of UserDataUpdateEvents with regard to the new 'outboun…
mcourteaux Aug 16, 2019
9aabc01
Merge pull request #224 from mcourteaux/fix-outboundAccountPosition
joaopsilva Aug 17, 2019
a15902a
Adjusted recvWindow to 60000.
joaopsilva Aug 17, 2019
84752f1
Merge pull request #220 from putraxor/patch-1
joaopsilva Aug 17, 2019
9e6cfca
Merge pull request #213 from benalexau/master
joaopsilva Aug 17, 2019
93a55cd
force source encoding to UTF-8
mlaubre Aug 19, 2019
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
Original file line number Diff line number Diff line change
@@ -103,15 +103,15 @@ public void getBookTickers(BinanceApiCallback<List<BookTicker>> callback) {
@Override
public void newOrder(NewOrder order, BinanceApiCallback<NewOrderResponse> callback) {
binanceApiService.newOrder(order.getSymbol(), order.getSide(), order.getType(),
order.getTimeInForce(), order.getQuantity(), order.getPrice(), order.getStopPrice(), order.getIcebergQty(),
order.getRecvWindow(), order.getTimestamp()).enqueue(new BinanceApiCallbackAdapter<>(callback));
order.getTimeInForce(), order.getQuantity(), order.getPrice(), order.getNewClientOrderId(), order.getStopPrice(),
order.getIcebergQty(), order.getRecvWindow(), order.getTimestamp()).enqueue(new BinanceApiCallbackAdapter<>(callback));
}

@Override
public void newOrderTest(NewOrder order, BinanceApiCallback<Void> callback) {
binanceApiService.newOrderTest(order.getSymbol(), order.getSide(), order.getType(),
order.getTimeInForce(), order.getQuantity(), order.getPrice(), order.getStopPrice(), order.getIcebergQty(),
order.getRecvWindow(), order.getTimestamp()).enqueue(new BinanceApiCallbackAdapter<>(callback));
order.getTimeInForce(), order.getQuantity(), order.getPrice(), order.getNewClientOrderId(), order.getStopPrice(),
order.getIcebergQty(), order.getRecvWindow(), order.getTimestamp()).enqueue(new BinanceApiCallbackAdapter<>(callback));
}

// Account endpoints
Original file line number Diff line number Diff line change
@@ -101,15 +101,15 @@ public List<BookTicker> getBookTickers() {
@Override
public NewOrderResponse newOrder(NewOrder order) {
return executeSync(binanceApiService.newOrder(order.getSymbol(), order.getSide(), order.getType(),
order.getTimeInForce(), order.getQuantity(), order.getPrice(), order.getStopPrice(), order.getIcebergQty(),
order.getRecvWindow(), order.getTimestamp()));
order.getTimeInForce(), order.getQuantity(), order.getPrice(), order.getNewClientOrderId(), order.getStopPrice(),
order.getIcebergQty(), order.getRecvWindow(), order.getTimestamp()));
}

@Override
public void newOrderTest(NewOrder order) {
executeSync(binanceApiService.newOrderTest(order.getSymbol(), order.getSide(), order.getType(),
order.getTimeInForce(), order.getQuantity(), order.getPrice(), order.getStopPrice(), order.getIcebergQty(),
order.getRecvWindow(), order.getTimestamp()));
order.getTimeInForce(), order.getQuantity(), order.getPrice(), order.getNewClientOrderId(), order.getStopPrice(),
order.getIcebergQty(), order.getRecvWindow(), order.getTimestamp()));
}

// Account endpoints
Original file line number Diff line number Diff line change
@@ -74,15 +74,15 @@ Call<List<Candlestick>> getCandlestickBars(@Query("symbol") String symbol, @Quer
@POST("/api/v3/order")
Call<NewOrderResponse> newOrder(@Query("symbol") String symbol, @Query("side") OrderSide side, @Query("type") OrderType type,
@Query("timeInForce") TimeInForce timeInForce, @Query("quantity") String quantity, @Query("price") String price,
@Query("stopPrice") String stopPrice, @Query("icebergQty") String icebergQty,
@Query("recvWindow") Long recvWindow, @Query("timestamp") Long timestamp);
@Query("newClientOrderId") String newClientOrderId, @Query("stopPrice") String stopPrice,
@Query("icebergQty") String icebergQty, @Query("recvWindow") Long recvWindow, @Query("timestamp") Long timestamp);

@Headers(BinanceApiConstants.ENDPOINT_SECURITY_TYPE_SIGNED_HEADER)
@POST("/api/v3/order/test")
Call<Void> newOrderTest(@Query("symbol") String symbol, @Query("side") OrderSide side, @Query("type") OrderType type,
@Query("timeInForce") TimeInForce timeInForce, @Query("quantity") String quantity, @Query("price") String price,
@Query("stopPrice") String stopPrice, @Query("icebergQty") String icebergQty,
@Query("recvWindow") Long recvWindow, @Query("timestamp") Long timestamp);
@Query("newClientOrderId") String newClientOrderId, @Query("stopPrice") String stopPrice,
@Query("icebergQty") String icebergQty, @Query("recvWindow") Long recvWindow, @Query("timestamp") Long timestamp);

@Headers(BinanceApiConstants.ENDPOINT_SECURITY_TYPE_SIGNED_HEADER)
@GET("/api/v3/order")