This repository was archived by the owner on Oct 30, 2023. It is now read-only.
forked from joaopsilva/binance-java-api
-
Notifications
You must be signed in to change notification settings - Fork 599
Expand file tree
/
Copy pathBinanceApiSwapRestClient.java
More file actions
executable file
·92 lines (80 loc) · 2.34 KB
/
BinanceApiSwapRestClient.java
File metadata and controls
executable file
·92 lines (80 loc) · 2.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
package com.binance.api.client;
import com.binance.api.client.domain.SwapRemoveType;
import com.binance.api.client.domain.account.*;
import java.util.List;
public interface BinanceApiSwapRestClient {
/**
* Get metadata about all swap pools.
*
* @return
*/
List<Pool> listAllSwapPools();
/**
* Get liquidity information and user share of a pool.
*
* @param poolId
* @return
*/
Liquidity getPoolLiquidityInfo(String poolId);
/**
* Add liquidity to a pool.
*
* @param poolId
* @param asset
* @param quantity
* @return
*/
LiquidityOperationRecord addLiquidity(String poolId,
String asset,
String quantity);
/**
* Remove liquidity from a pool, type include SINGLE and COMBINATION, asset is mandatory for single asset removal
*
* @param poolId
* @param type
* @param asset
* @param shareAmount
* @return
*/
LiquidityOperationRecord removeLiquidity(String poolId, SwapRemoveType type, List<String> asset, String shareAmount);
/**
* Get liquidity operation (add/remove) records of a pool
*
* @param poolId
* @param limit
* @return
*/
List<LiquidityOperationRecord> getPoolLiquidityOperationRecords(
String poolId,
Integer limit);
/**
* Get liquidity operation (add/remove) record.
*
* @param operationId
* @return
*/
LiquidityOperationRecord getLiquidityOperationRecord(String operationId);
/**
* Request a quote for swap quote asset (selling asset) for base asset (buying asset), essentially price/exchange rates.
*
* @param quoteAsset
* @param baseAsset
* @param quoteQty
* @return
*/
SwapQuote requestQuote(String quoteAsset,
String baseAsset,
String quoteQty);
/**
* Swap quoteAsset for baseAsset
*
* @param quoteAsset
* @param baseAsset
* @param quoteQty
* @return
*/
SwapRecord swap(String quoteAsset,
String baseAsset,
String quoteQty);
SwapHistory getSwapHistory(String swapId);
}