diff --git a/.idea/gradle.xml b/.idea/gradle.xml
index 7220bb8..08bea74 100644
--- a/.idea/gradle.xml
+++ b/.idea/gradle.xml
@@ -15,7 +15,6 @@
-
diff --git a/.idea/kotlinc.xml b/.idea/kotlinc.xml
new file mode 100644
index 0000000..7e340a7
--- /dev/null
+++ b/.idea/kotlinc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
index d5d35ec..a23e6cf 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -1,6 +1,6 @@
-
+
diff --git a/sdk/src/main/java/cryptohopper/android/sdk/API/Exchange/GetPortalExchangeKeyMaps/HopperAPIGetPortalExchangeKeyMapsRequest.kt b/sdk/src/main/java/cryptohopper/android/sdk/API/Exchange/GetPortalExchangeKeyMaps/HopperAPIGetPortalExchangeKeyMapsRequest.kt
new file mode 100644
index 0000000..9e0328d
--- /dev/null
+++ b/sdk/src/main/java/cryptohopper/android/sdk/API/Exchange/GetPortalExchangeKeyMaps/HopperAPIGetPortalExchangeKeyMapsRequest.kt
@@ -0,0 +1,14 @@
+package cryptohopper.android.sdk.API.Exchange.GetPortalExchangeKeyMaps
+
+import HopperAPIGetPairOrderBookOfExchangeResponse
+import HopperAPIRequest
+import cryptohopper.android.sdk.SharedModels.ConfigModels.HopperAPIHttpMethod
+
+class HopperAPIGetPortalExchangeKeyMapsRequest : HopperAPIRequest {
+
+ constructor(data: String) {
+ this.httpMethod = HopperAPIHttpMethod.GET
+ this.needsAuthentication = true
+ this.changeUrlPath("/exchange/portal")
+ }
+}
diff --git a/sdk/src/main/java/cryptohopper/android/sdk/API/Exchange/GetPortalExchangeKeyMaps/HopperAPIGetPortalExchangeKeyMapsResponse.kt b/sdk/src/main/java/cryptohopper/android/sdk/API/Exchange/GetPortalExchangeKeyMaps/HopperAPIGetPortalExchangeKeyMapsResponse.kt
new file mode 100644
index 0000000..7348fc8
--- /dev/null
+++ b/sdk/src/main/java/cryptohopper/android/sdk/API/Exchange/GetPortalExchangeKeyMaps/HopperAPIGetPortalExchangeKeyMapsResponse.kt
@@ -0,0 +1,8 @@
+package cryptohopper.android.sdk.API.Exchange.GetPortalExchangeKeyMaps
+
+import com.google.gson.annotations.SerializedName
+
+class HopperAPIGetPortalExchangeKeyMapsResponse (
+
+ @SerializedName("maps") val maps: Map?
+)
\ No newline at end of file
diff --git a/sdk/src/main/java/cryptohopper/android/sdk/API/Exchange/GetPortalExchangePairMaps/HopperAPIGetPortalExchangePairMapsRequest.kt b/sdk/src/main/java/cryptohopper/android/sdk/API/Exchange/GetPortalExchangePairMaps/HopperAPIGetPortalExchangePairMapsRequest.kt
new file mode 100644
index 0000000..089e39e
--- /dev/null
+++ b/sdk/src/main/java/cryptohopper/android/sdk/API/Exchange/GetPortalExchangePairMaps/HopperAPIGetPortalExchangePairMapsRequest.kt
@@ -0,0 +1,14 @@
+package cryptohopper.android.sdk.API.Exchange.GetPortalExchangePairMaps
+
+import HopperAPIRequest
+import cryptohopper.android.sdk.SharedModels.ConfigModels.HopperAPIHttpMethod
+
+class HopperAPIGetPortalExchangePairMapsRequest : HopperAPIRequest {
+
+ constructor(exchangeKey : String) {
+ this.httpMethod = HopperAPIHttpMethod.GET
+ this.needsAuthentication = true
+ this.changeUrlPath("/exchange/$exchangeKey/portal/pairs")
+ }
+
+}
\ No newline at end of file
diff --git a/sdk/src/main/java/cryptohopper/android/sdk/API/Exchange/GetPortalExchangePairMaps/HopperAPIGetPortalExchangePairMapsResponse.kt b/sdk/src/main/java/cryptohopper/android/sdk/API/Exchange/GetPortalExchangePairMaps/HopperAPIGetPortalExchangePairMapsResponse.kt
new file mode 100644
index 0000000..23ebd14
--- /dev/null
+++ b/sdk/src/main/java/cryptohopper/android/sdk/API/Exchange/GetPortalExchangePairMaps/HopperAPIGetPortalExchangePairMapsResponse.kt
@@ -0,0 +1,8 @@
+package cryptohopper.android.sdk.API.Exchange.GetPortalExchangePairMaps
+
+import com.google.gson.annotations.SerializedName
+
+class HopperAPIGetPortalExchangePairMapsResponse (
+
+ @SerializedName("maps") val maps: Map?
+)
\ No newline at end of file
diff --git a/sdk/src/main/java/cryptohopper/android/sdk/API/User/General/DeleteUser/HopperAPIDeleteUserRequest.kt b/sdk/src/main/java/cryptohopper/android/sdk/API/User/General/DeleteUser/HopperAPIDeleteUserRequest.kt
new file mode 100644
index 0000000..0da76cf
--- /dev/null
+++ b/sdk/src/main/java/cryptohopper/android/sdk/API/User/General/DeleteUser/HopperAPIDeleteUserRequest.kt
@@ -0,0 +1,14 @@
+package cryptohopper.android.sdk.API.User.General.DeleteUser
+
+import HopperAPIRequest
+import HopperCommonMessageResponse
+import cryptohopper.android.sdk.SharedModels.ConfigModels.HopperAPIHttpMethod
+
+class HopperAPIDeleteUserRequest : HopperAPIRequest{
+
+ constructor(data : String) {
+ this.httpMethod = HopperAPIHttpMethod.DELETE
+ this.needsAuthentication = true
+ this.changeUrlPath("/user")
+ }
+}
\ No newline at end of file
diff --git a/sdk/src/main/java/cryptohopper/android/sdk/CryptohopperExchange.kt b/sdk/src/main/java/cryptohopper/android/sdk/CryptohopperExchange.kt
index f2ba52f..ef544e3 100644
--- a/sdk/src/main/java/cryptohopper/android/sdk/CryptohopperExchange.kt
+++ b/sdk/src/main/java/cryptohopper/android/sdk/CryptohopperExchange.kt
@@ -1,6 +1,10 @@
import cryptohopper.android.sdk.API.Exchange.GetExchangeWhitelistIP.CHIPWhitelist
import cryptohopper.android.sdk.API.Exchange.GetExchangeWhitelistIP.HopperAPIGetExchangeWhitelistIPRequest
import cryptohopper.android.sdk.API.Exchange.GetExchangeWhitelistIP.HopperAPIGetExchangeWhitelistIPResponse
+import cryptohopper.android.sdk.API.Exchange.GetPortalExchangeKeyMaps.HopperAPIGetPortalExchangeKeyMapsRequest
+import cryptohopper.android.sdk.API.Exchange.GetPortalExchangeKeyMaps.HopperAPIGetPortalExchangeKeyMapsResponse
+import cryptohopper.android.sdk.API.Exchange.GetPortalExchangePairMaps.HopperAPIGetPortalExchangePairMapsRequest
+import cryptohopper.android.sdk.API.Exchange.GetPortalExchangePairMaps.HopperAPIGetPortalExchangePairMapsResponse
import cryptohopper.android.sdk.SharedModels.ConfigModels.HopperAPIError
import java.util.*
@@ -319,4 +323,32 @@ class CryptohopperExchange {
})
}
}
+
+ /// Get Portal Exchange Key Maps
+
+ fun getPortalExchangeKeyMaps(
+ callback: (Map?, HopperAPIError?) -> Unit
+ ) {
+ HopperAPIGetPortalExchangeKeyMapsRequest("").request(
+ { data ->
+ callback(data.maps, null)
+ },
+ { error ->
+ callback(null, error)
+ })
+ }
+
+ /// Get Portal Exchange Key Maps
+ fun getAllTickersOfExchange(
+ exchangeKey: String,
+ callback: (Map?, HopperAPIError?) -> Unit
+ ) {
+ HopperAPIGetPortalExchangePairMapsRequest(exchangeKey).request(
+ { data ->
+ callback(data.maps, null)
+ },
+ { error ->
+ callback(null, error)
+ })
+ }
}
\ No newline at end of file
diff --git a/sdk/src/main/java/cryptohopper/android/sdk/CryptohopperUser.kt b/sdk/src/main/java/cryptohopper/android/sdk/CryptohopperUser.kt
index eb7734d..9e8770e 100644
--- a/sdk/src/main/java/cryptohopper/android/sdk/CryptohopperUser.kt
+++ b/sdk/src/main/java/cryptohopper/android/sdk/CryptohopperUser.kt
@@ -3,6 +3,7 @@ import cryptohopper.android.sdk.API.Platform.Countries.HopperAPIGetPlatformCount
import cryptohopper.android.sdk.API.Platform.Countries.HopperAPIPlatformCountriesResponse
import cryptohopper.android.sdk.API.User.Check2FAReset.HopperAPICheck2FAResetRequest
import cryptohopper.android.sdk.API.User.CheckPasswordReset.HopperAPICheckPasswordResetRequest
+import cryptohopper.android.sdk.API.User.General.DeleteUser.HopperAPIDeleteUserRequest
import cryptohopper.android.sdk.API.User.General.GetMobileNotifications.HopperAPIUpdateGetMobileNotificationRequest
import cryptohopper.android.sdk.API.User.General.GetMobileNotifications.HopperAPIUpdateGetMobileNotificationResponse
import cryptohopper.android.sdk.API.User.General.RegisterUser.HopperAPIRegisterUserResponse
@@ -408,6 +409,17 @@ class CryptohopperUser {
callback(null, error)
})
}
+ /// Delete User
+ ///
+ ///
+ fun deleteUser(callback: (String?, HopperAPIError?) -> Unit) {
+ HopperAPIDeleteUserRequest("").request({ data ->
+ callback(data.data, null)
+ }, { error ->
+ callback(null, error)
+ })
+ }
+
/// Get One Subscription Plan
///