Updated on 2026-08-14
This commit is contained in:
parent
31d0b1fe8f
commit
14e5cc31e4
12 changed files with 518 additions and 90 deletions
11
app/src/main/java/com/tangem/data/network/BinanceApi.java
Normal file
11
app/src/main/java/com/tangem/data/network/BinanceApi.java
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
package com.tangem.data.network;
|
||||
|
||||
import com.tangem.data.network.model.BinanceFees;
|
||||
|
||||
import retrofit2.Call;
|
||||
import retrofit2.http.GET;
|
||||
|
||||
public interface BinanceApi {
|
||||
@GET("/fees")
|
||||
Call<BinanceFees> binanceFees();
|
||||
}
|
||||
|
|
@ -17,7 +17,7 @@ public class Server {
|
|||
public static final String URL_COINMARKET = ServerURL.API_COINMARKETCAP;
|
||||
|
||||
public static class Method {
|
||||
static final String V1_TICKER_CONVERT = URL_COINMARKET + "v1/ticker/?convert=USD&lmit=10";
|
||||
static final String V1_TICKER_CONVERT = URL_COINMARKET + "v1/ticker/?convert=USD&limit=10";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -56,13 +56,21 @@ public class Server {
|
|||
}
|
||||
}
|
||||
|
||||
// public static class ApiBinance {
|
||||
// public static final String URL_BINANCE = ServerURL.API_BINANCE;
|
||||
//
|
||||
// public static class Method {
|
||||
// static final String API_V1 = URL_BINANCE + "api/v1";
|
||||
// }
|
||||
// }
|
||||
public static class ApiBinance {
|
||||
public static final String URL_BINANCE = ServerURL.API_BINANCE;
|
||||
|
||||
public static class Method {
|
||||
public static final String API_V1 = URL_BINANCE + "api/v1";
|
||||
}
|
||||
}
|
||||
|
||||
public static class ApiBinanceTestnet {
|
||||
public static final String URL_BINANCE_TESTNET = ServerURL.API_BINANCE_TESTNET;
|
||||
|
||||
public static class Method {
|
||||
public static final String API_V1 = URL_BINANCE_TESTNET + "api/v1";
|
||||
}
|
||||
}
|
||||
|
||||
public static class ApiBlockcypher {
|
||||
public static final String URL_BLOCKCYPHER = ServerURL.API_BLOCKCYPHER;
|
||||
|
|
|
|||
|
|
@ -8,4 +8,6 @@ class ServerURL {
|
|||
static final String API_UPDATE_VERSION = "https://raw.githubusercontent.com/";
|
||||
static final String API_ROOTSTOCK = "https://public-node.rsk.co/";
|
||||
static final String API_BLOCKCYPHER = "https://api.blockcypher.com/";
|
||||
static final String API_BINANCE = "https://dex.binance.org/";
|
||||
static final String API_BINANCE_TESTNET = "https://testnet-dex.binance.org/";
|
||||
}
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
package com.tangem.data.network.model
|
||||
|
||||
import com.google.gson.annotations.SerializedName
|
||||
|
||||
data class BinanceFees(
|
||||
@SerializedName("fixed_fee_params")
|
||||
var fixed_fee_params: BinanceFixedFee? = null
|
||||
)
|
||||
|
||||
data class BinanceFixedFee(
|
||||
@SerializedName("msg_type")
|
||||
var msg_type: String? = null,
|
||||
|
||||
@SerializedName("fee")
|
||||
var fee: Long? = null
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue