Skip to content

Commit

Permalink
Merge pull request #26 from cryptohopper/feature/addTslDca
Browse files Browse the repository at this point in the history
added the tsl and dca keys in the hopperpostion layer
  • Loading branch information
barbayrak authored Jan 28, 2022
2 parents b72d38f + 6271e1f commit c714dd4
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@

import com.google.gson.annotations.SerializedName

data class HopperAPIGetAllPositionsResponse (
@SerializedName("data") val data: List<HopperPosition>?
data class HopperAPIGetAllPositionsResponse(
@SerializedName("data") val data: List<HopperPosition>?
)
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@

import com.google.gson.annotations.SerializedName

data class HopperAPIGetHoldPositionsResponse (
@SerializedName("data") val data: List<HopperPosition>?
data class HopperAPIGetHoldPositionsResponse(
@SerializedName("data") val data: List<HopperPosition>?
)
Original file line number Diff line number Diff line change
Expand Up @@ -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?
)
Original file line number Diff line number Diff line change
Expand Up @@ -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?
)

0 comments on commit c714dd4

Please sign in to comment.