Skip to content

Commit

Permalink
fix more float32 types with int
Browse files Browse the repository at this point in the history
  • Loading branch information
zmxv committed Oct 16, 2018
1 parent c3f420c commit 4452ce9
Show file tree
Hide file tree
Showing 53 changed files with 413 additions and 413 deletions.
4 changes: 2 additions & 2 deletions api_position.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ PositionApiService Transfer equity in or out of a position.
@return Position
*/
func (a *PositionApiService) PositionTransferIsolatedMargin(ctx context.Context, symbol string, amount float32) (Position, *http.Response, error) {
func (a *PositionApiService) PositionTransferIsolatedMargin(ctx context.Context, symbol string, amount int) (Position, *http.Response, error) {
var (
localVarHttpMethod = strings.ToUpper("Post")
localVarPostBody interface{}
Expand Down Expand Up @@ -546,7 +546,7 @@ PositionApiService Update your risk limit.
@return Position
*/
func (a *PositionApiService) PositionUpdateRiskLimit(ctx context.Context, symbol string, riskLimit float32) (Position, *http.Response, error) {
func (a *PositionApiService) PositionUpdateRiskLimit(ctx context.Context, symbol string, riskLimit int) (Position, *http.Response, error) {
var (
localVarHttpMethod = strings.ToUpper("Post")
localVarPostBody interface{}
Expand Down
20 changes: 10 additions & 10 deletions docs/Affiliate.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Account** | **float32** | | [default to null]
**Account** | **int** | | [default to null]
**Currency** | **string** | | [default to null]
**PrevPayout** | **float32** | | [optional] [default to null]
**PrevTurnover** | **float32** | | [optional] [default to null]
**PrevComm** | **float32** | | [optional] [default to null]
**PrevPayout** | **int** | | [optional] [default to null]
**PrevTurnover** | **int** | | [optional] [default to null]
**PrevComm** | **int** | | [optional] [default to null]
**PrevTimestamp** | [**time.Time**](time.Time.md) | | [optional] [default to null]
**ExecTurnover** | **float32** | | [optional] [default to null]
**ExecComm** | **float32** | | [optional] [default to null]
**TotalReferrals** | **float32** | | [optional] [default to null]
**TotalTurnover** | **float32** | | [optional] [default to null]
**TotalComm** | **float32** | | [optional] [default to null]
**ExecTurnover** | **int** | | [optional] [default to null]
**ExecComm** | **int** | | [optional] [default to null]
**TotalReferrals** | **int** | | [optional] [default to null]
**TotalTurnover** | **int** | | [optional] [default to null]
**TotalComm** | **int** | | [optional] [default to null]
**PayoutPcnt** | **float64** | | [optional] [default to null]
**PendingPayout** | **float32** | | [optional] [default to null]
**PendingPayout** | **int** | | [optional] [default to null]
**Timestamp** | [**time.Time**](time.Time.md) | | [optional] [default to null]
**ReferrerAccount** | **float64** | | [optional] [default to null]

Expand Down
2 changes: 1 addition & 1 deletion docs/Announcement.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Id** | **float32** | | [default to null]
**Id** | **int** | | [default to null]
**Link** | **string** | | [optional] [default to null]
**Title** | **string** | | [optional] [default to null]
**Content** | **string** | | [optional] [default to null]
Expand Down
4 changes: 2 additions & 2 deletions docs/ApiKey.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ Name | Type | Description | Notes
**Id** | **string** | | [default to null]
**Secret** | **string** | | [default to null]
**Name** | **string** | | [default to null]
**Nonce** | **float32** | | [default to null]
**Nonce** | **int** | | [default to null]
**Cidr** | **string** | | [optional] [default to null]
**Permissions** | [**[]XAny**](x-any.md) | | [optional] [default to null]
**Enabled** | **bool** | | [optional] [default to null]
**UserId** | **float32** | | [default to null]
**UserId** | **int** | | [default to null]
**Created** | [**time.Time**](time.Time.md) | | [optional] [default to null]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
2 changes: 1 addition & 1 deletion docs/Chat.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Id** | **float32** | | [optional] [default to null]
**Id** | **int** | | [optional] [default to null]
**Date** | [**time.Time**](time.Time.md) | | [default to null]
**User** | **string** | | [default to null]
**Message** | **string** | | [default to null]
Expand Down
2 changes: 1 addition & 1 deletion docs/ChatChannel.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Id** | **float32** | | [optional] [default to null]
**Id** | **int** | | [optional] [default to null]
**Name** | **string** | | [default to null]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
4 changes: 2 additions & 2 deletions docs/ConnectedUsers.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Users** | **float32** | | [optional] [default to null]
**Bots** | **float32** | | [optional] [default to null]
**Users** | **int** | | [optional] [default to null]
**Bots** | **int** | | [optional] [default to null]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
16 changes: 8 additions & 8 deletions docs/Execution.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ Name | Type | Description | Notes
**OrderID** | **string** | | [optional] [default to null]
**ClOrdID** | **string** | | [optional] [default to null]
**ClOrdLinkID** | **string** | | [optional] [default to null]
**Account** | **float32** | | [optional] [default to null]
**Account** | **int** | | [optional] [default to null]
**Symbol** | **string** | | [optional] [default to null]
**Side** | **string** | | [optional] [default to null]
**LastQty** | **float32** | | [optional] [default to null]
**LastQty** | **int** | | [optional] [default to null]
**LastPx** | **float64** | | [optional] [default to null]
**UnderlyingLastPx** | **float64** | | [optional] [default to null]
**LastMkt** | **string** | | [optional] [default to null]
**LastLiquidityInd** | **string** | | [optional] [default to null]
**SimpleOrderQty** | **float64** | | [optional] [default to null]
**OrderQty** | **float32** | | [optional] [default to null]
**OrderQty** | **int** | | [optional] [default to null]
**Price** | **float64** | | [optional] [default to null]
**DisplayQty** | **float32** | | [optional] [default to null]
**DisplayQty** | **int** | | [optional] [default to null]
**StopPx** | **float64** | | [optional] [default to null]
**PegOffsetValue** | **float64** | | [optional] [default to null]
**PegPriceType** | **string** | | [optional] [default to null]
Expand All @@ -35,17 +35,17 @@ Name | Type | Description | Notes
**WorkingIndicator** | **bool** | | [optional] [default to null]
**OrdRejReason** | **string** | | [optional] [default to null]
**SimpleLeavesQty** | **float64** | | [optional] [default to null]
**LeavesQty** | **float32** | | [optional] [default to null]
**LeavesQty** | **int** | | [optional] [default to null]
**SimpleCumQty** | **float64** | | [optional] [default to null]
**CumQty** | **float32** | | [optional] [default to null]
**CumQty** | **int** | | [optional] [default to null]
**AvgPx** | **float64** | | [optional] [default to null]
**Commission** | **float64** | | [optional] [default to null]
**TradePublishIndicator** | **string** | | [optional] [default to null]
**MultiLegReportingType** | **string** | | [optional] [default to null]
**Text** | **string** | | [optional] [default to null]
**TrdMatchID** | **string** | | [optional] [default to null]
**ExecCost** | **float32** | | [optional] [default to null]
**ExecComm** | **float32** | | [optional] [default to null]
**ExecCost** | **int** | | [optional] [default to null]
**ExecComm** | **int** | | [optional] [default to null]
**HomeNotional** | **float64** | | [optional] [default to null]
**ForeignNotional** | **float64** | | [optional] [default to null]
**TransactTime** | [**time.Time**](time.Time.md) | | [optional] [default to null]
Expand Down
36 changes: 18 additions & 18 deletions docs/Instrument.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,21 @@ Name | Type | Description | Notes
**CalcInterval** | [**time.Time**](time.Time.md) | | [optional] [default to null]
**PublishInterval** | [**time.Time**](time.Time.md) | | [optional] [default to null]
**PublishTime** | [**time.Time**](time.Time.md) | | [optional] [default to null]
**MaxOrderQty** | **float32** | | [optional] [default to null]
**MaxOrderQty** | **int** | | [optional] [default to null]
**MaxPrice** | **float64** | | [optional] [default to null]
**LotSize** | **float32** | | [optional] [default to null]
**LotSize** | **int** | | [optional] [default to null]
**TickSize** | **float64** | | [optional] [default to null]
**Multiplier** | **float32** | | [optional] [default to null]
**Multiplier** | **int** | | [optional] [default to null]
**SettlCurrency** | **string** | | [optional] [default to null]
**UnderlyingToPositionMultiplier** | **float32** | | [optional] [default to null]
**UnderlyingToSettleMultiplier** | **float32** | | [optional] [default to null]
**QuoteToSettleMultiplier** | **float32** | | [optional] [default to null]
**UnderlyingToPositionMultiplier** | **int** | | [optional] [default to null]
**UnderlyingToSettleMultiplier** | **int** | | [optional] [default to null]
**QuoteToSettleMultiplier** | **int** | | [optional] [default to null]
**IsQuanto** | **bool** | | [optional] [default to null]
**IsInverse** | **bool** | | [optional] [default to null]
**InitMargin** | **float64** | | [optional] [default to null]
**MaintMargin** | **float64** | | [optional] [default to null]
**RiskLimit** | **float32** | | [optional] [default to null]
**RiskStep** | **float32** | | [optional] [default to null]
**RiskLimit** | **int** | | [optional] [default to null]
**RiskStep** | **int** | | [optional] [default to null]
**Limit** | **float64** | | [optional] [default to null]
**Capped** | **bool** | | [optional] [default to null]
**Taxed** | **bool** | | [optional] [default to null]
Expand All @@ -68,14 +68,14 @@ Name | Type | Description | Notes
**LimitUpPrice** | **float64** | | [optional] [default to null]
**BankruptLimitDownPrice** | **float64** | | [optional] [default to null]
**BankruptLimitUpPrice** | **float64** | | [optional] [default to null]
**PrevTotalVolume** | **float32** | | [optional] [default to null]
**TotalVolume** | **float32** | | [optional] [default to null]
**Volume** | **float32** | | [optional] [default to null]
**Volume24h** | **float32** | | [optional] [default to null]
**PrevTotalTurnover** | **float32** | | [optional] [default to null]
**TotalTurnover** | **float32** | | [optional] [default to null]
**Turnover** | **float32** | | [optional] [default to null]
**Turnover24h** | **float32** | | [optional] [default to null]
**PrevTotalVolume** | **int** | | [optional] [default to null]
**TotalVolume** | **int** | | [optional] [default to null]
**Volume** | **int** | | [optional] [default to null]
**Volume24h** | **int** | | [optional] [default to null]
**PrevTotalTurnover** | **int** | | [optional] [default to null]
**TotalTurnover** | **int** | | [optional] [default to null]
**Turnover** | **int** | | [optional] [default to null]
**Turnover24h** | **int** | | [optional] [default to null]
**PrevPrice24h** | **float64** | | [optional] [default to null]
**Vwap** | **float64** | | [optional] [default to null]
**HighPrice** | **float64** | | [optional] [default to null]
Expand All @@ -91,8 +91,8 @@ Name | Type | Description | Notes
**ImpactMidPrice** | **float64** | | [optional] [default to null]
**ImpactAskPrice** | **float64** | | [optional] [default to null]
**HasLiquidity** | **bool** | | [optional] [default to null]
**OpenInterest** | **float32** | | [optional] [default to null]
**OpenValue** | **float32** | | [optional] [default to null]
**OpenInterest** | **int** | | [optional] [default to null]
**OpenValue** | **int** | | [optional] [default to null]
**FairMethod** | **string** | | [optional] [default to null]
**FairBasisRate** | **float64** | | [optional] [default to null]
**FairBasis** | **float64** | | [optional] [default to null]
Expand Down
2 changes: 1 addition & 1 deletion docs/Insurance.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Currency** | **string** | | [default to null]
**Timestamp** | [**time.Time**](time.Time.md) | | [default to null]
**WalletBalance** | **float32** | | [optional] [default to null]
**WalletBalance** | **int** | | [optional] [default to null]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
2 changes: 1 addition & 1 deletion docs/Liquidation.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Name | Type | Description | Notes
**Symbol** | **string** | | [optional] [default to null]
**Side** | **string** | | [optional] [default to null]
**Price** | **float64** | | [optional] [default to null]
**LeavesQty** | **float32** | | [optional] [default to null]
**LeavesQty** | **int** | | [optional] [default to null]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
62 changes: 31 additions & 31 deletions docs/Margin.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,46 +3,46 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Account** | **float32** | | [default to null]
**Account** | **int** | | [default to null]
**Currency** | **string** | | [default to null]
**RiskLimit** | **float32** | | [optional] [default to null]
**RiskLimit** | **int** | | [optional] [default to null]
**PrevState** | **string** | | [optional] [default to null]
**State** | **string** | | [optional] [default to null]
**Action** | **string** | | [optional] [default to null]
**Amount** | **float32** | | [optional] [default to null]
**PendingCredit** | **float32** | | [optional] [default to null]
**PendingDebit** | **float32** | | [optional] [default to null]
**ConfirmedDebit** | **float32** | | [optional] [default to null]
**PrevRealisedPnl** | **float32** | | [optional] [default to null]
**PrevUnrealisedPnl** | **float32** | | [optional] [default to null]
**GrossComm** | **float32** | | [optional] [default to null]
**GrossOpenCost** | **float32** | | [optional] [default to null]
**GrossOpenPremium** | **float32** | | [optional] [default to null]
**GrossExecCost** | **float32** | | [optional] [default to null]
**GrossMarkValue** | **float32** | | [optional] [default to null]
**RiskValue** | **float32** | | [optional] [default to null]
**TaxableMargin** | **float32** | | [optional] [default to null]
**InitMargin** | **float32** | | [optional] [default to null]
**MaintMargin** | **float32** | | [optional] [default to null]
**SessionMargin** | **float32** | | [optional] [default to null]
**TargetExcessMargin** | **float32** | | [optional] [default to null]
**VarMargin** | **float32** | | [optional] [default to null]
**RealisedPnl** | **float32** | | [optional] [default to null]
**UnrealisedPnl** | **float32** | | [optional] [default to null]
**IndicativeTax** | **float32** | | [optional] [default to null]
**UnrealisedProfit** | **float32** | | [optional] [default to null]
**SyntheticMargin** | **float32** | | [optional] [default to null]
**WalletBalance** | **float32** | | [optional] [default to null]
**MarginBalance** | **float32** | | [optional] [default to null]
**Amount** | **int** | | [optional] [default to null]
**PendingCredit** | **int** | | [optional] [default to null]
**PendingDebit** | **int** | | [optional] [default to null]
**ConfirmedDebit** | **int** | | [optional] [default to null]
**PrevRealisedPnl** | **int** | | [optional] [default to null]
**PrevUnrealisedPnl** | **int** | | [optional] [default to null]
**GrossComm** | **int** | | [optional] [default to null]
**GrossOpenCost** | **int** | | [optional] [default to null]
**GrossOpenPremium** | **int** | | [optional] [default to null]
**GrossExecCost** | **int** | | [optional] [default to null]
**GrossMarkValue** | **int** | | [optional] [default to null]
**RiskValue** | **int** | | [optional] [default to null]
**TaxableMargin** | **int** | | [optional] [default to null]
**InitMargin** | **int** | | [optional] [default to null]
**MaintMargin** | **int** | | [optional] [default to null]
**SessionMargin** | **int** | | [optional] [default to null]
**TargetExcessMargin** | **int** | | [optional] [default to null]
**VarMargin** | **int** | | [optional] [default to null]
**RealisedPnl** | **int** | | [optional] [default to null]
**UnrealisedPnl** | **int** | | [optional] [default to null]
**IndicativeTax** | **int** | | [optional] [default to null]
**UnrealisedProfit** | **int** | | [optional] [default to null]
**SyntheticMargin** | **int** | | [optional] [default to null]
**WalletBalance** | **int** | | [optional] [default to null]
**MarginBalance** | **int** | | [optional] [default to null]
**MarginBalancePcnt** | **float64** | | [optional] [default to 0.0]
**MarginLeverage** | **float64** | | [optional] [default to 0.0]
**MarginUsedPcnt** | **float64** | | [optional] [default to 0.0]
**ExcessMargin** | **float32** | | [optional] [default to null]
**ExcessMargin** | **int** | | [optional] [default to null]
**ExcessMarginPcnt** | **float64** | | [optional] [default to 0.0]
**AvailableMargin** | **float32** | | [optional] [default to null]
**WithdrawableMargin** | **float32** | | [optional] [default to null]
**AvailableMargin** | **int** | | [optional] [default to null]
**WithdrawableMargin** | **int** | | [optional] [default to null]
**Timestamp** | [**time.Time**](time.Time.md) | | [optional] [default to null]
**GrossLastValue** | **float32** | | [optional] [default to null]
**GrossLastValue** | **int** | | [optional] [default to null]
**Commission** | **float64** | | [optional] [default to 0.0]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
4 changes: 2 additions & 2 deletions docs/Notification.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Id** | **float32** | | [optional] [default to null]
**Id** | **int** | | [optional] [default to null]
**Date** | [**time.Time**](time.Time.md) | | [default to null]
**Title** | **string** | | [default to null]
**Body** | **string** | | [default to null]
**Ttl** | **float32** | | [default to null]
**Ttl** | **int** | | [default to null]
**Type_** | **string** | | [optional] [default to null]
**Closable** | **bool** | | [optional] [default to null]
**Persist** | **bool** | | [optional] [default to null]
Expand Down
Loading

0 comments on commit 4452ce9

Please sign in to comment.