From 4b3591573c93aefa098c59d2a5cbc4f8bda16157 Mon Sep 17 00:00:00 2001 From: Mahdi Sheikh Hosseini Date: Sat, 3 Apr 2021 19:38:51 +0430 Subject: [PATCH] Delete TestnetLeverageMarginChange.java --- .../testnet/TestnetLeverageMarginChange.java | 27 ------------------- 1 file changed, 27 deletions(-) delete mode 100755 src/test/java/com/binance/api/examples/testnet/TestnetLeverageMarginChange.java diff --git a/src/test/java/com/binance/api/examples/testnet/TestnetLeverageMarginChange.java b/src/test/java/com/binance/api/examples/testnet/TestnetLeverageMarginChange.java deleted file mode 100755 index 0f1dfc4a9..000000000 --- a/src/test/java/com/binance/api/examples/testnet/TestnetLeverageMarginChange.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.binance.api.examples.testnet; - -import com.binance.api.client.api.sync.BinanceApiFuturesRestClient; -import com.binance.api.client.domain.account.LeverageRequest; -import com.binance.api.client.factory.BinanceAbstractFactory; -import com.binance.api.client.factory.BinanceFuturesApiClientFactory; - -/** - * Examples binance futures account information - */ -public class TestnetLeverageMarginChange { - private static final String SYMBOL = "BTCUSDT"; - private static final String API_KEY = "c8be940e7d3ebbfe79842236d6110b88e8350059ca48593a4809bc02794b837b"; - private static final String SECRET_KEY = "44090bdaf2e1b4d9f46bb772bc630ace9c3a00c3294ab61315f1c0e817ba29d6"; - - public static void main(String[] args) { - BinanceFuturesApiClientFactory factory = BinanceAbstractFactory.createTestnetFactory(API_KEY, SECRET_KEY); - BinanceApiFuturesRestClient client = factory.newRestClient(); - - System.out.println("Current leverage : " + client.getAccount().getPosition(SYMBOL).getLeverage()); - - client.changeInitialLeverage(new LeverageRequest(SYMBOL, 25)); - - System.out.println("New leverage : " + client.getAccount().getPosition(SYMBOL).getLeverage()); - } - -}