Skip to content

Commit

Permalink
Merge pull request #114 from binance/rc-v3.3.0
Browse files Browse the repository at this point in the history
v3.3.0
  • Loading branch information
alplabin authored Jun 19, 2024
2 parents 014c086 + 68e6251 commit f74f157
Show file tree
Hide file tree
Showing 77 changed files with 53 additions and 3,482 deletions.
48 changes: 48 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,53 @@
# Changelog

## 3.3.0 - 2024-06-19
### Changed
- Upgraded dependencies
- Updated default testnet Websocket API URL to `wss://ws-api.testnet.binance.vision`
- Updated default testnet Websocket Stream URL to `wss://stream.testnet.binance.vision`

### Removed
- Deleted deprecated Bswap, Margin and Staking endpoints, namely:
- Bswap
- `GET /sapi/v1/bswap/pools`
- `GET /sapi/v1/bswap/liquidity`
- `POST /sapi/v1/bswap/liquidityAdd`
- `POST /sapi/v1/bswap/liquidityRemove`
- `GET /sapi/v1/bswap/liquidityOps`
- `GET /sapi/v1/bswap/quote`
- `POST /sapi/v1/bswap/swap`
- `GET /sapi/v1/bswap/swap`
- `GET /sapi/v1/bswap/poolConfigure`
- `GET /sapi/v1/bswap/addLiquidityPreview`
- `GET /sapi/v1/bswap/removeLiquidityPreview`
- `GET /sapi/v1/bswap/unclaimedRewards`
- `POST /sapi/v1/bswap/claimRewards`
- `GET /sapi/v1/bswap/claimedHistory`

- Margin
- `POST /sapi/v1/margin/transfer`
- `POST /sapi/v1/margin/isolated/transfer`
- `POST /sapi/v1/margin/loan`
- `POST /sapi/v1/margin/repay`
- `GET /sapi/v1/margin/isolated/transfer`
- `GET /sapi/v1/margin/asset`
- `GET /sapi/v1/margin/pair`
- `GET /sapi/v1/margin/isolated/pair`
- `GET /sapi/v1/margin/loan`
- `GET /sapi/v1/margin/repay`
- `GET /sapi/v1/margin/dribblet`
- `GET /sapi/v1/margin/dust`
- `POST /sapi/v1/margin/dust`

- Staking
- `GET /sapi/v1/staking/productList`
- `POST /sapi/v1/staking/purchase`
- `POST /sapi/v1/staking/redeem`
- `GET /sapi/v1/staking/position`
- `GET /sapi/v1/staking/stakingRecord`
- `POST /sapi/v1/staking/setAutoStaking`
- `GET /sapi/v1/staking/personalLeftQuota`

## 3.2.0 - 2023-12-22

### Added
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>io.github.binance</groupId>
<artifactId>binance-connector-java</artifactId>
<version>3.2.0</version>
<version>3.3.0</version>
<packaging>jar</packaging>
<name>${project.groupId}:${project.artifactId}</name>
<description>lightweight connector to API</description>
Expand Down Expand Up @@ -194,7 +194,7 @@
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk18on</artifactId>
<version>1.74</version>
<version>1.78</version>
</dependency>
</dependencies>
</project>
2 changes: 0 additions & 2 deletions src/main/java/com/binance/connector/client/SpotClient.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.binance.connector.client;

import com.binance.connector.client.impl.spot.AutoInvest;
import com.binance.connector.client.impl.spot.BSwap;
import com.binance.connector.client.impl.spot.Blvt;
import com.binance.connector.client.impl.spot.C2C;
import com.binance.connector.client.impl.spot.Convert;
Expand Down Expand Up @@ -33,7 +32,6 @@ public interface SpotClient {
void unsetProxy();
AutoInvest createAutoInvest();
Blvt createBlvt();
BSwap createBswap();
C2C createC2C();
Convert createConvert();
CryptoLoans createCryptoLoans();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ public final class DefaultUrls {
public static final String WS_URL = "wss://stream.binance.com:9443";
public static final String WS_API_URL = "wss://ws-api.binance.com:443/ws-api/v3";
public static final String TESTNET_URL = "https://testnet.binance.vision";
public static final String TESTNET_WS_URL = "wss://testnet.binance.vision";
public static final String TESTNET_WS_API_URL = "wss://testnet.binance.vision/ws-api/v3";
public static final String TESTNET_WS_URL = "wss://stream.testnet.binance.vision";
public static final String TESTNET_WS_API_URL = "wss://ws-api.testnet.binance.vision/ws-api/v3";
public static final String MARKET_URL = "https://data-api.binance.vision";
public static final String MARKET_WS_URL = "wss://data-stream.binance.vision";
private DefaultUrls() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import com.binance.connector.client.SpotClient;
import com.binance.connector.client.enums.DefaultUrls;
import com.binance.connector.client.impl.spot.AutoInvest;
import com.binance.connector.client.impl.spot.BSwap;
import com.binance.connector.client.impl.spot.Blvt;
import com.binance.connector.client.impl.spot.C2C;
import com.binance.connector.client.impl.spot.Convert;
Expand Down Expand Up @@ -89,11 +88,6 @@ public Blvt createBlvt() {
return new Blvt(baseUrl, apiKey, signatureGenerator, showLimitUsage, proxy);
}

@Override
public BSwap createBswap() {
return new BSwap(baseUrl, apiKey, signatureGenerator, showLimitUsage, proxy);
}

@Override
public C2C createC2C() {
return new C2C(baseUrl, apiKey, signatureGenerator, showLimitUsage, proxy);
Expand Down
Loading

0 comments on commit f74f157

Please sign in to comment.