mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-31 15:10:42 +00:00
FTX: Fixed typos in ftx_types (#694)
* fixed typo * added EstimatedLiquidationPrice and CollateralUsed
This commit is contained in:
@@ -181,11 +181,13 @@ type PositionData struct {
|
|||||||
MaintenanceMarginRequirement float64 `json:"maintenanceMarginRequirement"`
|
MaintenanceMarginRequirement float64 `json:"maintenanceMarginRequirement"`
|
||||||
NetSize float64 `json:"netSize"`
|
NetSize float64 `json:"netSize"`
|
||||||
OpenSize float64 `json:"openSize"`
|
OpenSize float64 `json:"openSize"`
|
||||||
RealisedPnL float64 `json:"realisedPnL"`
|
RealizedPnL float64 `json:"realizedPnL"`
|
||||||
ShortOrderSide float64 `json:"shortOrderSide"`
|
ShortOrderSize float64 `json:"shortOrderSize"`
|
||||||
Side string `json:"side"`
|
Side string `json:"side"`
|
||||||
Size float64 `json:"size"`
|
Size float64 `json:"size"`
|
||||||
UnrealisedPnL float64 `json:"unrealisedPnL"`
|
UnrealizedPnL float64 `json:"unrealizedPnL"`
|
||||||
|
CollateralUsed float64 `json:"collateralUsed"`
|
||||||
|
EstimatedLiquidationPrice float64 `json:"estimatedLiquidationPrice"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// AccountInfoData stores account data
|
// AccountInfoData stores account data
|
||||||
@@ -195,7 +197,7 @@ type AccountInfoData struct {
|
|||||||
Collateral float64 `json:"collateral"`
|
Collateral float64 `json:"collateral"`
|
||||||
FreeCollateral float64 `json:"freeCollateral"`
|
FreeCollateral float64 `json:"freeCollateral"`
|
||||||
InitialMarginRequirement float64 `json:"initialMarginRequirement"`
|
InitialMarginRequirement float64 `json:"initialMarginRequirement"`
|
||||||
Leverage float64 `json:"float64"`
|
Leverage float64 `json:"leverage"`
|
||||||
Liquidating bool `json:"liquidating"`
|
Liquidating bool `json:"liquidating"`
|
||||||
MaintenanceMarginRequirement float64 `json:"maintenanceMarginRequirement"`
|
MaintenanceMarginRequirement float64 `json:"maintenanceMarginRequirement"`
|
||||||
MakerFee float64 `json:"makerFee"`
|
MakerFee float64 `json:"makerFee"`
|
||||||
@@ -377,11 +379,11 @@ type LTBalanceData struct {
|
|||||||
|
|
||||||
// LTCreationData stores token creation requests' data
|
// LTCreationData stores token creation requests' data
|
||||||
type LTCreationData struct {
|
type LTCreationData struct {
|
||||||
ID string `json:"id"`
|
ID int64 `json:"id"`
|
||||||
Token string `json:"token"`
|
Token string `json:"token"`
|
||||||
RequestedSize float64 `json:"requestedSize"`
|
RequestedSize float64 `json:"requestedSize"`
|
||||||
Pending bool `json:"pending"`
|
Pending bool `json:"pending"`
|
||||||
CreatedSize float64 `json:"createdize"`
|
CreatedSize float64 `json:"createdSize"`
|
||||||
Price float64 `json:"price"`
|
Price float64 `json:"price"`
|
||||||
Cost float64 `json:"cost"`
|
Cost float64 `json:"cost"`
|
||||||
Fee float64 `json:"fee"`
|
Fee float64 `json:"fee"`
|
||||||
@@ -391,7 +393,7 @@ type LTCreationData struct {
|
|||||||
|
|
||||||
// RequestTokenCreationData stores data of the token creation requested
|
// RequestTokenCreationData stores data of the token creation requested
|
||||||
type RequestTokenCreationData struct {
|
type RequestTokenCreationData struct {
|
||||||
ID string `json:"id"`
|
ID int64 `json:"id"`
|
||||||
Token string `json:"token"`
|
Token string `json:"token"`
|
||||||
RequestedSize float64 `json:"requestedSize"`
|
RequestedSize float64 `json:"requestedSize"`
|
||||||
Cost float64 `json:"cost"`
|
Cost float64 `json:"cost"`
|
||||||
@@ -414,7 +416,7 @@ type LTRedemptionData struct {
|
|||||||
|
|
||||||
// LTRedemptionRequestData stores redemption request data for a leveraged token
|
// LTRedemptionRequestData stores redemption request data for a leveraged token
|
||||||
type LTRedemptionRequestData struct {
|
type LTRedemptionRequestData struct {
|
||||||
ID string `json:"id"`
|
ID int64 `json:"id"`
|
||||||
Token string `json:"token"`
|
Token string `json:"token"`
|
||||||
Size float64 `json:"size"`
|
Size float64 `json:"size"`
|
||||||
ProjectedProceeds float64 `json:"projectedProceeds"`
|
ProjectedProceeds float64 `json:"projectedProceeds"`
|
||||||
|
|||||||
Reference in New Issue
Block a user