From 3b474b837095c89ec43c9a23278a2b4b78be0320 Mon Sep 17 00:00:00 2001 From: wuhewuhe Date: Wed, 11 Sep 2024 17:46:30 +0200 Subject: [PATCH] 1.2.7 --- pom.xml | 43 ++++++++++--------- .../account/request/AccountDataRequest.java | 2 + .../request/AnnouncementInfoRequest.java | 4 +- .../domain/broker/BrokerDataRequest.java | 4 +- .../institution/LendingDataRequest.java | 2 + .../market/request/MarketDataRequest.java | 2 + .../position/request/PositionDataRequest.java | 4 +- .../trade/request/TradeOrderRequest.java | 2 + .../impl/BybitApiAccountRestClientImpl.java | 2 +- .../BybitApiAsyncLendingRestClientImpl.java | 4 +- .../impl/BybitApiLendingRestClientImpl.java | 4 +- .../BybitApiAsyncLendingRestClient.java | 4 +- .../restApi/BybitApiLendingRestClient.java | 4 +- .../api/client/restApi/BybitApiService.java | 6 +-- .../impl/WebsocketStreamClientImpl.java | 6 +-- .../domain/account/AccountBalanceTest.java | 2 +- .../asset/BybitApiAssetRestClientTest.java | 1 - .../position/PositionListCursotTest.java | 2 +- .../spot_margin/SpotMarginTradeTest.java | 2 +- .../bybit/api/domain/trade/OpenOrderTest.java | 4 +- .../api/domain/trade/OrderHistoryTest.java | 4 +- .../api/examples/http/sync/C2CExample.java | 4 +- 22 files changed, 65 insertions(+), 47 deletions(-) diff --git a/pom.xml b/pom.xml index 612b0c2..c675b0b 100644 --- a/pom.xml +++ b/pom.xml @@ -6,9 +6,9 @@ io.github.wuhewuhe bybit-java-api - 1.2.7-SNAPSHOT + 1.2.7 bybit-java-api - https://github.com/wuhewuhe/bybit-java-api + https://github.com/VictorFrWu/bybit-java-api @@ -45,9 +45,9 @@ - scm:git:git://github.com/wuhewuhe/bybit-java-api.git - scm:git:ssh://github.com/wuhewuhe/bybit-java-api.git - https://github.com/wuhewuhe/bybit-java-api + scm:git:git://github.com/VictorFrWu/bybit-java-api.git + scm:git:ssh://github.com/VictorFrWu/bybit-java-api.git + https://github.com/VictorFrWu/bybit-java-api @@ -157,7 +157,7 @@ github GitHub Packages Repository - https://maven.pkg.github.com/wuhewuhe/bybit-java-api + https://maven.pkg.github.com/VictorFrWu/bybit-java-api --> @@ -173,6 +173,16 @@ + org.apache.maven.plugins maven-compiler-plugin @@ -190,22 +200,11 @@ - - - org.apache.maven.plugins - maven-release-plugin - 3.0.1 - - true - false - release - deploy - - + org.sonatype.plugins nexus-staging-maven-plugin - 1.6.8 + 1.6.7 true ossrh @@ -213,6 +212,8 @@ true + + org.apache.maven.plugins maven-source-plugin @@ -244,10 +245,12 @@ + + org.apache.maven.plugins maven-gpg-plugin - 3.0.1 + 1.5 sign-artifacts diff --git a/src/main/java/com/bybit/api/client/domain/account/request/AccountDataRequest.java b/src/main/java/com/bybit/api/client/domain/account/request/AccountDataRequest.java index f5e00a7..822eb20 100644 --- a/src/main/java/com/bybit/api/client/domain/account/request/AccountDataRequest.java +++ b/src/main/java/com/bybit/api/client/domain/account/request/AccountDataRequest.java @@ -7,6 +7,7 @@ import com.bybit.api.client.domain.position.MarginMode; import com.bybit.api.client.domain.preupgrade.TransactionType; import com.bybit.api.client.domain.user.IsUta; +import com.fasterxml.jackson.annotation.JsonInclude; import lombok.Builder; import lombok.Getter; import lombok.Setter; @@ -16,6 +17,7 @@ @Setter @ToString @Builder +@JsonInclude(JsonInclude.Include.NON_NULL) public class AccountDataRequest { private AccountType accountType; private CategoryType category; diff --git a/src/main/java/com/bybit/api/client/domain/announcement/request/AnnouncementInfoRequest.java b/src/main/java/com/bybit/api/client/domain/announcement/request/AnnouncementInfoRequest.java index 368b091..230506a 100644 --- a/src/main/java/com/bybit/api/client/domain/announcement/request/AnnouncementInfoRequest.java +++ b/src/main/java/com/bybit/api/client/domain/announcement/request/AnnouncementInfoRequest.java @@ -3,6 +3,7 @@ import com.bybit.api.client.domain.announcement.AnnouncementTag; import com.bybit.api.client.domain.announcement.AnnouncementType; import com.bybit.api.client.domain.announcement.LanguageSymbol; +import com.fasterxml.jackson.annotation.JsonInclude; import lombok.Builder; import lombok.Getter; import lombok.Setter; @@ -10,8 +11,9 @@ @Getter @Setter -@Builder @ToString +@Builder +@JsonInclude(JsonInclude.Include.NON_NULL) public class AnnouncementInfoRequest { private LanguageSymbol locale; private AnnouncementType type; diff --git a/src/main/java/com/bybit/api/client/domain/broker/BrokerDataRequest.java b/src/main/java/com/bybit/api/client/domain/broker/BrokerDataRequest.java index d9638fb..8a71a24 100644 --- a/src/main/java/com/bybit/api/client/domain/broker/BrokerDataRequest.java +++ b/src/main/java/com/bybit/api/client/domain/broker/BrokerDataRequest.java @@ -1,5 +1,6 @@ package com.bybit.api.client.domain.broker; +import com.fasterxml.jackson.annotation.JsonInclude; import lombok.Builder; import lombok.Getter; import lombok.Setter; @@ -7,8 +8,9 @@ @Getter @Setter -@Builder @ToString +@Builder +@JsonInclude(JsonInclude.Include.NON_NULL) public class BrokerDataRequest { private final BusinessType bizType; private final String subMemberId; diff --git a/src/main/java/com/bybit/api/client/domain/institution/LendingDataRequest.java b/src/main/java/com/bybit/api/client/domain/institution/LendingDataRequest.java index 5eed911..d8a954f 100644 --- a/src/main/java/com/bybit/api/client/domain/institution/LendingDataRequest.java +++ b/src/main/java/com/bybit/api/client/domain/institution/LendingDataRequest.java @@ -1,6 +1,7 @@ package com.bybit.api.client.domain.institution; import com.bybit.api.client.domain.broker.BusinessType; +import com.fasterxml.jackson.annotation.JsonInclude; import lombok.Builder; import lombok.Getter; import lombok.Setter; @@ -10,6 +11,7 @@ @Setter @ToString @Builder +@JsonInclude(JsonInclude.Include.NON_NULL) public class LendingDataRequest { private final String productId; private final String orderId; diff --git a/src/main/java/com/bybit/api/client/domain/market/request/MarketDataRequest.java b/src/main/java/com/bybit/api/client/domain/market/request/MarketDataRequest.java index 1c461aa..34c2a3a 100644 --- a/src/main/java/com/bybit/api/client/domain/market/request/MarketDataRequest.java +++ b/src/main/java/com/bybit/api/client/domain/market/request/MarketDataRequest.java @@ -5,6 +5,7 @@ import com.bybit.api.client.domain.announcement.AnnouncementType; import com.bybit.api.client.domain.announcement.LanguageSymbol; import com.bybit.api.client.domain.market.*; +import com.fasterxml.jackson.annotation.JsonInclude; import lombok.Builder; import lombok.Getter; import lombok.Setter; @@ -14,6 +15,7 @@ @Setter @ToString @Builder +@JsonInclude(JsonInclude.Include.NON_NULL) public class MarketDataRequest { private CategoryType category; // always required private String coin; diff --git a/src/main/java/com/bybit/api/client/domain/position/request/PositionDataRequest.java b/src/main/java/com/bybit/api/client/domain/position/request/PositionDataRequest.java index 2a755a6..a25b77f 100644 --- a/src/main/java/com/bybit/api/client/domain/position/request/PositionDataRequest.java +++ b/src/main/java/com/bybit/api/client/domain/position/request/PositionDataRequest.java @@ -5,6 +5,7 @@ import com.bybit.api.client.domain.TriggerBy; import com.bybit.api.client.domain.position.*; import com.bybit.api.client.domain.trade.PositionIdx; +import com.fasterxml.jackson.annotation.JsonInclude; import lombok.Builder; import lombok.Getter; import lombok.Setter; @@ -12,8 +13,9 @@ @Getter @Setter -@Builder @ToString +@Builder +@JsonInclude(JsonInclude.Include.NON_NULL) public class PositionDataRequest { private CategoryType category; private String symbol; diff --git a/src/main/java/com/bybit/api/client/domain/trade/request/TradeOrderRequest.java b/src/main/java/com/bybit/api/client/domain/trade/request/TradeOrderRequest.java index fc0eacc..7e94f32 100644 --- a/src/main/java/com/bybit/api/client/domain/trade/request/TradeOrderRequest.java +++ b/src/main/java/com/bybit/api/client/domain/trade/request/TradeOrderRequest.java @@ -5,6 +5,7 @@ import com.bybit.api.client.domain.TriggerBy; import com.bybit.api.client.domain.position.ExecType; import com.bybit.api.client.domain.trade.*; +import com.fasterxml.jackson.annotation.JsonInclude; import lombok.Builder; import lombok.Getter; import lombok.Setter; @@ -14,6 +15,7 @@ @Setter @ToString @Builder +@JsonInclude(JsonInclude.Include.NON_NULL) public class TradeOrderRequest { private CategoryType category; // always Required private String symbol; diff --git a/src/main/java/com/bybit/api/client/impl/BybitApiAccountRestClientImpl.java b/src/main/java/com/bybit/api/client/impl/BybitApiAccountRestClientImpl.java index 93f20f5..d14d93c 100644 --- a/src/main/java/com/bybit/api/client/impl/BybitApiAccountRestClientImpl.java +++ b/src/main/java/com/bybit/api/client/impl/BybitApiAccountRestClientImpl.java @@ -20,7 +20,7 @@ public BybitApiAccountRestClientImpl(String apiKey, String secret, String baseUr @Override public Object getWalletBalance(AccountDataRequest walletBalanceRequest) { return executeSync(bybitApiService.getWalletBalance( - walletBalanceRequest.getAccountType().getAccountTypeValue(), + walletBalanceRequest.getAccountType() == null ? null : walletBalanceRequest.getAccountType().getAccountTypeValue(), walletBalanceRequest.getCoins() )); } diff --git a/src/main/java/com/bybit/api/client/impl/BybitApiAsyncLendingRestClientImpl.java b/src/main/java/com/bybit/api/client/impl/BybitApiAsyncLendingRestClientImpl.java index 26addd1..269a870 100644 --- a/src/main/java/com/bybit/api/client/impl/BybitApiAsyncLendingRestClientImpl.java +++ b/src/main/java/com/bybit/api/client/impl/BybitApiAsyncLendingRestClientImpl.java @@ -55,7 +55,7 @@ public void updateInstitutionLoanUid(LendingDataRequest lendingDataRequest, Bybi bybitApiService.updateInstitutionLoanUid(updateInsUidRequest).enqueue(new BybitApiCallbackAdapter<>(callback)); } - // C2C Lending + /*// C2C Lending @Override public void getC2CLendingCoinInfo(LendingDataRequest lendingDataRequest, BybitApiCallback callback) { bybitApiService.getC2CLendingCoinInfo(lendingDataRequest.getCoin()).enqueue(new BybitApiCallbackAdapter<>(callback)); @@ -95,5 +95,5 @@ public void getC2cOrdersRecords(LendingDataRequest c2cOrdersRecordsRequest, Bybi public void getC2CLendingAccountInfo(LendingDataRequest lendingDataRequest, BybitApiCallback callback) { String coin = lendingDataRequest.getCoin(); bybitApiService.getC2CLendingAccountInfo(coin).enqueue(new BybitApiCallbackAdapter<>(callback)); - } + }*/ } diff --git a/src/main/java/com/bybit/api/client/impl/BybitApiLendingRestClientImpl.java b/src/main/java/com/bybit/api/client/impl/BybitApiLendingRestClientImpl.java index 57ce06f..7f2e8c0 100644 --- a/src/main/java/com/bybit/api/client/impl/BybitApiLendingRestClientImpl.java +++ b/src/main/java/com/bybit/api/client/impl/BybitApiLendingRestClientImpl.java @@ -53,7 +53,7 @@ public Object updateInstitutionLoanUid(LendingDataRequest lendingDataRequest) { } // C2C Endpoints - @Override + /*@Override public Object getC2CLendingCoinInfo(LendingDataRequest lendingDataRequest) { return executeSync(bybitApiService.getC2CLendingCoinInfo(lendingDataRequest.getCoin())); } @@ -92,5 +92,5 @@ public Object getC2cOrdersRecords(LendingDataRequest c2cOrdersRecordsRequest) { public Object getC2CLendingAccountInfo(LendingDataRequest lendingDataRequest) { String coin = lendingDataRequest.getCoin(); return executeSync(bybitApiService.getC2CLendingAccountInfo(coin)); - } + }*/ } diff --git a/src/main/java/com/bybit/api/client/restApi/BybitApiAsyncLendingRestClient.java b/src/main/java/com/bybit/api/client/restApi/BybitApiAsyncLendingRestClient.java index f1d3c84..6e8bdd0 100644 --- a/src/main/java/com/bybit/api/client/restApi/BybitApiAsyncLendingRestClient.java +++ b/src/main/java/com/bybit/api/client/restApi/BybitApiAsyncLendingRestClient.java @@ -12,10 +12,10 @@ public interface BybitApiAsyncLendingRestClient { void updateInstitutionLoanUid(LendingDataRequest lendingDataRequest, BybitApiCallback callback); // C2C Endpoints - void getC2CLendingCoinInfo(LendingDataRequest lendingDataRequest, BybitApiCallback callback); +/* void getC2CLendingCoinInfo(LendingDataRequest lendingDataRequest, BybitApiCallback callback); void C2cLendingDepositFunds(LendingDataRequest lendingDataRequest, BybitApiCallback callback); void C2cLendingRedeemFunds(LendingDataRequest lendingDataRequest, BybitApiCallback callback); void C2cLendingRedeemCancel(LendingDataRequest lendingDataRequest, BybitApiCallback callback); void getC2cOrdersRecords(LendingDataRequest lendingDataRequest, BybitApiCallback callback); - void getC2CLendingAccountInfo(LendingDataRequest lendingDataRequest, BybitApiCallback callback); + void getC2CLendingAccountInfo(LendingDataRequest lendingDataRequest, BybitApiCallback callback);*/ } diff --git a/src/main/java/com/bybit/api/client/restApi/BybitApiLendingRestClient.java b/src/main/java/com/bybit/api/client/restApi/BybitApiLendingRestClient.java index 1081d78..ea27956 100644 --- a/src/main/java/com/bybit/api/client/restApi/BybitApiLendingRestClient.java +++ b/src/main/java/com/bybit/api/client/restApi/BybitApiLendingRestClient.java @@ -13,10 +13,10 @@ public interface BybitApiLendingRestClient { Object getInsLoanToValue(); Object updateInstitutionLoanUid(LendingDataRequest lendingDataRequest); // C2C Endpoints - Object getC2CLendingCoinInfo(LendingDataRequest lendingDataRequest); +/* Object getC2CLendingCoinInfo(LendingDataRequest lendingDataRequest); Object C2cLendingDepositFunds(LendingDataRequest lendingDataRequest); Object C2cLendingRedeemFunds(LendingDataRequest lendingDataRequest); Object C2cLendingRedeemCancel(LendingDataRequest lendingDataRequest); Object getC2cOrdersRecords(LendingDataRequest lendingDataRequest); - Object getC2CLendingAccountInfo(LendingDataRequest lendingDataRequest); + Object getC2CLendingAccountInfo(LendingDataRequest lendingDataRequest);*/ } diff --git a/src/main/java/com/bybit/api/client/restApi/BybitApiService.java b/src/main/java/com/bybit/api/client/restApi/BybitApiService.java index 11dcdde..d056ff5 100644 --- a/src/main/java/com/bybit/api/client/restApi/BybitApiService.java +++ b/src/main/java/com/bybit/api/client/restApi/BybitApiService.java @@ -1520,7 +1520,7 @@ Call getSubUIDListUnlimited(@Query("pageSize") String pageSize, * Parameter Type Comments * result array Object * > id string Unique ID. Internal use - * > ips array IP bound + * > ips array string IP bound * > apiKey string Api key * > note string The remark * > status integer 1: permanent, 2: expired, 3: within the validity period, 4: expires soon (less than 7 days) @@ -4101,7 +4101,7 @@ Call getAssetWithdrawalRecords( * * eb_convert_inverse * @return Response Parameters * Parameter Type Comments - * coins array Coin spec + * coins array object Coin spec * > coin string Coin * > fullName string Full coin name * > icon string Coin icon url @@ -4187,7 +4187,7 @@ Call getConvertCoinStatus( * up to 100 records, return 100 when exceeds 100 * @return Response Parameters * Parameter Type Comments - * list array Array of quotes + * list array object Array of quotes * > accountType string Wallet type * > exchangeTxId string Exchange tx ID, same as quote tx ID * > userId string User ID diff --git a/src/main/java/com/bybit/api/client/websocket/impl/WebsocketStreamClientImpl.java b/src/main/java/com/bybit/api/client/websocket/impl/WebsocketStreamClientImpl.java index 22b1bf8..644b0a3 100644 --- a/src/main/java/com/bybit/api/client/websocket/impl/WebsocketStreamClientImpl.java +++ b/src/main/java/com/bybit/api/client/websocket/impl/WebsocketStreamClientImpl.java @@ -143,10 +143,10 @@ private Map constructWsAPIHeaders(Map params) { private boolean requiresAuthentication(String path) { return BybitApiConfig.V5_TRADE.equals(path) || - BybitApiConfig.V5_PRIVATE.equals(path) || - BybitApiConfig.V3_CONTRACT_PRIVATE.equals(path) || + BybitApiConfig.V5_PRIVATE.equals(path); +/* BybitApiConfig.V3_CONTRACT_PRIVATE.equals(path) || BybitApiConfig.V3_UNIFIED_PRIVATE.equals(path) || - BybitApiConfig.V3_SPOT_PRIVATE.equals(path); + BybitApiConfig.V3_SPOT_PRIVATE.equals(path);*/ } @NotNull diff --git a/src/test/java/com/bybit/api/domain/account/AccountBalanceTest.java b/src/test/java/com/bybit/api/domain/account/AccountBalanceTest.java index 4f3c99a..8f3d1e5 100644 --- a/src/test/java/com/bybit/api/domain/account/AccountBalanceTest.java +++ b/src/test/java/com/bybit/api/domain/account/AccountBalanceTest.java @@ -9,7 +9,7 @@ import org.junit.Test; public class AccountBalanceTest { - BybitApiAccountRestClient client = BybitApiClientFactory.newInstance("8wYkmpLsMg10eNQyPm", "Ouxc34myDnXvei54XsBZgoQzfGxO4bkr2Zsj", BybitApiConfig.TESTNET_DOMAIN).newAccountRestClient(); + BybitApiAccountRestClient client = BybitApiClientFactory.newInstance("d08Wh6P037IXAvcrL2", "gLfd1BLGU9oq6YoRZRlwXkIQRYB4n5KvXDvv", BybitApiConfig.TESTNET_DOMAIN).newAccountRestClient(); @Test public void Test_GetAccountBalance() { diff --git a/src/test/java/com/bybit/api/domain/asset/BybitApiAssetRestClientTest.java b/src/test/java/com/bybit/api/domain/asset/BybitApiAssetRestClientTest.java index 4822189..355af01 100644 --- a/src/test/java/com/bybit/api/domain/asset/BybitApiAssetRestClientTest.java +++ b/src/test/java/com/bybit/api/domain/asset/BybitApiAssetRestClientTest.java @@ -6,7 +6,6 @@ import com.bybit.api.client.domain.account.AccountType; import com.bybit.api.client.domain.asset.request.AssetDataRequest; import com.bybit.api.client.impl.BybitApiAssetRestClientImpl; -import com.bybit.api.client.restApi.BybitApiAssetRestClient; import com.bybit.api.client.restApi.BybitApiService; import org.junit.Before; import org.junit.Test; diff --git a/src/test/java/com/bybit/api/domain/position/PositionListCursotTest.java b/src/test/java/com/bybit/api/domain/position/PositionListCursotTest.java index 0b551a6..1a6005d 100644 --- a/src/test/java/com/bybit/api/domain/position/PositionListCursotTest.java +++ b/src/test/java/com/bybit/api/domain/position/PositionListCursotTest.java @@ -8,7 +8,7 @@ import org.junit.Test; public class PositionListCursotTest { - BybitApiPositionRestClient client = BybitApiClientFactory.newInstance("YOUR_API_KEY", "YOUR_API_SECRET", BybitApiConfig.TESTNET_DOMAIN).newPositionRestClient(); + BybitApiPositionRestClient client = BybitApiClientFactory.newInstance("d08Wh6P037IXAvcrL2", "gLfd1BLGU9oq6YoRZRlwXkIQRYB4n5KvXDvv", BybitApiConfig.TESTNET_DOMAIN).newPositionRestClient(); @Test public void Test_SwitchPositionMode() { diff --git a/src/test/java/com/bybit/api/domain/spot_margin/SpotMarginTradeTest.java b/src/test/java/com/bybit/api/domain/spot_margin/SpotMarginTradeTest.java index 545c58c..397f097 100644 --- a/src/test/java/com/bybit/api/domain/spot_margin/SpotMarginTradeTest.java +++ b/src/test/java/com/bybit/api/domain/spot_margin/SpotMarginTradeTest.java @@ -16,7 +16,7 @@ import java.util.Arrays; public class SpotMarginTradeTest { - BybitApiSpotMarginRestClient client = BybitApiClientFactory.newInstance("YOUR_API_KEY", "YOUR_API_SECRET", BybitApiConfig.TESTNET_DOMAIN).newSpotMarginRestClient(); + BybitApiSpotMarginRestClient client = BybitApiClientFactory.newInstance("xx", "xxx", BybitApiConfig.TESTNET_DOMAIN).newSpotMarginRestClient(); @Test public void Test_MovePositions() diff --git a/src/test/java/com/bybit/api/domain/trade/OpenOrderTest.java b/src/test/java/com/bybit/api/domain/trade/OpenOrderTest.java index 0f8a267..99a9a01 100644 --- a/src/test/java/com/bybit/api/domain/trade/OpenOrderTest.java +++ b/src/test/java/com/bybit/api/domain/trade/OpenOrderTest.java @@ -15,9 +15,10 @@ import java.util.concurrent.TimeUnit; public class OpenOrderTest { + /* BybitApiTradeRestClient client = BybitApiClientFactory.newInstance("YOUR_API_KEY", "YOUR_API_SECRET", BybitApiConfig.TESTNET_DOMAIN).newTradeRestClient(); - @Test + @Test public void Test_PlaceLinearOrder() throws InterruptedException { List orderLinkIdList = new ArrayList<>(); @@ -94,4 +95,5 @@ public void Test_PlaceLinearOrder() throws InterruptedException { System.out.println(firInverseOrderResult); } + */ } diff --git a/src/test/java/com/bybit/api/domain/trade/OrderHistoryTest.java b/src/test/java/com/bybit/api/domain/trade/OrderHistoryTest.java index 8c8959a..8e27eaf 100644 --- a/src/test/java/com/bybit/api/domain/trade/OrderHistoryTest.java +++ b/src/test/java/com/bybit/api/domain/trade/OrderHistoryTest.java @@ -8,10 +8,10 @@ import org.junit.Test; public class OrderHistoryTest { - BybitApiTradeRestClient client = BybitApiClientFactory.newInstance("YOUR_API_KEY", "YOUR_API_SECRET", BybitApiConfig.TESTNET_DOMAIN).newTradeRestClient(); + BybitApiTradeRestClient client = BybitApiClientFactory.newInstance("d08Wh6P037IXAvcrL2", "gLfd1BLGU9oq6YoRZRlwXkIQRYB4n5KvXDvv", BybitApiConfig.TESTNET_DOMAIN).newTradeRestClient(); @Test - public void Test_PlaceLinearOrder(){ + public void Test_GetSpotOrderHistoryWithCursor(){ var orderHistoryRequest = TradeOrderRequest.builder().category(CategoryType.SPOT) .cursor("1659014836933362176%3A1712505980064%2C1659014836933362176%3A1712505980064") .limit(1) diff --git a/src/test/java/com/bybit/api/examples/http/sync/C2CExample.java b/src/test/java/com/bybit/api/examples/http/sync/C2CExample.java index 225c5f3..6466864 100644 --- a/src/test/java/com/bybit/api/examples/http/sync/C2CExample.java +++ b/src/test/java/com/bybit/api/examples/http/sync/C2CExample.java @@ -7,7 +7,7 @@ public class C2CExample { public static void main(String[] args) { var client = BybitApiClientFactory.newInstance("YOUR_API_KEY", "YOUR_API_SECRET").newLendingRestClient(); - // Get Lending Coin +/* // Get Lending Coin var lendingCoinRequest = LendingDataRequest.builder().build(); var lendingCoinInfo = client.getC2CLendingCoinInfo(lendingCoinRequest); System.out.println(lendingCoinInfo); @@ -29,6 +29,6 @@ public static void main(String[] args) { // Get Lending Account var lendingAccountRequest = LendingDataRequest.builder().coin("USDT").build(); var lendingAccount = client.getC2CLendingAccountInfo(lendingAccountRequest); - System.out.println(lendingAccount); + System.out.println(lendingAccount);*/ } }