diff --git a/sdk/src/main/java/cryptohopper/android/sdk/API/Hopper/Position/GetAllPositions/HopperAPIGetAllPositionsResponse.kt b/sdk/src/main/java/cryptohopper/android/sdk/API/Hopper/Position/GetAllPositions/HopperAPIGetAllPositionsResponse.kt index 211da6a..71e022c 100644 --- a/sdk/src/main/java/cryptohopper/android/sdk/API/Hopper/Position/GetAllPositions/HopperAPIGetAllPositionsResponse.kt +++ b/sdk/src/main/java/cryptohopper/android/sdk/API/Hopper/Position/GetAllPositions/HopperAPIGetAllPositionsResponse.kt @@ -7,6 +7,6 @@ import com.google.gson.annotations.SerializedName -data class HopperAPIGetAllPositionsResponse ( - @SerializedName("data") val data: List? +data class HopperAPIGetAllPositionsResponse( + @SerializedName("data") val data: List? ) diff --git a/sdk/src/main/java/cryptohopper/android/sdk/API/Hopper/Position/GetHoldPositions/HopperAPIGetHoldPositionsResponse.kt b/sdk/src/main/java/cryptohopper/android/sdk/API/Hopper/Position/GetHoldPositions/HopperAPIGetHoldPositionsResponse.kt index cdc07f9..c177d70 100644 --- a/sdk/src/main/java/cryptohopper/android/sdk/API/Hopper/Position/GetHoldPositions/HopperAPIGetHoldPositionsResponse.kt +++ b/sdk/src/main/java/cryptohopper/android/sdk/API/Hopper/Position/GetHoldPositions/HopperAPIGetHoldPositionsResponse.kt @@ -7,6 +7,6 @@ import com.google.gson.annotations.SerializedName -data class HopperAPIGetHoldPositionsResponse ( - @SerializedName("data") val data: List? +data class HopperAPIGetHoldPositionsResponse( + @SerializedName("data") val data: List? ) \ No newline at end of file diff --git a/sdk/src/main/java/cryptohopper/android/sdk/API/Hopper/Position/GetOnePosition/HopperAPIGetOnePositionResponse.kt b/sdk/src/main/java/cryptohopper/android/sdk/API/Hopper/Position/GetOnePosition/HopperAPIGetOnePositionResponse.kt index 57d931b..b55c8bd 100644 --- a/sdk/src/main/java/cryptohopper/android/sdk/API/Hopper/Position/GetOnePosition/HopperAPIGetOnePositionResponse.kt +++ b/sdk/src/main/java/cryptohopper/android/sdk/API/Hopper/Position/GetOnePosition/HopperAPIGetOnePositionResponse.kt @@ -5,9 +5,8 @@ // Created by Kaan Baris Bayrak on 30/10/2020. // - import com.google.gson.annotations.SerializedName -data class HopperAPIGetOnePositionResponse ( - @SerializedName("data") val data: HopperPosition? +data class HopperAPIGetOnePositionResponse( + @SerializedName("data") val data: HopperPosition? ) \ No newline at end of file diff --git a/sdk/src/main/java/cryptohopper/android/sdk/SharedModels/Hopper/Models/HopperPosition.kt b/sdk/src/main/java/cryptohopper/android/sdk/SharedModels/Hopper/Models/HopperPosition.kt index 3c7fa4f..f0d9a89 100644 --- a/sdk/src/main/java/cryptohopper/android/sdk/SharedModels/Hopper/Models/HopperPosition.kt +++ b/sdk/src/main/java/cryptohopper/android/sdk/SharedModels/Hopper/Models/HopperPosition.kt @@ -5,33 +5,34 @@ // Created by Kaan Baris Bayrak on 30/10/2020. // -import java.util.* import com.google.gson.annotations.SerializedName import cryptohopper.android.sdk.SharedModels.Hopper.Models.TAValue -data class HopperPosition ( - @SerializedName("id") val id: String?, - @SerializedName("pair") val pair: String?, - @SerializedName("currency") val currency: String?, - @SerializedName("amount") val amount: String?, - @SerializedName("rate") val rate: String?, - @SerializedName("buy_id") val buyId: String?, - @SerializedName("order_id") val orderId: String?, - @SerializedName("sell_id") val sellId: String?, - @SerializedName("buy_trigger") val buyTrigger: String?, - @SerializedName("sell_trigger") val sellTrigger: String?, - @SerializedName("ta_values") val taValues: TAValue?, - @SerializedName("percentage_profit") val percentageProfit: String?, - @SerializedName("stop_loss") val stopLoss: String?, - @SerializedName("stop_loss_percentage") val stopLossPercentage: String?, - @SerializedName("sell_rate") val sellRate: String?, - @SerializedName("trailing_percentage") val trailingPercentage: String?, - @SerializedName("trailing_arm") val trailingArm: String?, - @SerializedName("trailing_arm_percentage") val trailingArmPercentage: String?, - @SerializedName("buy_time") val buyTime: String?, - @SerializedName("sell_time") val sellTime: String?, - @SerializedName("auto_close_time") val autoCloseTime: String?, - @SerializedName("hold") val hold: String?, - @SerializedName("sold") val sold: String?, - @SerializedName("cost") val cost: String? +data class HopperPosition( + @SerializedName("id") val id: String?, + @SerializedName("pair") val pair: String?, + @SerializedName("currency") val currency: String?, + @SerializedName("amount") val amount: String?, + @SerializedName("rate") val rate: String?, + @SerializedName("buy_id") val buyId: String?, + @SerializedName("order_id") val orderId: String?, + @SerializedName("sell_id") val sellId: String?, + @SerializedName("buy_trigger") val buyTrigger: String?, + @SerializedName("sell_trigger") val sellTrigger: String?, + @SerializedName("ta_values") val taValues: TAValue?, + @SerializedName("percentage_profit") val percentageProfit: String?, + @SerializedName("stop_loss") val stopLoss: String?, + @SerializedName("stop_loss_percentage") val stopLossPercentage: String?, + @SerializedName("sell_rate") val sellRate: String?, + @SerializedName("trailing_percentage") val trailingPercentage: String?, + @SerializedName("trailing_arm") val trailingArm: String?, + @SerializedName("trailing_arm_percentage") val trailingArmPercentage: String?, + @SerializedName("buy_time") val buyTime: String?, + @SerializedName("sell_time") val sellTime: String?, + @SerializedName("auto_close_time") val autoCloseTime: String?, + @SerializedName("hold") val hold: String?, + @SerializedName("sold") val sold: String?, + @SerializedName("cost") val cost: String?, + @SerializedName("tsl_enabled") val tslEnabled: String?, + @SerializedName("dca_enabled") val dcaEnabled: String? )