snaptrade

package module
v1.0.119 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2025 License: MIT Imports: 27 Imported by: 0

README

Visit SnapTrade

SnapTrade

Connect brokerage accounts to your app for live positions and trading

Go Reference More Info

Installation

Add to your project:

go get github.com/passiv/snaptrade-sdks/sdks/go

Getting Started

package main

import (
	"fmt"
	"os"

	snaptrade "github.com/passiv/snaptrade-sdks/sdks/go"
)

func main() {
	configuration := snaptrade.NewConfiguration()
	configuration.SetPartnerClientId(os.Getenv("SNAPTRADE_CLIENT_ID"))
	configuration.SetConsumerKey(os.Getenv("SNAPTRADE_CONSUMER_KEY"))
	client := snaptrade.NewAPIClient(configuration)

	// 1) Create a new user
	requestBody := snaptrade.NewSnapTradeRegisterUserRequestBody()
	userId := "USER_ID_FROM_YOU"
	requestBody.SetUserId(userId)
	request := client.AuthenticationApi.RegisterSnapTradeUser(*requestBody)
	resp, _, _ := request.Execute()

	// 2) Get user secret
	userSecret := resp.UserSecret

	// 3) Get redirect URI
	loginResp, _, _ := client.AuthenticationApi.LoginSnapTradeUser(userId, *userSecret).Execute()
	fmt.Println("Login redirect URI:", loginResp.LoginRedirectURI)

	// 4) Obtain account holdings data
	holdingsResp, _, _ := client.AccountInformationApi.GetAllUserHoldings(userId, *userSecret).Execute()
	fmt.Println("Account holdings:", holdingsResp)
	// 5) Delete the user
	deleteResp, _, _ := client.AuthenticationApi.DeleteSnapTradeUser(userId).Execute()
	fmt.Println("User deletion response:", deleteResp)
}

Documentation for API Endpoints

All URIs are relative to https://api.snaptrade.com/api/v1

Class Method HTTP request Description
AccountInformationApi GetAccountActivities Get /accounts/{accountId}/activities List account activities
AccountInformationApi GetAllUserHoldings Get /holdings List all accounts for the user, plus balances, positions, and orders for each account.
AccountInformationApi GetUserAccountBalance Get /accounts/{accountId}/balances List account balances
AccountInformationApi GetUserAccountDetails Get /accounts/{accountId} Get account detail
AccountInformationApi GetUserAccountOrderDetail Post /accounts/{accountId}/orders/details Get account order detail
AccountInformationApi GetUserAccountOrders Get /accounts/{accountId}/orders List account orders
AccountInformationApi GetUserAccountPositions Get /accounts/{accountId}/positions List account positions
AccountInformationApi GetUserAccountRecentOrders Get /accounts/{accountId}/recentOrders List account recent orders (last 24 hours only)
AccountInformationApi GetUserAccountReturnRates Get /accounts/{accountId}/returnRates List account rate of returns
AccountInformationApi GetUserHoldings Get /accounts/{accountId}/holdings List account holdings
AccountInformationApi ListUserAccounts Get /accounts List accounts
AccountInformationApi UpdateUserAccount Put /accounts/{accountId} Update details of an investment account
APIStatusApi Check Get / Get API Status
AuthenticationApi DeleteSnapTradeUser Delete /snapTrade/deleteUser Delete user
AuthenticationApi ListSnapTradeUsers Get /snapTrade/listUsers List all users
AuthenticationApi LoginSnapTradeUser Post /snapTrade/login Generate Connection Portal URL
AuthenticationApi RegisterSnapTradeUser Post /snapTrade/registerUser Register user
AuthenticationApi ResetSnapTradeUserSecret Post /snapTrade/resetUserSecret Rotate user secret
ConnectionsApi DetailBrokerageAuthorization Get /authorizations/{authorizationId} Get connection detail
ConnectionsApi DisableBrokerageAuthorization Post /authorizations/{authorizationId}/disable Force disable connection
ConnectionsApi ListBrokerageAuthorizations Get /authorizations List all connections
ConnectionsApi RefreshBrokerageAuthorization Post /authorizations/{authorizationId}/refresh Refresh holdings for a connection
ConnectionsApi RemoveBrokerageAuthorization Delete /authorizations/{authorizationId} Delete connection
ConnectionsApi ReturnRates Get /authorizations/{authorizationId}/returnRates List connection rate of returns
ConnectionsApi SessionEvents Get /sessionEvents Get all session events for a user
ExperimentalEndpointsApi GetUserAccountOrdersV2 Get /accounts/{accountId}/orders/v2 List account orders v2
ExperimentalEndpointsApi GetUserAccountRecentOrdersV2 Get /accounts/{accountId}/recentOrders/v2 List account recent orders (V2, last 24 hours only)
OptionsApi GetOptionsChain Get /accounts/{accountId}/optionsChain Get the options chain for a symbol
OptionsApi ListOptionHoldings Get /accounts/{accountId}/options List account option positions
ReferenceDataApi GetCurrencyExchangeRatePair Get /currencies/rates/{currencyPair} Get exchange rate of a currency pair
ReferenceDataApi GetPartnerInfo Get /snapTrade/partners Get Client Info
ReferenceDataApi GetSecurityTypes Get /securityTypes List security types
ReferenceDataApi GetStockExchanges Get /exchanges Get exchanges
ReferenceDataApi GetSymbols Post /symbols Search symbols
ReferenceDataApi GetSymbolsByTicker Get /symbols/{query} Get symbol detail
ReferenceDataApi ListAllBrokerageAuthorizationType Get /brokerageAuthorizationTypes Get all brokerage authorization types
ReferenceDataApi ListAllBrokerageInstruments Get /brokerages/{slug}/instruments Get brokerage instruments
ReferenceDataApi ListAllBrokerages Get /brokerages Get brokerages
ReferenceDataApi ListAllCurrencies Get /currencies Get currencies
ReferenceDataApi ListAllCurrenciesRates Get /currencies/rates Get currency exchange rates
ReferenceDataApi SymbolSearchUserAccount Post /accounts/{accountId}/symbols Search account symbols
TradingApi CancelOrder Post /accounts/{accountId}/trading/cancel Cancel order
TradingApi CancelUserAccountOrder Post /accounts/{accountId}/orders/cancel Cancel equity order
TradingApi GetCryptocurrencyPairQuote Get /accounts/{accountId}/trading/instruments/cryptocurrencyPairs/{instrumentSymbol}/quote Get crypto pair quote
TradingApi GetOrderImpact Post /trade/impact Check equity order impact
TradingApi GetUserAccountQuotes Get /accounts/{accountId}/quotes Get equity symbol quotes
TradingApi PlaceBracketOrder Post /accounts/{accountId}/trading/bracket Place bracket order
TradingApi PlaceCryptoOrder Post /accounts/{accountId}/trading/crypto Place crypto order
TradingApi PlaceForceOrder Post /trade/place Place equity order
TradingApi PlaceMlegOrder Post /accounts/{accountId}/trading/options Place option order
TradingApi PlaceOrder Post /trade/{tradeId} Place checked equity order
TradingApi PreviewCryptoOrder Post /accounts/{accountId}/trading/crypto/preview Preview crypto order
TradingApi ReplaceOrder Post /accounts/{accountId}/trading/replace Replace order
TradingApi SearchCryptocurrencyPairInstruments Get /accounts/{accountId}/trading/instruments/cryptocurrencyPairs Get crypto pairs
TransactionsAndReportingApi GetActivities Get /activities Get transaction history for a user
TransactionsAndReportingApi GetReportingCustomRange Get /performance/custom Get performance information for a specific timeframe

Documentation For Models

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
	ContextOAuth2 = contextKey("token")

	// ContextBasicAuth takes BasicAuth as authentication for the request.
	ContextBasicAuth = contextKey("basic")

	// ContextAccessToken takes a string oauth2 access token as authentication for the request.
	ContextAccessToken = contextKey("accesstoken")

	// ContextAPIKeys takes a string apikey as authentication for the request
	ContextAPIKeys = contextKey("apiKeys")

	// ContextHttpSignatureAuth takes HttpSignatureAuth as authentication for the request.
	ContextHttpSignatureAuth = contextKey("httpsignature")

	// ContextServerIndex uses a server configuration from the index.
	ContextServerIndex = contextKey("serverIndex")

	// ContextOperationServerIndices uses a server configuration from the index mapping.
	ContextOperationServerIndices = contextKey("serverOperationIndices")

	// ContextServerVariables overrides a server configuration variables.
	ContextServerVariables = contextKey("serverVariables")

	// ContextOperationServerVariables overrides a server configuration variables using operation specific values.
	ContextOperationServerVariables = contextKey("serverOperationVariables")
)
View Source
var AllowedAccountOrderRecordStatusEnumValues = []AccountOrderRecordStatus{
	"NONE",
	"PENDING",
	"ACCEPTED",
	"FAILED",
	"REJECTED",
	"CANCELED",
	"PARTIAL_CANCELED",
	"CANCEL_PENDING",
	"EXECUTED",
	"PARTIAL",
	"REPLACE_PENDING",
	"REPLACED",
	"STOPPED",
	"SUSPENDED",
	"EXPIRED",
	"QUEUED",
	"TRIGGERED",
	"ACTIVATED",
	"PENDING_RISK_REVIEW",
	"CONTINGENT_ORDER",
}

All allowed values of AccountOrderRecordStatus enum

View Source
var AllowedAccountOrderRecordStatusV2EnumValues = []AccountOrderRecordStatusV2{
	"PENDING",
	"REJECTED",
	"CANCELED",
	"CANCEL_PENDING",
	"PARTIAL_CANCELED",
	"EXECUTED",
	"PARTIALLY_EXECUTED",
	"REPLACED",
	"REPLACE_PENDING",
	"EXPIRED",
}

All allowed values of AccountOrderRecordStatusV2 enum

View Source
var AllowedActionStrictEnumValues = []ActionStrict{
	"BUY",
	"SELL",
}

All allowed values of ActionStrict enum

View Source
var AllowedActionStrictWithOptionsEnumValues = []ActionStrictWithOptions{
	"BUY",
	"SELL",
	"BUY_TO_OPEN",
	"BUY_TO_CLOSE",
	"SELL_TO_OPEN",
	"SELL_TO_CLOSE",
}

All allowed values of ActionStrictWithOptions enum

View Source
var AllowedMlegActionStrictEnumValues = []MlegActionStrict{
	"BUY",
	"SELL",
	"BUY_TO_OPEN",
	"BUY_TO_CLOSE",
	"SELL_TO_OPEN",
	"SELL_TO_CLOSE",
}

All allowed values of MlegActionStrict enum

View Source
var AllowedMlegInstrumentTypeEnumValues = []MlegInstrumentType{
	"OPTION",
	"EQUITY",
}

All allowed values of MlegInstrumentType enum

View Source
var AllowedMlegOrderTypeStrictEnumValues = []MlegOrderTypeStrict{
	"MARKET",
	"LIMIT",
	"STOP_LOSS_MARKET",
	"STOP_LOSS_LIMIT",
}

All allowed values of MlegOrderTypeStrict enum

View Source
var AllowedMlegPriceEffectStrictEnumValues = []MlegPriceEffectStrict{
	"CREDIT",
	"DEBIT",
	"EVEN",
}

All allowed values of MlegPriceEffectStrict enum

View Source
var AllowedOrderTypeStrictEnumValues = []OrderTypeStrict{
	"Limit",
	"Market",
	"StopLimit",
	"Stop",
}

All allowed values of OrderTypeStrict enum

View Source
var AllowedTimeInForceStrictEnumValues = []TimeInForceStrict{
	"FOK",
	"Day",
	"GTC",
	"IOC",
}

All allowed values of TimeInForceStrict enum

View Source
var AllowedTradingSessionEnumValues = []TradingSession{
	"REGULAR",
	"EXTENDED",
}

All allowed values of TradingSession enum

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time value.

Types

type APIClient

type APIClient struct {
	AccountInformationApi *AccountInformationApiService

	APIStatusApi *APIStatusApiService

	AuthenticationApi *AuthenticationApiService

	ConnectionsApi *ConnectionsApiService

	ExperimentalEndpointsApi *ExperimentalEndpointsApiService

	OptionsApi *OptionsApiService

	ReferenceDataApi *ReferenceDataApiService

	TradingApi *TradingApiService

	TransactionsAndReportingApi *TransactionsAndReportingApiService
	// contains filtered or unexported fields
}

APIClient manages communication with the SnapTrade API v1.0.0 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *Configuration

Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the OpenAPI operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

APIResponse stores the API response returned by the server.

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResponse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

NewAPIResponseWithError returns a new APIResponse object with the provided error message.

type APIStatusApiCheckRequest

type APIStatusApiCheckRequest struct {
	ApiService *APIStatusApiService
	// contains filtered or unexported fields
}

func (APIStatusApiCheckRequest) Execute

type APIStatusApiService

type APIStatusApiService service

APIStatusApiService APIStatusApi service

func (*APIStatusApiService) Check

Check Get API Status

Check whether the API is operational and verify timestamps.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return APIStatusApiCheckRequest

func (*APIStatusApiService) CheckExecute

Execute executes the request

@return Status

type Account

type Account struct {
	// Unique identifier for the connected brokerage account. This is the UUID used to reference the account in SnapTrade. This ID should not change for as long as the connection stays active. If the connection is deleted and re-added, a new account ID will be generated.
	Id string `json:"id"`
	// Unique identifier for the connection. This is the UUID used to reference the connection in SnapTrade.
	BrokerageAuthorization string `json:"brokerage_authorization"`
	// A display name for the account. Either assigned by the user or by the brokerage itself. For certain brokerages, SnapTrade appends the brokerage name to the account name for clarity.
	Name NullableString `json:"name"`
	// The account number assigned by the brokerage. For some brokerages, this field may be masked for security reasons.
	Number string `json:"number"`
	// The name of the brokerage that holds the account.
	InstitutionName string `json:"institution_name"`
	// Timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format indicating when the account was created in SnapTrade. This is _not_ the account opening date at the brokerage.
	CreatedDate time.Time         `json:"created_date"`
	SyncStatus  AccountSyncStatus `json:"sync_status"`
	Balance     AccountBalance    `json:"balance"`
	// The current status of the account. Can be either \"open\", \"closed\", \"archived\" or null if the status is unknown or not provided by the brokerage.
	Status NullableString `json:"status,omitempty"`
	// The account type as provided by the brokerage
	RawType NullableString `json:"raw_type,omitempty"`
	// Additional information about the account, such as account type, status, etc. This information is specific to the brokerage and there's no standard format for this data. This field is deprecated and subject to removal in a future version.
	// Deprecated
	Meta map[string]interface{} `json:"meta,omitempty"`
	// Portfolio Group ID. Portfolio Groups have been deprecated. Please contact support if you have a usecase for it.
	// Deprecated
	PortfolioGroup *string `json:"portfolio_group,omitempty"`
	// This field is deprecated.
	// Deprecated
	CashRestrictions     []string `json:"cash_restrictions,omitempty"`
	AdditionalProperties map[string]interface{}
}

Account A single account at a brokerage.

func NewAccount

func NewAccount(id string, brokerageAuthorization string, name NullableString, number string, institutionName string, createdDate time.Time, syncStatus AccountSyncStatus, balance AccountBalance) *Account

NewAccount instantiates a new Account object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAccountWithDefaults

func NewAccountWithDefaults() *Account

NewAccountWithDefaults instantiates a new Account object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Account) GetBalance

func (o *Account) GetBalance() AccountBalance

GetBalance returns the Balance field value

func (*Account) GetBalanceOk

func (o *Account) GetBalanceOk() (*AccountBalance, bool)

GetBalanceOk returns a tuple with the Balance field value and a boolean to check if the value has been set.

func (*Account) GetBrokerageAuthorization

func (o *Account) GetBrokerageAuthorization() string

GetBrokerageAuthorization returns the BrokerageAuthorization field value

func (*Account) GetBrokerageAuthorizationOk

func (o *Account) GetBrokerageAuthorizationOk() (*string, bool)

GetBrokerageAuthorizationOk returns a tuple with the BrokerageAuthorization field value and a boolean to check if the value has been set.

func (*Account) GetCashRestrictions

func (o *Account) GetCashRestrictions() []string

GetCashRestrictions returns the CashRestrictions field value if set, zero value otherwise. Deprecated

func (*Account) GetCashRestrictionsOk

func (o *Account) GetCashRestrictionsOk() ([]string, bool)

GetCashRestrictionsOk returns a tuple with the CashRestrictions field value if set, nil otherwise and a boolean to check if the value has been set. Deprecated

func (*Account) GetCreatedDate

func (o *Account) GetCreatedDate() time.Time

GetCreatedDate returns the CreatedDate field value

func (*Account) GetCreatedDateOk

func (o *Account) GetCreatedDateOk() (*time.Time, bool)

GetCreatedDateOk returns a tuple with the CreatedDate field value and a boolean to check if the value has been set.

func (*Account) GetId

func (o *Account) GetId() string

GetId returns the Id field value

func (*Account) GetIdOk

func (o *Account) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*Account) GetInstitutionName

func (o *Account) GetInstitutionName() string

GetInstitutionName returns the InstitutionName field value

func (*Account) GetInstitutionNameOk

func (o *Account) GetInstitutionNameOk() (*string, bool)

GetInstitutionNameOk returns a tuple with the InstitutionName field value and a boolean to check if the value has been set.

func (*Account) GetMeta

func (o *Account) GetMeta() map[string]interface{}

GetMeta returns the Meta field value if set, zero value otherwise. Deprecated

func (*Account) GetMetaOk

func (o *Account) GetMetaOk() (map[string]interface{}, bool)

GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set. Deprecated

func (*Account) GetName

func (o *Account) GetName() string

GetName returns the Name field value If the value is explicit nil, the zero value for string will be returned

func (*Account) GetNameOk

func (o *Account) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Account) GetNumber

func (o *Account) GetNumber() string

GetNumber returns the Number field value

func (*Account) GetNumberOk

func (o *Account) GetNumberOk() (*string, bool)

GetNumberOk returns a tuple with the Number field value and a boolean to check if the value has been set.

func (*Account) GetPortfolioGroup

func (o *Account) GetPortfolioGroup() string

GetPortfolioGroup returns the PortfolioGroup field value if set, zero value otherwise. Deprecated

func (*Account) GetPortfolioGroupOk

func (o *Account) GetPortfolioGroupOk() (*string, bool)

GetPortfolioGroupOk returns a tuple with the PortfolioGroup field value if set, nil otherwise and a boolean to check if the value has been set. Deprecated

func (*Account) GetRawType added in v1.0.41

func (o *Account) GetRawType() string

GetRawType returns the RawType field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Account) GetRawTypeOk added in v1.0.41

func (o *Account) GetRawTypeOk() (*string, bool)

GetRawTypeOk returns a tuple with the RawType field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Account) GetStatus added in v1.0.76

func (o *Account) GetStatus() string

GetStatus returns the Status field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Account) GetStatusOk added in v1.0.76

func (o *Account) GetStatusOk() (*string, bool)

GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Account) GetSyncStatus

func (o *Account) GetSyncStatus() AccountSyncStatus

GetSyncStatus returns the SyncStatus field value

func (*Account) GetSyncStatusOk

func (o *Account) GetSyncStatusOk() (*AccountSyncStatus, bool)

GetSyncStatusOk returns a tuple with the SyncStatus field value and a boolean to check if the value has been set.

func (*Account) HasCashRestrictions

func (o *Account) HasCashRestrictions() bool

HasCashRestrictions returns a boolean if a field has been set.

func (*Account) HasMeta

func (o *Account) HasMeta() bool

HasMeta returns a boolean if a field has been set.

func (*Account) HasPortfolioGroup

func (o *Account) HasPortfolioGroup() bool

HasPortfolioGroup returns a boolean if a field has been set.

func (*Account) HasRawType added in v1.0.41

func (o *Account) HasRawType() bool

HasRawType returns a boolean if a field has been set.

func (*Account) HasStatus added in v1.0.76

func (o *Account) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (Account) MarshalJSON

func (o Account) MarshalJSON() ([]byte, error)

func (*Account) SetBalance

func (o *Account) SetBalance(v AccountBalance)

SetBalance sets field value

func (*Account) SetBrokerageAuthorization

func (o *Account) SetBrokerageAuthorization(v string)

SetBrokerageAuthorization sets field value

func (*Account) SetCashRestrictions

func (o *Account) SetCashRestrictions(v []string)

SetCashRestrictions gets a reference to the given []string and assigns it to the CashRestrictions field. Deprecated

func (*Account) SetCreatedDate

func (o *Account) SetCreatedDate(v time.Time)

SetCreatedDate sets field value

func (*Account) SetId

func (o *Account) SetId(v string)

SetId sets field value

func (*Account) SetInstitutionName

func (o *Account) SetInstitutionName(v string)

SetInstitutionName sets field value

func (*Account) SetMeta

func (o *Account) SetMeta(v map[string]interface{})

SetMeta gets a reference to the given map[string]interface{} and assigns it to the Meta field. Deprecated

func (*Account) SetName

func (o *Account) SetName(v string)

SetName sets field value

func (*Account) SetNumber

func (o *Account) SetNumber(v string)

SetNumber sets field value

func (*Account) SetPortfolioGroup

func (o *Account) SetPortfolioGroup(v string)

SetPortfolioGroup gets a reference to the given string and assigns it to the PortfolioGroup field. Deprecated

func (*Account) SetRawType added in v1.0.41

func (o *Account) SetRawType(v string)

SetRawType gets a reference to the given NullableString and assigns it to the RawType field.

func (*Account) SetRawTypeNil added in v1.0.41

func (o *Account) SetRawTypeNil()

SetRawTypeNil sets the value for RawType to be an explicit nil

func (*Account) SetStatus added in v1.0.76

func (o *Account) SetStatus(v string)

SetStatus gets a reference to the given NullableString and assigns it to the Status field.

func (*Account) SetStatusNil added in v1.0.76

func (o *Account) SetStatusNil()

SetStatusNil sets the value for Status to be an explicit nil

func (*Account) SetSyncStatus

func (o *Account) SetSyncStatus(v AccountSyncStatus)

SetSyncStatus sets field value

func (*Account) UnmarshalJSON

func (o *Account) UnmarshalJSON(bytes []byte) (err error)

func (*Account) UnsetRawType added in v1.0.41

func (o *Account) UnsetRawType()

UnsetRawType ensures that no value is present for RawType, not even an explicit nil

func (*Account) UnsetStatus added in v1.0.76

func (o *Account) UnsetStatus()

UnsetStatus ensures that no value is present for Status, not even an explicit nil

type AccountBalance

type AccountBalance struct {
	Total NullableAccountBalanceTotal `json:"total,omitempty"`
}

AccountBalance Contains balance related information for the account.

func NewAccountBalance

func NewAccountBalance() *AccountBalance

NewAccountBalance instantiates a new AccountBalance object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAccountBalanceWithDefaults

func NewAccountBalanceWithDefaults() *AccountBalance

NewAccountBalanceWithDefaults instantiates a new AccountBalance object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AccountBalance) GetTotal

func (o *AccountBalance) GetTotal() AccountBalanceTotal

GetTotal returns the Total field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AccountBalance) GetTotalOk

func (o *AccountBalance) GetTotalOk() (*AccountBalanceTotal, bool)

GetTotalOk returns a tuple with the Total field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AccountBalance) HasTotal

func (o *AccountBalance) HasTotal() bool

HasTotal returns a boolean if a field has been set.

func (AccountBalance) MarshalJSON

func (o AccountBalance) MarshalJSON() ([]byte, error)

func (*AccountBalance) SetTotal

func (o *AccountBalance) SetTotal(v AccountBalanceTotal)

SetTotal gets a reference to the given NullableAccountBalanceTotal and assigns it to the Total field.

func (*AccountBalance) SetTotalNil

func (o *AccountBalance) SetTotalNil()

SetTotalNil sets the value for Total to be an explicit nil

func (*AccountBalance) UnsetTotal

func (o *AccountBalance) UnsetTotal()

UnsetTotal ensures that no value is present for Total, not even an explicit nil

type AccountBalanceTotal

type AccountBalanceTotal struct {
	// Total value denominated in the currency of the `currency` field.
	Amount *float32 `json:"amount,omitempty"`
	// The ISO-4217 currency code for the amount.
	Currency *string `json:"currency,omitempty"`
}

AccountBalanceTotal Total market value of this account (includes cash, equity, fixed income, etc). This value is directly obtained from the brokerage and should reflect the most accurate value of the account.

func NewAccountBalanceTotal

func NewAccountBalanceTotal() *AccountBalanceTotal

NewAccountBalanceTotal instantiates a new AccountBalanceTotal object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAccountBalanceTotalWithDefaults

func NewAccountBalanceTotalWithDefaults() *AccountBalanceTotal

NewAccountBalanceTotalWithDefaults instantiates a new AccountBalanceTotal object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AccountBalanceTotal) GetAmount

func (o *AccountBalanceTotal) GetAmount() float32

GetAmount returns the Amount field value if set, zero value otherwise.

func (*AccountBalanceTotal) GetAmountOk

func (o *AccountBalanceTotal) GetAmountOk() (*float32, bool)

GetAmountOk returns a tuple with the Amount field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountBalanceTotal) GetCurrency

func (o *AccountBalanceTotal) GetCurrency() string

GetCurrency returns the Currency field value if set, zero value otherwise.

func (*AccountBalanceTotal) GetCurrencyOk

func (o *AccountBalanceTotal) GetCurrencyOk() (*string, bool)

GetCurrencyOk returns a tuple with the Currency field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountBalanceTotal) HasAmount

func (o *AccountBalanceTotal) HasAmount() bool

HasAmount returns a boolean if a field has been set.

func (*AccountBalanceTotal) HasCurrency

func (o *AccountBalanceTotal) HasCurrency() bool

HasCurrency returns a boolean if a field has been set.

func (AccountBalanceTotal) MarshalJSON

func (o AccountBalanceTotal) MarshalJSON() ([]byte, error)

func (*AccountBalanceTotal) SetAmount

func (o *AccountBalanceTotal) SetAmount(v float32)

SetAmount gets a reference to the given float32 and assigns it to the Amount field.

func (*AccountBalanceTotal) SetCurrency

func (o *AccountBalanceTotal) SetCurrency(v string)

SetCurrency gets a reference to the given string and assigns it to the Currency field.

type AccountHoldings

type AccountHoldings struct {
	Account   *SnapTradeHoldingsAccount `json:"account,omitempty"`
	Balances  []Balance                 `json:"balances,omitempty"`
	Positions []Position                `json:"positions,omitempty"`
	// Deprecated
	TotalValue           *SnapTradeHoldingsTotalValue `json:"total_value,omitempty"`
	AdditionalProperties map[string]interface{}
}

AccountHoldings Account Holdings

func NewAccountHoldings

func NewAccountHoldings() *AccountHoldings

NewAccountHoldings instantiates a new AccountHoldings object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAccountHoldingsWithDefaults

func NewAccountHoldingsWithDefaults() *AccountHoldings

NewAccountHoldingsWithDefaults instantiates a new AccountHoldings object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AccountHoldings) GetAccount

func (o *AccountHoldings) GetAccount() SnapTradeHoldingsAccount

GetAccount returns the Account field value if set, zero value otherwise.

func (*AccountHoldings) GetAccountOk

func (o *AccountHoldings) GetAccountOk() (*SnapTradeHoldingsAccount, bool)

GetAccountOk returns a tuple with the Account field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountHoldings) GetBalances

func (o *AccountHoldings) GetBalances() []Balance

GetBalances returns the Balances field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AccountHoldings) GetBalancesOk

func (o *AccountHoldings) GetBalancesOk() ([]Balance, bool)

GetBalancesOk returns a tuple with the Balances field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AccountHoldings) GetPositions

func (o *AccountHoldings) GetPositions() []Position

GetPositions returns the Positions field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AccountHoldings) GetPositionsOk

func (o *AccountHoldings) GetPositionsOk() ([]Position, bool)

GetPositionsOk returns a tuple with the Positions field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AccountHoldings) GetTotalValue

func (o *AccountHoldings) GetTotalValue() SnapTradeHoldingsTotalValue

GetTotalValue returns the TotalValue field value if set, zero value otherwise. Deprecated

func (*AccountHoldings) GetTotalValueOk

func (o *AccountHoldings) GetTotalValueOk() (*SnapTradeHoldingsTotalValue, bool)

GetTotalValueOk returns a tuple with the TotalValue field value if set, nil otherwise and a boolean to check if the value has been set. Deprecated

func (*AccountHoldings) HasAccount

func (o *AccountHoldings) HasAccount() bool

HasAccount returns a boolean if a field has been set.

func (*AccountHoldings) HasBalances

func (o *AccountHoldings) HasBalances() bool

HasBalances returns a boolean if a field has been set.

func (*AccountHoldings) HasPositions

func (o *AccountHoldings) HasPositions() bool

HasPositions returns a boolean if a field has been set.

func (*AccountHoldings) HasTotalValue

func (o *AccountHoldings) HasTotalValue() bool

HasTotalValue returns a boolean if a field has been set.

func (AccountHoldings) MarshalJSON

func (o AccountHoldings) MarshalJSON() ([]byte, error)

func (*AccountHoldings) SetAccount

func (o *AccountHoldings) SetAccount(v SnapTradeHoldingsAccount)

SetAccount gets a reference to the given SnapTradeHoldingsAccount and assigns it to the Account field.

func (*AccountHoldings) SetBalances

func (o *AccountHoldings) SetBalances(v []Balance)

SetBalances gets a reference to the given []Balance and assigns it to the Balances field.

func (*AccountHoldings) SetPositions

func (o *AccountHoldings) SetPositions(v []Position)

SetPositions gets a reference to the given []Position and assigns it to the Positions field.

func (*AccountHoldings) SetTotalValue

func (o *AccountHoldings) SetTotalValue(v SnapTradeHoldingsTotalValue)

SetTotalValue gets a reference to the given SnapTradeHoldingsTotalValue and assigns it to the TotalValue field. Deprecated

func (*AccountHoldings) UnmarshalJSON

func (o *AccountHoldings) UnmarshalJSON(bytes []byte) (err error)

type AccountHoldingsAccount

type AccountHoldingsAccount struct {
	Account *Account `json:"account,omitempty"`
	// List of balances for the account. Each element of the list has a distinct currency. Some brokerages like Questrade [allows holding multiple currencies in the same account](https://www.questrade.com/learning/questrade-basics/balances-and-reports/understanding-your-account-balances).
	Balances []Balance `json:"balances,omitempty"`
	// List of stock/ETF/crypto/mutual fund positions in the account.
	Positions []Position `json:"positions,omitempty"`
	// List of option positions in the account.
	OptionPositions []OptionsPosition `json:"option_positions,omitempty"`
	// List of recent orders in the account, including both pending and executed orders. Note that option orders are included in this list. Option orders will have a null `universal_symbol` field and a non-null `option_symbol` field.
	Orders []AccountOrderRecord `json:"orders,omitempty"`
	// Deprecated
	TotalValue           *SnapTradeHoldingsTotalValue `json:"total_value,omitempty"`
	AdditionalProperties map[string]interface{}
}

AccountHoldingsAccount A wrapper object containing holdings information for a single account.

func NewAccountHoldingsAccount

func NewAccountHoldingsAccount() *AccountHoldingsAccount

NewAccountHoldingsAccount instantiates a new AccountHoldingsAccount object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAccountHoldingsAccountWithDefaults

func NewAccountHoldingsAccountWithDefaults() *AccountHoldingsAccount

NewAccountHoldingsAccountWithDefaults instantiates a new AccountHoldingsAccount object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AccountHoldingsAccount) GetAccount

func (o *AccountHoldingsAccount) GetAccount() Account

GetAccount returns the Account field value if set, zero value otherwise.

func (*AccountHoldingsAccount) GetAccountOk

func (o *AccountHoldingsAccount) GetAccountOk() (*Account, bool)

GetAccountOk returns a tuple with the Account field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountHoldingsAccount) GetBalances

func (o *AccountHoldingsAccount) GetBalances() []Balance

GetBalances returns the Balances field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AccountHoldingsAccount) GetBalancesOk

func (o *AccountHoldingsAccount) GetBalancesOk() ([]Balance, bool)

GetBalancesOk returns a tuple with the Balances field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AccountHoldingsAccount) GetOptionPositions

func (o *AccountHoldingsAccount) GetOptionPositions() []OptionsPosition

GetOptionPositions returns the OptionPositions field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AccountHoldingsAccount) GetOptionPositionsOk

func (o *AccountHoldingsAccount) GetOptionPositionsOk() ([]OptionsPosition, bool)

GetOptionPositionsOk returns a tuple with the OptionPositions field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AccountHoldingsAccount) GetOrders

func (o *AccountHoldingsAccount) GetOrders() []AccountOrderRecord

GetOrders returns the Orders field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AccountHoldingsAccount) GetOrdersOk

func (o *AccountHoldingsAccount) GetOrdersOk() ([]AccountOrderRecord, bool)

GetOrdersOk returns a tuple with the Orders field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AccountHoldingsAccount) GetPositions

func (o *AccountHoldingsAccount) GetPositions() []Position

GetPositions returns the Positions field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AccountHoldingsAccount) GetPositionsOk

func (o *AccountHoldingsAccount) GetPositionsOk() ([]Position, bool)

GetPositionsOk returns a tuple with the Positions field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AccountHoldingsAccount) GetTotalValue

GetTotalValue returns the TotalValue field value if set, zero value otherwise. Deprecated

func (*AccountHoldingsAccount) GetTotalValueOk

func (o *AccountHoldingsAccount) GetTotalValueOk() (*SnapTradeHoldingsTotalValue, bool)

GetTotalValueOk returns a tuple with the TotalValue field value if set, nil otherwise and a boolean to check if the value has been set. Deprecated

func (*AccountHoldingsAccount) HasAccount

func (o *AccountHoldingsAccount) HasAccount() bool

HasAccount returns a boolean if a field has been set.

func (*AccountHoldingsAccount) HasBalances

func (o *AccountHoldingsAccount) HasBalances() bool

HasBalances returns a boolean if a field has been set.

func (*AccountHoldingsAccount) HasOptionPositions

func (o *AccountHoldingsAccount) HasOptionPositions() bool

HasOptionPositions returns a boolean if a field has been set.

func (*AccountHoldingsAccount) HasOrders

func (o *AccountHoldingsAccount) HasOrders() bool

HasOrders returns a boolean if a field has been set.

func (*AccountHoldingsAccount) HasPositions

func (o *AccountHoldingsAccount) HasPositions() bool

HasPositions returns a boolean if a field has been set.

func (*AccountHoldingsAccount) HasTotalValue

func (o *AccountHoldingsAccount) HasTotalValue() bool

HasTotalValue returns a boolean if a field has been set.

func (AccountHoldingsAccount) MarshalJSON

func (o AccountHoldingsAccount) MarshalJSON() ([]byte, error)

func (*AccountHoldingsAccount) SetAccount

func (o *AccountHoldingsAccount) SetAccount(v Account)

SetAccount gets a reference to the given Account and assigns it to the Account field.

func (*AccountHoldingsAccount) SetBalances

func (o *AccountHoldingsAccount) SetBalances(v []Balance)

SetBalances gets a reference to the given []Balance and assigns it to the Balances field.

func (*AccountHoldingsAccount) SetOptionPositions

func (o *AccountHoldingsAccount) SetOptionPositions(v []OptionsPosition)

SetOptionPositions gets a reference to the given []OptionsPosition and assigns it to the OptionPositions field.

func (*AccountHoldingsAccount) SetOrders

func (o *AccountHoldingsAccount) SetOrders(v []AccountOrderRecord)

SetOrders gets a reference to the given []AccountOrderRecord and assigns it to the Orders field.

func (*AccountHoldingsAccount) SetPositions

func (o *AccountHoldingsAccount) SetPositions(v []Position)

SetPositions gets a reference to the given []Position and assigns it to the Positions field.

func (*AccountHoldingsAccount) SetTotalValue

SetTotalValue gets a reference to the given SnapTradeHoldingsTotalValue and assigns it to the TotalValue field. Deprecated

func (*AccountHoldingsAccount) UnmarshalJSON

func (o *AccountHoldingsAccount) UnmarshalJSON(bytes []byte) (err error)

type AccountInformationApiGetAccountActivitiesRequest added in v1.0.43

type AccountInformationApiGetAccountActivitiesRequest struct {
	ApiService *AccountInformationApiService
	// contains filtered or unexported fields
}

func (*AccountInformationApiGetAccountActivitiesRequest) EndDate added in v1.0.43

The end date (inclusive) of the transaction history to retrieve. If not provided, the default is the last transaction known to SnapTrade based on `trade_date`.

func (AccountInformationApiGetAccountActivitiesRequest) Execute added in v1.0.43

func (*AccountInformationApiGetAccountActivitiesRequest) Limit added in v1.0.46

An integer that specifies the maximum number of transactions to return. Default of 1000.

func (*AccountInformationApiGetAccountActivitiesRequest) Offset added in v1.0.46

An integer that specifies the starting point of the paginated results. Default is 0.

func (*AccountInformationApiGetAccountActivitiesRequest) StartDate added in v1.0.43

The start date (inclusive) of the transaction history to retrieve. If not provided, the default is the first transaction known to SnapTrade based on `trade_date`.

func (*AccountInformationApiGetAccountActivitiesRequest) Type_ added in v1.0.43

Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - `BUY` - Asset bought. - `SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `STOCK_DIVIDEND` - A type of dividend where a company distributes shares instead of cash - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account. - `TAX`` - A tax related fee. - `OPTIONEXPIRATION` - Option expiration event. - `OPTIONASSIGNMENT` - Option assignment event. - `OPTIONEXERCISE` - Option exercise event. - `TRANSFER` - Transfer of assets from one account to another. - `SPLIT` - A stock share split.

type AccountInformationApiGetAllUserHoldingsRequest

type AccountInformationApiGetAllUserHoldingsRequest struct {
	ApiService *AccountInformationApiService
	// contains filtered or unexported fields
}

func (*AccountInformationApiGetAllUserHoldingsRequest) BrokerageAuthorizations

Optional. Comma separated list of authorization IDs (only use if filtering is needed on one or more authorizations).

func (AccountInformationApiGetAllUserHoldingsRequest) Execute

type AccountInformationApiGetUserAccountBalanceRequest

type AccountInformationApiGetUserAccountBalanceRequest struct {
	ApiService *AccountInformationApiService
	// contains filtered or unexported fields
}

func (AccountInformationApiGetUserAccountBalanceRequest) Execute

type AccountInformationApiGetUserAccountDetailsRequest

type AccountInformationApiGetUserAccountDetailsRequest struct {
	ApiService *AccountInformationApiService
	// contains filtered or unexported fields
}

func (AccountInformationApiGetUserAccountDetailsRequest) Execute

type AccountInformationApiGetUserAccountOrderDetailRequest added in v1.0.96

type AccountInformationApiGetUserAccountOrderDetailRequest struct {
	ApiService *AccountInformationApiService
	// contains filtered or unexported fields
}

func (AccountInformationApiGetUserAccountOrderDetailRequest) Execute added in v1.0.96

type AccountInformationApiGetUserAccountOrdersRequest

type AccountInformationApiGetUserAccountOrdersRequest struct {
	ApiService *AccountInformationApiService
	// contains filtered or unexported fields
}

func (*AccountInformationApiGetUserAccountOrdersRequest) Days

Number of days in the past to fetch the most recent orders. Defaults to the last 30 days if no value is passed in.

func (AccountInformationApiGetUserAccountOrdersRequest) Execute

func (*AccountInformationApiGetUserAccountOrdersRequest) State

defaults value is set to \"all\"

type AccountInformationApiGetUserAccountPositionsRequest

type AccountInformationApiGetUserAccountPositionsRequest struct {
	ApiService *AccountInformationApiService
	// contains filtered or unexported fields
}

func (AccountInformationApiGetUserAccountPositionsRequest) Execute

type AccountInformationApiGetUserAccountRecentOrdersRequest added in v1.0.26

type AccountInformationApiGetUserAccountRecentOrdersRequest struct {
	ApiService *AccountInformationApiService
	// contains filtered or unexported fields
}

func (AccountInformationApiGetUserAccountRecentOrdersRequest) Execute added in v1.0.26

func (*AccountInformationApiGetUserAccountRecentOrdersRequest) OnlyExecuted added in v1.0.29

Defaults to true. Indicates if request should fetch only executed orders. Set to false to retrieve non executed orders as well

type AccountInformationApiGetUserAccountReturnRatesRequest added in v1.0.27

type AccountInformationApiGetUserAccountReturnRatesRequest struct {
	ApiService *AccountInformationApiService
	// contains filtered or unexported fields
}

func (AccountInformationApiGetUserAccountReturnRatesRequest) Execute added in v1.0.27

type AccountInformationApiGetUserHoldingsRequest

type AccountInformationApiGetUserHoldingsRequest struct {
	ApiService *AccountInformationApiService
	// contains filtered or unexported fields
}

func (AccountInformationApiGetUserHoldingsRequest) Execute

type AccountInformationApiListUserAccountsRequest

type AccountInformationApiListUserAccountsRequest struct {
	ApiService *AccountInformationApiService
	// contains filtered or unexported fields
}

func (AccountInformationApiListUserAccountsRequest) Execute

type AccountInformationApiService

type AccountInformationApiService service

AccountInformationApiService AccountInformationApi service

func (*AccountInformationApiService) GetAccountActivities added in v1.0.43

func (a *AccountInformationApiService) GetAccountActivities(accountId string, userId string, userSecret string) AccountInformationApiGetAccountActivitiesRequest

GetAccountActivities List account activities

Returns all historical transactions for the specified account.

This endpoint is paginated with a default page size of 1000. The endpoint will return a maximum of 1000 transactions per request. See the query parameters for pagination options.

Transaction are returned in reverse chronological order, using the `trade_date` field.

The data returned here is always cached and refreshed once a day.

If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param accountId
@param userId
@param userSecret
@return AccountInformationApiGetAccountActivitiesRequest

func (*AccountInformationApiService) GetAccountActivitiesExecute added in v1.0.43

Execute executes the request

@return PaginatedUniversalActivity

func (*AccountInformationApiService) GetAllUserHoldings

GetAllUserHoldings List all accounts for the user, plus balances, positions, and orders for each account.

**Deprecated, please use the account-specific holdings endpoint instead.**

List all accounts for the user, plus balances, positions, and orders for each account.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param userId
@param userSecret
@return AccountInformationApiGetAllUserHoldingsRequest

Deprecated

func (*AccountInformationApiService) GetAllUserHoldingsExecute

Execute executes the request

@return []AccountHoldings

Deprecated

func (*AccountInformationApiService) GetUserAccountBalance

func (a *AccountInformationApiService) GetUserAccountBalance(userId string, userSecret string, accountId string) AccountInformationApiGetUserAccountBalanceRequest

GetUserAccountBalance List account balances

Returns a list of balances for the account. Each element of the list has a distinct currency. Some brokerages like Questrade [allows holding multiple currencies in the same account](https://www.questrade.com/learning/questrade-basics/balances-and-reports/understanding-your-account-balances).

Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see if you have real-time data access:

  • If you do, this endpoint returns real-time data.
  • If you don't, the data is cached and refreshed once a day. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for "Cache Expiry Time" to see the exact value for a specific brokerage. If you need real-time, use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint.

If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param userId
@param userSecret
@param accountId
@return AccountInformationApiGetUserAccountBalanceRequest

func (*AccountInformationApiService) GetUserAccountBalanceExecute

Execute executes the request

@return []Balance

func (*AccountInformationApiService) GetUserAccountDetails

func (a *AccountInformationApiService) GetUserAccountDetails(userId string, userSecret string, accountId string) AccountInformationApiGetUserAccountDetailsRequest

GetUserAccountDetails Get account detail

Returns account detail known to SnapTrade for the specified account.

Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see if you have real-time data access:

  • If you do, this endpoint returns real-time data.
  • If you don't, the data is cached and refreshed once a day. If you need real-time, use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint.

If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param userId
@param userSecret
@param accountId
@return AccountInformationApiGetUserAccountDetailsRequest

func (*AccountInformationApiService) GetUserAccountDetailsExecute

Execute executes the request

@return Account

func (*AccountInformationApiService) GetUserAccountOrderDetail added in v1.0.96

func (a *AccountInformationApiService) GetUserAccountOrderDetail(accountId string, userId string, userSecret string, accountInformationGetUserAccountOrderDetailRequest AccountInformationGetUserAccountOrderDetailRequest) AccountInformationApiGetUserAccountOrderDetailRequest

GetUserAccountOrderDetail Get account order detail

Returns the detail of a single order using the external order ID provided in the request body.

This endpoint only works for single-leg orders at this time. Support for multi-leg orders will be added in the future.

This endpoint is always realtime and does not rely on cached data.

This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param accountId
@param userId
@param userSecret
@param accountInformationGetUserAccountOrderDetailRequest
@return AccountInformationApiGetUserAccountOrderDetailRequest

func (*AccountInformationApiService) GetUserAccountOrderDetailExecute added in v1.0.96

Execute executes the request

@return AccountOrderRecord

func (*AccountInformationApiService) GetUserAccountOrders

func (a *AccountInformationApiService) GetUserAccountOrders(userId string, userSecret string, accountId string) AccountInformationApiGetUserAccountOrdersRequest

GetUserAccountOrders List account orders

Returns a list of recent orders in the specified account.

Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see if you have real-time data access:

  • If you do, this endpoint returns real-time data.
  • If you don't, the data is cached and refreshed once a day. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for "Cache Expiry Time" to see the exact value for a specific brokerage. If you need real-time, use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint.

If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param userId
@param userSecret
@param accountId
@return AccountInformationApiGetUserAccountOrdersRequest

func (*AccountInformationApiService) GetUserAccountOrdersExecute

Execute executes the request

@return []AccountOrderRecord

func (*AccountInformationApiService) GetUserAccountPositions

func (a *AccountInformationApiService) GetUserAccountPositions(userId string, userSecret string, accountId string) AccountInformationApiGetUserAccountPositionsRequest

GetUserAccountPositions List account positions

Returns a list of stock/ETF/crypto/mutual fund positions in the specified account. For option positions, please use the [options endpoint](/reference/Options/Options_listOptionHoldings).

Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see if you have real-time data access:

  • If you do, this endpoint returns real-time data.
  • If you don't, the data is cached and refreshed once a day. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for "Cache Expiry Time" to see the exact value for a specific brokerage. If you need real-time, use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint.

If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param userId
@param userSecret
@param accountId
@return AccountInformationApiGetUserAccountPositionsRequest

func (*AccountInformationApiService) GetUserAccountPositionsExecute

Execute executes the request

@return []Position

func (*AccountInformationApiService) GetUserAccountRecentOrders added in v1.0.26

func (a *AccountInformationApiService) GetUserAccountRecentOrders(userId string, userSecret string, accountId string) AccountInformationApiGetUserAccountRecentOrdersRequest

GetUserAccountRecentOrders List account recent orders (last 24 hours only)

A lightweight endpoint that returns a list of orders executed in the last 24 hours in the specified account. This endpoint is realtime and can be used to quickly check if account state has recently changed due to an execution, or check status of recently placed orders Differs from /orders in that it is realtime, and only checks the last 24 hours as opposed to the last 30 days By default only returns executed orders, but that can be changed by setting *only_executed* to false **Because of the cost of realtime requests, each call to this endpoint incurs an additional charge. You can find the exact cost for your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing)**

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param userId
@param userSecret
@param accountId
@return AccountInformationApiGetUserAccountRecentOrdersRequest

func (*AccountInformationApiService) GetUserAccountRecentOrdersExecute added in v1.0.26

Execute executes the request

@return RecentOrdersResponse

func (*AccountInformationApiService) GetUserAccountReturnRates added in v1.0.27

func (a *AccountInformationApiService) GetUserAccountReturnRates(userId string, userSecret string, accountId string) AccountInformationApiGetUserAccountReturnRatesRequest

GetUserAccountReturnRates List account rate of returns

Returns a list of rate of return percents for a given account. Will include timeframes available from the brokerage, for example "ALL", "1Y", "6M", "3M", "1M"

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param userId
@param userSecret
@param accountId
@return AccountInformationApiGetUserAccountReturnRatesRequest

func (*AccountInformationApiService) GetUserAccountReturnRatesExecute added in v1.0.27

Execute executes the request

@return RateOfReturnResponse

func (*AccountInformationApiService) GetUserHoldings

func (a *AccountInformationApiService) GetUserHoldings(accountId string, userId string, userSecret string) AccountInformationApiGetUserHoldingsRequest

GetUserHoldings List account holdings

Returns a list of balances, positions, and recent orders for the specified account. The data returned is similar to the data returned over the more fine-grained [balances](/reference/Account%20Information/AccountInformation_getUserAccountBalance), [positions](/reference/Account%20Information/AccountInformation_getUserAccountPositions) and [orders](/reference/Account%20Information/AccountInformation_getUserAccountOrders) endpoints. __The finer-grained APIs are preferred. They are easier to work with, faster, and have better error handling than this coarse-grained API.__

Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see if you have real-time data access:

  • If you do, this endpoint returns real-time data.
  • If you don't, the data is cached and refreshed once a day. How long the data is cached for varies by brokerage. Check the [brokerage integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=d16c4c97b8d5438bbb2d8581ac53b11e) and look for "Cache Expiry Time" to see the exact value for a specific brokerage. If you need real-time, use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint.

If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param accountId
@param userId
@param userSecret
@return AccountInformationApiGetUserHoldingsRequest

func (*AccountInformationApiService) GetUserHoldingsExecute

Execute executes the request

@return AccountHoldingsAccount

func (*AccountInformationApiService) ListUserAccounts

ListUserAccounts List accounts

Returns all brokerage accounts across all connections known to SnapTrade for the authenticated user.

Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see if you have real-time data access:

  • If you do, this endpoint returns real-time data.

  • If you don't, the data is cached and refreshed once a day. If you need real-time, use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint.

    @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param userId @param userSecret @return AccountInformationApiListUserAccountsRequest

func (*AccountInformationApiService) ListUserAccountsExecute

Execute executes the request

@return []Account

func (*AccountInformationApiService) UpdateUserAccount

func (a *AccountInformationApiService) UpdateUserAccount(userId string, userSecret string, accountId string) AccountInformationApiUpdateUserAccountRequest

UpdateUserAccount Update details of an investment account

Updates various properties of a specified account.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param userId
@param userSecret
@param accountId The ID of the account to update.
@return AccountInformationApiUpdateUserAccountRequest

func (*AccountInformationApiService) UpdateUserAccountExecute

Execute executes the request

@return []Account

type AccountInformationApiUpdateUserAccountRequest

type AccountInformationApiUpdateUserAccountRequest struct {
	ApiService *AccountInformationApiService
	// contains filtered or unexported fields
}

func (AccountInformationApiUpdateUserAccountRequest) Execute

type AccountInformationGetUserAccountOrderDetailRequest added in v1.0.100

type AccountInformationGetUserAccountOrderDetailRequest struct {
	// Order ID returned by brokerage. This is the unique identifier for the order in the brokerage system.
	BrokerageOrderId string `json:"brokerage_order_id"`
}

AccountInformationGetUserAccountOrderDetailRequest struct for AccountInformationGetUserAccountOrderDetailRequest

func NewAccountInformationGetUserAccountOrderDetailRequest added in v1.0.100

func NewAccountInformationGetUserAccountOrderDetailRequest(brokerageOrderId string) *AccountInformationGetUserAccountOrderDetailRequest

NewAccountInformationGetUserAccountOrderDetailRequest instantiates a new AccountInformationGetUserAccountOrderDetailRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAccountInformationGetUserAccountOrderDetailRequestWithDefaults added in v1.0.100

func NewAccountInformationGetUserAccountOrderDetailRequestWithDefaults() *AccountInformationGetUserAccountOrderDetailRequest

NewAccountInformationGetUserAccountOrderDetailRequestWithDefaults instantiates a new AccountInformationGetUserAccountOrderDetailRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AccountInformationGetUserAccountOrderDetailRequest) GetBrokerageOrderId added in v1.0.102

GetBrokerageOrderId returns the BrokerageOrderId field value

func (*AccountInformationGetUserAccountOrderDetailRequest) GetBrokerageOrderIdOk added in v1.0.102

func (o *AccountInformationGetUserAccountOrderDetailRequest) GetBrokerageOrderIdOk() (*string, bool)

GetBrokerageOrderIdOk returns a tuple with the BrokerageOrderId field value and a boolean to check if the value has been set.

func (AccountInformationGetUserAccountOrderDetailRequest) MarshalJSON added in v1.0.100

func (*AccountInformationGetUserAccountOrderDetailRequest) SetBrokerageOrderId added in v1.0.102

SetBrokerageOrderId sets field value

type AccountOrderRecord

type AccountOrderRecord struct {
	// Order ID returned by brokerage. This is the unique identifier for the order in the brokerage system.
	BrokerageOrderId     *string                                 `json:"brokerage_order_id,omitempty"`
	Status               *AccountOrderRecordStatus               `json:"status,omitempty"`
	UniversalSymbol      *AccountOrderRecordUniversalSymbol      `json:"universal_symbol,omitempty"`
	OptionSymbol         *AccountOrderRecordOptionSymbol         `json:"option_symbol,omitempty"`
	QuoteUniversalSymbol *AccountOrderRecordQuoteUniversalSymbol `json:"quote_universal_symbol,omitempty"`
	QuoteCurrency        *AccountOrderRecordQuoteCurrency        `json:"quote_currency,omitempty"`
	// The action describes the intent or side of a trade. This is usually `BUY` or `SELL` but can include other potential values like the following depending on the specific brokerage.   - BUY   - SELL   - BUY_COVER   - SELL_SHORT   - BUY_OPEN   - BUY_CLOSE   - SELL_OPEN   - SELL_CLOSE
	Action *string `json:"action,omitempty"`
	// The total number of shares or contracts of the order. This should be the sum of the filled, canceled, and open quantities. Can be a decimal number for fractional shares.
	TotalQuantity NullableString `json:"total_quantity,omitempty"`
	// The number of shares or contracts that are still open (waiting for execution). Can be a decimal number for fractional shares.
	OpenQuantity NullableString `json:"open_quantity,omitempty"`
	// The number of shares or contracts that have been canceled. Can be a decimal number for fractional shares.
	CanceledQuantity NullableString `json:"canceled_quantity,omitempty"`
	// The number of shares or contracts that have been filled. Can be a decimal number for fractional shares.
	FilledQuantity NullableString `json:"filled_quantity,omitempty"`
	// The price at which the order was executed.
	ExecutionPrice NullableFloat32 `json:"execution_price,omitempty"`
	// The limit price is maximum price one is willing to pay for a buy order or the minimum price one is willing to accept for a sell order. Should only apply to `Limit` and `StopLimit` orders.
	LimitPrice NullableFloat32 `json:"limit_price,omitempty"`
	// The stop price is the price at which a stop order is triggered. Should only apply to `Stop` and `StopLimit` orders.
	StopPrice NullableFloat32 `json:"stop_price,omitempty"`
	// The type of order placed. The most common values are `Market`, `Limit`, `Stop`, and `StopLimit`. We try our best to map brokerage order types to these values. When mapping fails, we will return the brokerage's order type value.
	OrderType NullableString `json:"order_type,omitempty"`
	// The Time in Force type for the order. This field indicates how long the order will remain active before it is executed or expires. We try our best to map brokerage time in force values to the following. When mapping fails, we will return the brokerage's time in force value.   - `Day` - Day. The order is valid only for the trading day on which it is placed.   - `GTC` - Good Til Canceled. The order is valid until it is executed or canceled.   - `FOK` - Fill Or Kill. The order must be executed in its entirety immediately or be canceled completely.   - `IOC` - Immediate Or Cancel. The order must be executed immediately. Any portion of the order that cannot be filled immediately will be canceled.   - `GTD` - Good Til Date. The order is valid until the specified date.   - `MOO` - Market On Open. The order is to be executed at the day's opening price.   - `EHP` - Extended Hours P.M. The order is to be placed during extended hour trading, after markets close.
	TimeInForce *string `json:"time_in_force,omitempty"`
	// The time the order was placed. This is the time the order was submitted to the brokerage.
	TimePlaced *time.Time `json:"time_placed,omitempty"`
	// The time the order was last updated in the brokerage system. This value is not always available from the brokerage.
	TimeUpdated NullableTime `json:"time_updated,omitempty"`
	// The time the order was executed in the brokerage system. This value is not always available from the brokerage.
	TimeExecuted NullableTime `json:"time_executed,omitempty"`
	// The time the order expires. This value is not always available from the brokerage.
	ExpiryDate NullableTime `json:"expiry_date,omitempty"`
	// A unique ID for the security within SnapTrade, scoped to the brokerage account that the security belongs to. This is a legacy field and should not be used. Do not rely on this being a stable ID as it can change.
	// Deprecated
	Symbol                 *string                                          `json:"symbol,omitempty"`
	ChildBrokerageOrderIds NullableAccountOrderRecordChildBrokerageOrderIds `json:"child_brokerage_order_ids,omitempty"`
	AdditionalProperties   map[string]interface{}
}

AccountOrderRecord Describes a single recent order in an account. Each record here represents a single order leg. For multi-leg orders, there will be multiple records.

func NewAccountOrderRecord

func NewAccountOrderRecord() *AccountOrderRecord

NewAccountOrderRecord instantiates a new AccountOrderRecord object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAccountOrderRecordWithDefaults

func NewAccountOrderRecordWithDefaults() *AccountOrderRecord

NewAccountOrderRecordWithDefaults instantiates a new AccountOrderRecord object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AccountOrderRecord) GetAction

func (o *AccountOrderRecord) GetAction() string

GetAction returns the Action field value if set, zero value otherwise.

func (*AccountOrderRecord) GetActionOk

func (o *AccountOrderRecord) GetActionOk() (*string, bool)

GetActionOk returns a tuple with the Action field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountOrderRecord) GetBrokerageOrderId

func (o *AccountOrderRecord) GetBrokerageOrderId() string

GetBrokerageOrderId returns the BrokerageOrderId field value if set, zero value otherwise.

func (*AccountOrderRecord) GetBrokerageOrderIdOk

func (o *AccountOrderRecord) GetBrokerageOrderIdOk() (*string, bool)

GetBrokerageOrderIdOk returns a tuple with the BrokerageOrderId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountOrderRecord) GetCanceledQuantity

func (o *AccountOrderRecord) GetCanceledQuantity() string

GetCanceledQuantity returns the CanceledQuantity field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AccountOrderRecord) GetCanceledQuantityOk

func (o *AccountOrderRecord) GetCanceledQuantityOk() (*string, bool)

GetCanceledQuantityOk returns a tuple with the CanceledQuantity field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AccountOrderRecord) GetChildBrokerageOrderIds added in v1.0.55

func (o *AccountOrderRecord) GetChildBrokerageOrderIds() AccountOrderRecordChildBrokerageOrderIds

GetChildBrokerageOrderIds returns the ChildBrokerageOrderIds field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AccountOrderRecord) GetChildBrokerageOrderIdsOk added in v1.0.55

func (o *AccountOrderRecord) GetChildBrokerageOrderIdsOk() (*AccountOrderRecordChildBrokerageOrderIds, bool)

GetChildBrokerageOrderIdsOk returns a tuple with the ChildBrokerageOrderIds field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AccountOrderRecord) GetExecutionPrice

func (o *AccountOrderRecord) GetExecutionPrice() float32

GetExecutionPrice returns the ExecutionPrice field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AccountOrderRecord) GetExecutionPriceOk

func (o *AccountOrderRecord) GetExecutionPriceOk() (*float32, bool)

GetExecutionPriceOk returns a tuple with the ExecutionPrice field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AccountOrderRecord) GetExpiryDate

func (o *AccountOrderRecord) GetExpiryDate() time.Time

GetExpiryDate returns the ExpiryDate field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AccountOrderRecord) GetExpiryDateOk

func (o *AccountOrderRecord) GetExpiryDateOk() (*time.Time, bool)

GetExpiryDateOk returns a tuple with the ExpiryDate field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AccountOrderRecord) GetFilledQuantity

func (o *AccountOrderRecord) GetFilledQuantity() string

GetFilledQuantity returns the FilledQuantity field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AccountOrderRecord) GetFilledQuantityOk

func (o *AccountOrderRecord) GetFilledQuantityOk() (*string, bool)

GetFilledQuantityOk returns a tuple with the FilledQuantity field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AccountOrderRecord) GetLimitPrice

func (o *AccountOrderRecord) GetLimitPrice() float32

GetLimitPrice returns the LimitPrice field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AccountOrderRecord) GetLimitPriceOk

func (o *AccountOrderRecord) GetLimitPriceOk() (*float32, bool)

GetLimitPriceOk returns a tuple with the LimitPrice field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AccountOrderRecord) GetOpenQuantity

func (o *AccountOrderRecord) GetOpenQuantity() string

GetOpenQuantity returns the OpenQuantity field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AccountOrderRecord) GetOpenQuantityOk

func (o *AccountOrderRecord) GetOpenQuantityOk() (*string, bool)

GetOpenQuantityOk returns a tuple with the OpenQuantity field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AccountOrderRecord) GetOptionSymbol

GetOptionSymbol returns the OptionSymbol field value if set, zero value otherwise.

func (*AccountOrderRecord) GetOptionSymbolOk

func (o *AccountOrderRecord) GetOptionSymbolOk() (*AccountOrderRecordOptionSymbol, bool)

GetOptionSymbolOk returns a tuple with the OptionSymbol field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountOrderRecord) GetOrderType

func (o *AccountOrderRecord) GetOrderType() string

GetOrderType returns the OrderType field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AccountOrderRecord) GetOrderTypeOk

func (o *AccountOrderRecord) GetOrderTypeOk() (*string, bool)

GetOrderTypeOk returns a tuple with the OrderType field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AccountOrderRecord) GetQuoteCurrency added in v1.0.58

GetQuoteCurrency returns the QuoteCurrency field value if set, zero value otherwise.

func (*AccountOrderRecord) GetQuoteCurrencyOk added in v1.0.58

func (o *AccountOrderRecord) GetQuoteCurrencyOk() (*AccountOrderRecordQuoteCurrency, bool)

GetQuoteCurrencyOk returns a tuple with the QuoteCurrency field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountOrderRecord) GetQuoteUniversalSymbol added in v1.0.58

func (o *AccountOrderRecord) GetQuoteUniversalSymbol() AccountOrderRecordQuoteUniversalSymbol

GetQuoteUniversalSymbol returns the QuoteUniversalSymbol field value if set, zero value otherwise.

func (*AccountOrderRecord) GetQuoteUniversalSymbolOk added in v1.0.58

func (o *AccountOrderRecord) GetQuoteUniversalSymbolOk() (*AccountOrderRecordQuoteUniversalSymbol, bool)

GetQuoteUniversalSymbolOk returns a tuple with the QuoteUniversalSymbol field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountOrderRecord) GetStatus

GetStatus returns the Status field value if set, zero value otherwise.

func (*AccountOrderRecord) GetStatusOk

func (o *AccountOrderRecord) GetStatusOk() (*AccountOrderRecordStatus, bool)

GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountOrderRecord) GetStopPrice

func (o *AccountOrderRecord) GetStopPrice() float32

GetStopPrice returns the StopPrice field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AccountOrderRecord) GetStopPriceOk

func (o *AccountOrderRecord) GetStopPriceOk() (*float32, bool)

GetStopPriceOk returns a tuple with the StopPrice field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AccountOrderRecord) GetSymbol

func (o *AccountOrderRecord) GetSymbol() string

GetSymbol returns the Symbol field value if set, zero value otherwise. Deprecated

func (*AccountOrderRecord) GetSymbolOk

func (o *AccountOrderRecord) GetSymbolOk() (*string, bool)

GetSymbolOk returns a tuple with the Symbol field value if set, nil otherwise and a boolean to check if the value has been set. Deprecated

func (*AccountOrderRecord) GetTimeExecuted

func (o *AccountOrderRecord) GetTimeExecuted() time.Time

GetTimeExecuted returns the TimeExecuted field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AccountOrderRecord) GetTimeExecutedOk

func (o *AccountOrderRecord) GetTimeExecutedOk() (*time.Time, bool)

GetTimeExecutedOk returns a tuple with the TimeExecuted field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AccountOrderRecord) GetTimeInForce

func (o *AccountOrderRecord) GetTimeInForce() string

GetTimeInForce returns the TimeInForce field value if set, zero value otherwise.

func (*AccountOrderRecord) GetTimeInForceOk

func (o *AccountOrderRecord) GetTimeInForceOk() (*string, bool)

GetTimeInForceOk returns a tuple with the TimeInForce field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountOrderRecord) GetTimePlaced

func (o *AccountOrderRecord) GetTimePlaced() time.Time

GetTimePlaced returns the TimePlaced field value if set, zero value otherwise.

func (*AccountOrderRecord) GetTimePlacedOk

func (o *AccountOrderRecord) GetTimePlacedOk() (*time.Time, bool)

GetTimePlacedOk returns a tuple with the TimePlaced field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountOrderRecord) GetTimeUpdated

func (o *AccountOrderRecord) GetTimeUpdated() time.Time

GetTimeUpdated returns the TimeUpdated field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AccountOrderRecord) GetTimeUpdatedOk

func (o *AccountOrderRecord) GetTimeUpdatedOk() (*time.Time, bool)

GetTimeUpdatedOk returns a tuple with the TimeUpdated field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AccountOrderRecord) GetTotalQuantity

func (o *AccountOrderRecord) GetTotalQuantity() string

GetTotalQuantity returns the TotalQuantity field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AccountOrderRecord) GetTotalQuantityOk

func (o *AccountOrderRecord) GetTotalQuantityOk() (*string, bool)

GetTotalQuantityOk returns a tuple with the TotalQuantity field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AccountOrderRecord) GetUniversalSymbol

func (o *AccountOrderRecord) GetUniversalSymbol() AccountOrderRecordUniversalSymbol

GetUniversalSymbol returns the UniversalSymbol field value if set, zero value otherwise.

func (*AccountOrderRecord) GetUniversalSymbolOk

func (o *AccountOrderRecord) GetUniversalSymbolOk() (*AccountOrderRecordUniversalSymbol, bool)

GetUniversalSymbolOk returns a tuple with the UniversalSymbol field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountOrderRecord) HasAction

func (o *AccountOrderRecord) HasAction() bool

HasAction returns a boolean if a field has been set.

func (*AccountOrderRecord) HasBrokerageOrderId

func (o *AccountOrderRecord) HasBrokerageOrderId() bool

HasBrokerageOrderId returns a boolean if a field has been set.

func (*AccountOrderRecord) HasCanceledQuantity

func (o *AccountOrderRecord) HasCanceledQuantity() bool

HasCanceledQuantity returns a boolean if a field has been set.

func (*AccountOrderRecord) HasChildBrokerageOrderIds added in v1.0.55

func (o *AccountOrderRecord) HasChildBrokerageOrderIds() bool

HasChildBrokerageOrderIds returns a boolean if a field has been set.

func (*AccountOrderRecord) HasExecutionPrice

func (o *AccountOrderRecord) HasExecutionPrice() bool

HasExecutionPrice returns a boolean if a field has been set.

func (*AccountOrderRecord) HasExpiryDate

func (o *AccountOrderRecord) HasExpiryDate() bool

HasExpiryDate returns a boolean if a field has been set.

func (*AccountOrderRecord) HasFilledQuantity

func (o *AccountOrderRecord) HasFilledQuantity() bool

HasFilledQuantity returns a boolean if a field has been set.

func (*AccountOrderRecord) HasLimitPrice

func (o *AccountOrderRecord) HasLimitPrice() bool

HasLimitPrice returns a boolean if a field has been set.

func (*AccountOrderRecord) HasOpenQuantity

func (o *AccountOrderRecord) HasOpenQuantity() bool

HasOpenQuantity returns a boolean if a field has been set.

func (*AccountOrderRecord) HasOptionSymbol

func (o *AccountOrderRecord) HasOptionSymbol() bool

HasOptionSymbol returns a boolean if a field has been set.

func (*AccountOrderRecord) HasOrderType

func (o *AccountOrderRecord) HasOrderType() bool

HasOrderType returns a boolean if a field has been set.

func (*AccountOrderRecord) HasQuoteCurrency added in v1.0.58

func (o *AccountOrderRecord) HasQuoteCurrency() bool

HasQuoteCurrency returns a boolean if a field has been set.

func (*AccountOrderRecord) HasQuoteUniversalSymbol added in v1.0.58

func (o *AccountOrderRecord) HasQuoteUniversalSymbol() bool

HasQuoteUniversalSymbol returns a boolean if a field has been set.

func (*AccountOrderRecord) HasStatus

func (o *AccountOrderRecord) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (*AccountOrderRecord) HasStopPrice

func (o *AccountOrderRecord) HasStopPrice() bool

HasStopPrice returns a boolean if a field has been set.

func (*AccountOrderRecord) HasSymbol

func (o *AccountOrderRecord) HasSymbol() bool

HasSymbol returns a boolean if a field has been set.

func (*AccountOrderRecord) HasTimeExecuted

func (o *AccountOrderRecord) HasTimeExecuted() bool

HasTimeExecuted returns a boolean if a field has been set.

func (*AccountOrderRecord) HasTimeInForce

func (o *AccountOrderRecord) HasTimeInForce() bool

HasTimeInForce returns a boolean if a field has been set.

func (*AccountOrderRecord) HasTimePlaced

func (o *AccountOrderRecord) HasTimePlaced() bool

HasTimePlaced returns a boolean if a field has been set.

func (*AccountOrderRecord) HasTimeUpdated

func (o *AccountOrderRecord) HasTimeUpdated() bool

HasTimeUpdated returns a boolean if a field has been set.

func (*AccountOrderRecord) HasTotalQuantity

func (o *AccountOrderRecord) HasTotalQuantity() bool

HasTotalQuantity returns a boolean if a field has been set.

func (*AccountOrderRecord) HasUniversalSymbol

func (o *AccountOrderRecord) HasUniversalSymbol() bool

HasUniversalSymbol returns a boolean if a field has been set.

func (AccountOrderRecord) MarshalJSON

func (o AccountOrderRecord) MarshalJSON() ([]byte, error)

func (*AccountOrderRecord) SetAction

func (o *AccountOrderRecord) SetAction(v string)

SetAction gets a reference to the given string and assigns it to the Action field.

func (*AccountOrderRecord) SetBrokerageOrderId

func (o *AccountOrderRecord) SetBrokerageOrderId(v string)

SetBrokerageOrderId gets a reference to the given string and assigns it to the BrokerageOrderId field.

func (*AccountOrderRecord) SetCanceledQuantity

func (o *AccountOrderRecord) SetCanceledQuantity(v string)

SetCanceledQuantity gets a reference to the given NullableString and assigns it to the CanceledQuantity field.

func (*AccountOrderRecord) SetCanceledQuantityNil

func (o *AccountOrderRecord) SetCanceledQuantityNil()

SetCanceledQuantityNil sets the value for CanceledQuantity to be an explicit nil

func (*AccountOrderRecord) SetChildBrokerageOrderIds added in v1.0.55

func (o *AccountOrderRecord) SetChildBrokerageOrderIds(v AccountOrderRecordChildBrokerageOrderIds)

SetChildBrokerageOrderIds gets a reference to the given NullableAccountOrderRecordChildBrokerageOrderIds and assigns it to the ChildBrokerageOrderIds field.

func (*AccountOrderRecord) SetChildBrokerageOrderIdsNil added in v1.0.55

func (o *AccountOrderRecord) SetChildBrokerageOrderIdsNil()

SetChildBrokerageOrderIdsNil sets the value for ChildBrokerageOrderIds to be an explicit nil

func (*AccountOrderRecord) SetExecutionPrice

func (o *AccountOrderRecord) SetExecutionPrice(v float32)

SetExecutionPrice gets a reference to the given NullableFloat32 and assigns it to the ExecutionPrice field.

func (*AccountOrderRecord) SetExecutionPriceNil

func (o *AccountOrderRecord) SetExecutionPriceNil()

SetExecutionPriceNil sets the value for ExecutionPrice to be an explicit nil

func (*AccountOrderRecord) SetExpiryDate

func (o *AccountOrderRecord) SetExpiryDate(v time.Time)

SetExpiryDate gets a reference to the given NullableTime and assigns it to the ExpiryDate field.

func (*AccountOrderRecord) SetExpiryDateNil added in v1.0.4

func (o *AccountOrderRecord) SetExpiryDateNil()

SetExpiryDateNil sets the value for ExpiryDate to be an explicit nil

func (*AccountOrderRecord) SetFilledQuantity

func (o *AccountOrderRecord) SetFilledQuantity(v string)

SetFilledQuantity gets a reference to the given NullableString and assigns it to the FilledQuantity field.

func (*AccountOrderRecord) SetFilledQuantityNil

func (o *AccountOrderRecord) SetFilledQuantityNil()

SetFilledQuantityNil sets the value for FilledQuantity to be an explicit nil

func (*AccountOrderRecord) SetLimitPrice

func (o *AccountOrderRecord) SetLimitPrice(v float32)

SetLimitPrice gets a reference to the given NullableFloat32 and assigns it to the LimitPrice field.

func (*AccountOrderRecord) SetLimitPriceNil

func (o *AccountOrderRecord) SetLimitPriceNil()

SetLimitPriceNil sets the value for LimitPrice to be an explicit nil

func (*AccountOrderRecord) SetOpenQuantity

func (o *AccountOrderRecord) SetOpenQuantity(v string)

SetOpenQuantity gets a reference to the given NullableString and assigns it to the OpenQuantity field.

func (*AccountOrderRecord) SetOpenQuantityNil

func (o *AccountOrderRecord) SetOpenQuantityNil()

SetOpenQuantityNil sets the value for OpenQuantity to be an explicit nil

func (*AccountOrderRecord) SetOptionSymbol

func (o *AccountOrderRecord) SetOptionSymbol(v AccountOrderRecordOptionSymbol)

SetOptionSymbol gets a reference to the given AccountOrderRecordOptionSymbol and assigns it to the OptionSymbol field.

func (*AccountOrderRecord) SetOrderType

func (o *AccountOrderRecord) SetOrderType(v string)

SetOrderType gets a reference to the given NullableString and assigns it to the OrderType field.

func (*AccountOrderRecord) SetOrderTypeNil

func (o *AccountOrderRecord) SetOrderTypeNil()

SetOrderTypeNil sets the value for OrderType to be an explicit nil

func (*AccountOrderRecord) SetQuoteCurrency added in v1.0.58

func (o *AccountOrderRecord) SetQuoteCurrency(v AccountOrderRecordQuoteCurrency)

SetQuoteCurrency gets a reference to the given AccountOrderRecordQuoteCurrency and assigns it to the QuoteCurrency field.

func (*AccountOrderRecord) SetQuoteUniversalSymbol added in v1.0.58

func (o *AccountOrderRecord) SetQuoteUniversalSymbol(v AccountOrderRecordQuoteUniversalSymbol)

SetQuoteUniversalSymbol gets a reference to the given AccountOrderRecordQuoteUniversalSymbol and assigns it to the QuoteUniversalSymbol field.

func (*AccountOrderRecord) SetStatus

SetStatus gets a reference to the given AccountOrderRecordStatus and assigns it to the Status field.

func (*AccountOrderRecord) SetStopPrice

func (o *AccountOrderRecord) SetStopPrice(v float32)

SetStopPrice gets a reference to the given NullableFloat32 and assigns it to the StopPrice field.

func (*AccountOrderRecord) SetStopPriceNil

func (o *AccountOrderRecord) SetStopPriceNil()

SetStopPriceNil sets the value for StopPrice to be an explicit nil

func (*AccountOrderRecord) SetSymbol

func (o *AccountOrderRecord) SetSymbol(v string)

SetSymbol gets a reference to the given string and assigns it to the Symbol field. Deprecated

func (*AccountOrderRecord) SetTimeExecuted

func (o *AccountOrderRecord) SetTimeExecuted(v time.Time)

SetTimeExecuted gets a reference to the given NullableTime and assigns it to the TimeExecuted field.

func (*AccountOrderRecord) SetTimeExecutedNil

func (o *AccountOrderRecord) SetTimeExecutedNil()

SetTimeExecutedNil sets the value for TimeExecuted to be an explicit nil

func (*AccountOrderRecord) SetTimeInForce

func (o *AccountOrderRecord) SetTimeInForce(v string)

SetTimeInForce gets a reference to the given string and assigns it to the TimeInForce field.

func (*AccountOrderRecord) SetTimePlaced

func (o *AccountOrderRecord) SetTimePlaced(v time.Time)

SetTimePlaced gets a reference to the given time.Time and assigns it to the TimePlaced field.

func (*AccountOrderRecord) SetTimeUpdated

func (o *AccountOrderRecord) SetTimeUpdated(v time.Time)

SetTimeUpdated gets a reference to the given NullableTime and assigns it to the TimeUpdated field.

func (*AccountOrderRecord) SetTimeUpdatedNil

func (o *AccountOrderRecord) SetTimeUpdatedNil()

SetTimeUpdatedNil sets the value for TimeUpdated to be an explicit nil

func (*AccountOrderRecord) SetTotalQuantity

func (o *AccountOrderRecord) SetTotalQuantity(v string)

SetTotalQuantity gets a reference to the given NullableString and assigns it to the TotalQuantity field.

func (*AccountOrderRecord) SetTotalQuantityNil

func (o *AccountOrderRecord) SetTotalQuantityNil()

SetTotalQuantityNil sets the value for TotalQuantity to be an explicit nil

func (*AccountOrderRecord) SetUniversalSymbol

func (o *AccountOrderRecord) SetUniversalSymbol(v AccountOrderRecordUniversalSymbol)

SetUniversalSymbol gets a reference to the given AccountOrderRecordUniversalSymbol and assigns it to the UniversalSymbol field.

func (*AccountOrderRecord) UnmarshalJSON

func (o *AccountOrderRecord) UnmarshalJSON(bytes []byte) (err error)

func (*AccountOrderRecord) UnsetCanceledQuantity

func (o *AccountOrderRecord) UnsetCanceledQuantity()

UnsetCanceledQuantity ensures that no value is present for CanceledQuantity, not even an explicit nil

func (*AccountOrderRecord) UnsetChildBrokerageOrderIds added in v1.0.55

func (o *AccountOrderRecord) UnsetChildBrokerageOrderIds()

UnsetChildBrokerageOrderIds ensures that no value is present for ChildBrokerageOrderIds, not even an explicit nil

func (*AccountOrderRecord) UnsetExecutionPrice

func (o *AccountOrderRecord) UnsetExecutionPrice()

UnsetExecutionPrice ensures that no value is present for ExecutionPrice, not even an explicit nil

func (*AccountOrderRecord) UnsetExpiryDate added in v1.0.4

func (o *AccountOrderRecord) UnsetExpiryDate()

UnsetExpiryDate ensures that no value is present for ExpiryDate, not even an explicit nil

func (*AccountOrderRecord) UnsetFilledQuantity

func (o *AccountOrderRecord) UnsetFilledQuantity()

UnsetFilledQuantity ensures that no value is present for FilledQuantity, not even an explicit nil

func (*AccountOrderRecord) UnsetLimitPrice

func (o *AccountOrderRecord) UnsetLimitPrice()

UnsetLimitPrice ensures that no value is present for LimitPrice, not even an explicit nil

func (*AccountOrderRecord) UnsetOpenQuantity

func (o *AccountOrderRecord) UnsetOpenQuantity()

UnsetOpenQuantity ensures that no value is present for OpenQuantity, not even an explicit nil

func (*AccountOrderRecord) UnsetOrderType

func (o *AccountOrderRecord) UnsetOrderType()

UnsetOrderType ensures that no value is present for OrderType, not even an explicit nil

func (*AccountOrderRecord) UnsetStopPrice

func (o *AccountOrderRecord) UnsetStopPrice()

UnsetStopPrice ensures that no value is present for StopPrice, not even an explicit nil

func (*AccountOrderRecord) UnsetTimeExecuted

func (o *AccountOrderRecord) UnsetTimeExecuted()

UnsetTimeExecuted ensures that no value is present for TimeExecuted, not even an explicit nil

func (*AccountOrderRecord) UnsetTimeUpdated

func (o *AccountOrderRecord) UnsetTimeUpdated()

UnsetTimeUpdated ensures that no value is present for TimeUpdated, not even an explicit nil

func (*AccountOrderRecord) UnsetTotalQuantity

func (o *AccountOrderRecord) UnsetTotalQuantity()

UnsetTotalQuantity ensures that no value is present for TotalQuantity, not even an explicit nil

type AccountOrderRecordChildBrokerageOrderIds added in v1.0.55

type AccountOrderRecordChildBrokerageOrderIds struct {
	// The brokerage order ID for the take profit leg of the bracket order
	TakeProfitOrderId *string `json:"take_profit_order_id,omitempty"`
	// The brokerage order ID for the stop loss leg of the bracket order
	StopLossOrderId *string `json:"stop_loss_order_id,omitempty"`
}

AccountOrderRecordChildBrokerageOrderIds struct for AccountOrderRecordChildBrokerageOrderIds

func NewAccountOrderRecordChildBrokerageOrderIds added in v1.0.55

func NewAccountOrderRecordChildBrokerageOrderIds() *AccountOrderRecordChildBrokerageOrderIds

NewAccountOrderRecordChildBrokerageOrderIds instantiates a new AccountOrderRecordChildBrokerageOrderIds object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAccountOrderRecordChildBrokerageOrderIdsWithDefaults added in v1.0.55

func NewAccountOrderRecordChildBrokerageOrderIdsWithDefaults() *AccountOrderRecordChildBrokerageOrderIds

NewAccountOrderRecordChildBrokerageOrderIdsWithDefaults instantiates a new AccountOrderRecordChildBrokerageOrderIds object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AccountOrderRecordChildBrokerageOrderIds) GetStopLossOrderId added in v1.0.55

func (o *AccountOrderRecordChildBrokerageOrderIds) GetStopLossOrderId() string

GetStopLossOrderId returns the StopLossOrderId field value if set, zero value otherwise.

func (*AccountOrderRecordChildBrokerageOrderIds) GetStopLossOrderIdOk added in v1.0.55

func (o *AccountOrderRecordChildBrokerageOrderIds) GetStopLossOrderIdOk() (*string, bool)

GetStopLossOrderIdOk returns a tuple with the StopLossOrderId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountOrderRecordChildBrokerageOrderIds) GetTakeProfitOrderId added in v1.0.55

func (o *AccountOrderRecordChildBrokerageOrderIds) GetTakeProfitOrderId() string

GetTakeProfitOrderId returns the TakeProfitOrderId field value if set, zero value otherwise.

func (*AccountOrderRecordChildBrokerageOrderIds) GetTakeProfitOrderIdOk added in v1.0.55

func (o *AccountOrderRecordChildBrokerageOrderIds) GetTakeProfitOrderIdOk() (*string, bool)

GetTakeProfitOrderIdOk returns a tuple with the TakeProfitOrderId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountOrderRecordChildBrokerageOrderIds) HasStopLossOrderId added in v1.0.55

func (o *AccountOrderRecordChildBrokerageOrderIds) HasStopLossOrderId() bool

HasStopLossOrderId returns a boolean if a field has been set.

func (*AccountOrderRecordChildBrokerageOrderIds) HasTakeProfitOrderId added in v1.0.55

func (o *AccountOrderRecordChildBrokerageOrderIds) HasTakeProfitOrderId() bool

HasTakeProfitOrderId returns a boolean if a field has been set.

func (AccountOrderRecordChildBrokerageOrderIds) MarshalJSON added in v1.0.55

func (*AccountOrderRecordChildBrokerageOrderIds) SetStopLossOrderId added in v1.0.55

func (o *AccountOrderRecordChildBrokerageOrderIds) SetStopLossOrderId(v string)

SetStopLossOrderId gets a reference to the given string and assigns it to the StopLossOrderId field.

func (*AccountOrderRecordChildBrokerageOrderIds) SetTakeProfitOrderId added in v1.0.55

func (o *AccountOrderRecordChildBrokerageOrderIds) SetTakeProfitOrderId(v string)

SetTakeProfitOrderId gets a reference to the given string and assigns it to the TakeProfitOrderId field.

type AccountOrderRecordLeg added in v1.0.117

type AccountOrderRecordLeg struct {
	// Brokerage order identifier for this leg, if available.
	LegId      NullableString                   `json:"leg_id,omitempty"`
	Instrument *AccountOrderRecordLegInstrument `json:"instrument,omitempty"`
	// The action describes the intent or side of a trade.   - BUY   - SELL   - BUY_COVER   - SELL_SHORT   - BUY_TO_OPEN   - BUY_TO_CLOSE   - SELL_TO_OPEN   - SELL_TO_CLOSE
	Action *string `json:"action,omitempty"`
	// Execution price for this leg, if available.
	ExecutionPrice NullableFloat32 `json:"execution_price,omitempty"`
	// The total number of shares or contracts associated with this leg. Can be a decimal number for fractional shares.
	TotalQuantity NullableString `json:"total_quantity,omitempty"`
	// The number of shares or contracts that have been canceled for this leg.
	CanceledQuantity NullableString `json:"canceled_quantity,omitempty"`
	// The number of shares or contracts that have been filled for this leg.
	FilledQuantity       NullableString                     `json:"filled_quantity,omitempty"`
	Status               NullableAccountOrderRecordStatusV2 `json:"status,omitempty"`
	AdditionalProperties map[string]interface{}
}

AccountOrderRecordLeg Describes an individual leg that makes up an order in the V2 format.

func NewAccountOrderRecordLeg added in v1.0.117

func NewAccountOrderRecordLeg() *AccountOrderRecordLeg

NewAccountOrderRecordLeg instantiates a new AccountOrderRecordLeg object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAccountOrderRecordLegWithDefaults added in v1.0.117

func NewAccountOrderRecordLegWithDefaults() *AccountOrderRecordLeg

NewAccountOrderRecordLegWithDefaults instantiates a new AccountOrderRecordLeg object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AccountOrderRecordLeg) GetAction added in v1.0.117

func (o *AccountOrderRecordLeg) GetAction() string

GetAction returns the Action field value if set, zero value otherwise.

func (*AccountOrderRecordLeg) GetActionOk added in v1.0.117

func (o *AccountOrderRecordLeg) GetActionOk() (*string, bool)

GetActionOk returns a tuple with the Action field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountOrderRecordLeg) GetCanceledQuantity added in v1.0.117

func (o *AccountOrderRecordLeg) GetCanceledQuantity() string

GetCanceledQuantity returns the CanceledQuantity field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AccountOrderRecordLeg) GetCanceledQuantityOk added in v1.0.117

func (o *AccountOrderRecordLeg) GetCanceledQuantityOk() (*string, bool)

GetCanceledQuantityOk returns a tuple with the CanceledQuantity field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AccountOrderRecordLeg) GetExecutionPrice added in v1.0.117

func (o *AccountOrderRecordLeg) GetExecutionPrice() float32

GetExecutionPrice returns the ExecutionPrice field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AccountOrderRecordLeg) GetExecutionPriceOk added in v1.0.117

func (o *AccountOrderRecordLeg) GetExecutionPriceOk() (*float32, bool)

GetExecutionPriceOk returns a tuple with the ExecutionPrice field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AccountOrderRecordLeg) GetFilledQuantity added in v1.0.117

func (o *AccountOrderRecordLeg) GetFilledQuantity() string

GetFilledQuantity returns the FilledQuantity field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AccountOrderRecordLeg) GetFilledQuantityOk added in v1.0.117

func (o *AccountOrderRecordLeg) GetFilledQuantityOk() (*string, bool)

GetFilledQuantityOk returns a tuple with the FilledQuantity field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AccountOrderRecordLeg) GetInstrument added in v1.0.117

GetInstrument returns the Instrument field value if set, zero value otherwise.

func (*AccountOrderRecordLeg) GetInstrumentOk added in v1.0.117

GetInstrumentOk returns a tuple with the Instrument field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountOrderRecordLeg) GetLegId added in v1.0.117

func (o *AccountOrderRecordLeg) GetLegId() string

GetLegId returns the LegId field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AccountOrderRecordLeg) GetLegIdOk added in v1.0.117

func (o *AccountOrderRecordLeg) GetLegIdOk() (*string, bool)

GetLegIdOk returns a tuple with the LegId field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AccountOrderRecordLeg) GetStatus added in v1.0.117

GetStatus returns the Status field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AccountOrderRecordLeg) GetStatusOk added in v1.0.117

GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AccountOrderRecordLeg) GetTotalQuantity added in v1.0.117

func (o *AccountOrderRecordLeg) GetTotalQuantity() string

GetTotalQuantity returns the TotalQuantity field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AccountOrderRecordLeg) GetTotalQuantityOk added in v1.0.117

func (o *AccountOrderRecordLeg) GetTotalQuantityOk() (*string, bool)

GetTotalQuantityOk returns a tuple with the TotalQuantity field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AccountOrderRecordLeg) HasAction added in v1.0.117

func (o *AccountOrderRecordLeg) HasAction() bool

HasAction returns a boolean if a field has been set.

func (*AccountOrderRecordLeg) HasCanceledQuantity added in v1.0.117

func (o *AccountOrderRecordLeg) HasCanceledQuantity() bool

HasCanceledQuantity returns a boolean if a field has been set.

func (*AccountOrderRecordLeg) HasExecutionPrice added in v1.0.117

func (o *AccountOrderRecordLeg) HasExecutionPrice() bool

HasExecutionPrice returns a boolean if a field has been set.

func (*AccountOrderRecordLeg) HasFilledQuantity added in v1.0.117

func (o *AccountOrderRecordLeg) HasFilledQuantity() bool

HasFilledQuantity returns a boolean if a field has been set.

func (*AccountOrderRecordLeg) HasInstrument added in v1.0.117

func (o *AccountOrderRecordLeg) HasInstrument() bool

HasInstrument returns a boolean if a field has been set.

func (*AccountOrderRecordLeg) HasLegId added in v1.0.117

func (o *AccountOrderRecordLeg) HasLegId() bool

HasLegId returns a boolean if a field has been set.

func (*AccountOrderRecordLeg) HasStatus added in v1.0.117

func (o *AccountOrderRecordLeg) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (*AccountOrderRecordLeg) HasTotalQuantity added in v1.0.117

func (o *AccountOrderRecordLeg) HasTotalQuantity() bool

HasTotalQuantity returns a boolean if a field has been set.

func (AccountOrderRecordLeg) MarshalJSON added in v1.0.117

func (o AccountOrderRecordLeg) MarshalJSON() ([]byte, error)

func (*AccountOrderRecordLeg) SetAction added in v1.0.117

func (o *AccountOrderRecordLeg) SetAction(v string)

SetAction gets a reference to the given string and assigns it to the Action field.

func (*AccountOrderRecordLeg) SetCanceledQuantity added in v1.0.117

func (o *AccountOrderRecordLeg) SetCanceledQuantity(v string)

SetCanceledQuantity gets a reference to the given NullableString and assigns it to the CanceledQuantity field.

func (*AccountOrderRecordLeg) SetCanceledQuantityNil added in v1.0.117

func (o *AccountOrderRecordLeg) SetCanceledQuantityNil()

SetCanceledQuantityNil sets the value for CanceledQuantity to be an explicit nil

func (*AccountOrderRecordLeg) SetExecutionPrice added in v1.0.117

func (o *AccountOrderRecordLeg) SetExecutionPrice(v float32)

SetExecutionPrice gets a reference to the given NullableFloat32 and assigns it to the ExecutionPrice field.

func (*AccountOrderRecordLeg) SetExecutionPriceNil added in v1.0.117

func (o *AccountOrderRecordLeg) SetExecutionPriceNil()

SetExecutionPriceNil sets the value for ExecutionPrice to be an explicit nil

func (*AccountOrderRecordLeg) SetFilledQuantity added in v1.0.117

func (o *AccountOrderRecordLeg) SetFilledQuantity(v string)

SetFilledQuantity gets a reference to the given NullableString and assigns it to the FilledQuantity field.

func (*AccountOrderRecordLeg) SetFilledQuantityNil added in v1.0.117

func (o *AccountOrderRecordLeg) SetFilledQuantityNil()

SetFilledQuantityNil sets the value for FilledQuantity to be an explicit nil

func (*AccountOrderRecordLeg) SetInstrument added in v1.0.117

SetInstrument gets a reference to the given AccountOrderRecordLegInstrument and assigns it to the Instrument field.

func (*AccountOrderRecordLeg) SetLegId added in v1.0.117

func (o *AccountOrderRecordLeg) SetLegId(v string)

SetLegId gets a reference to the given NullableString and assigns it to the LegId field.

func (*AccountOrderRecordLeg) SetLegIdNil added in v1.0.117

func (o *AccountOrderRecordLeg) SetLegIdNil()

SetLegIdNil sets the value for LegId to be an explicit nil

func (*AccountOrderRecordLeg) SetStatus added in v1.0.117

SetStatus gets a reference to the given NullableAccountOrderRecordStatusV2 and assigns it to the Status field.

func (*AccountOrderRecordLeg) SetStatusNil added in v1.0.117

func (o *AccountOrderRecordLeg) SetStatusNil()

SetStatusNil sets the value for Status to be an explicit nil

func (*AccountOrderRecordLeg) SetTotalQuantity added in v1.0.117

func (o *AccountOrderRecordLeg) SetTotalQuantity(v string)

SetTotalQuantity gets a reference to the given NullableString and assigns it to the TotalQuantity field.

func (*AccountOrderRecordLeg) SetTotalQuantityNil added in v1.0.117

func (o *AccountOrderRecordLeg) SetTotalQuantityNil()

SetTotalQuantityNil sets the value for TotalQuantity to be an explicit nil

func (*AccountOrderRecordLeg) UnmarshalJSON added in v1.0.117

func (o *AccountOrderRecordLeg) UnmarshalJSON(bytes []byte) (err error)

func (*AccountOrderRecordLeg) UnsetCanceledQuantity added in v1.0.117

func (o *AccountOrderRecordLeg) UnsetCanceledQuantity()

UnsetCanceledQuantity ensures that no value is present for CanceledQuantity, not even an explicit nil

func (*AccountOrderRecordLeg) UnsetExecutionPrice added in v1.0.117

func (o *AccountOrderRecordLeg) UnsetExecutionPrice()

UnsetExecutionPrice ensures that no value is present for ExecutionPrice, not even an explicit nil

func (*AccountOrderRecordLeg) UnsetFilledQuantity added in v1.0.117

func (o *AccountOrderRecordLeg) UnsetFilledQuantity()

UnsetFilledQuantity ensures that no value is present for FilledQuantity, not even an explicit nil

func (*AccountOrderRecordLeg) UnsetLegId added in v1.0.117

func (o *AccountOrderRecordLeg) UnsetLegId()

UnsetLegId ensures that no value is present for LegId, not even an explicit nil

func (*AccountOrderRecordLeg) UnsetStatus added in v1.0.117

func (o *AccountOrderRecordLeg) UnsetStatus()

UnsetStatus ensures that no value is present for Status, not even an explicit nil

func (*AccountOrderRecordLeg) UnsetTotalQuantity added in v1.0.117

func (o *AccountOrderRecordLeg) UnsetTotalQuantity()

UnsetTotalQuantity ensures that no value is present for TotalQuantity, not even an explicit nil

type AccountOrderRecordLegInstrument added in v1.0.117

type AccountOrderRecordLegInstrument struct {
	// The symbol or ticker for the security.
	Symbol *string `json:"symbol,omitempty"`
	// Human-readable description of the security.
	Description *string `json:"description,omitempty"`
	// Type of instrument for the leg. - EQUITY - OPTION - CRYPTO
	AssetType *string `json:"asset_type,omitempty"`
	// Market Identifier Code (MIC) for the exchange on which the instrument trades.
	ExchangeMicCode *string `json:"exchange_mic_code,omitempty"`
	// Financial Instrument Global Identifier (FIGI) if available.
	FigiCode             NullableString `json:"figi_code,omitempty"`
	AdditionalProperties map[string]interface{}
}

AccountOrderRecordLegInstrument Instrument metadata for an order leg.

func NewAccountOrderRecordLegInstrument added in v1.0.117

func NewAccountOrderRecordLegInstrument() *AccountOrderRecordLegInstrument

NewAccountOrderRecordLegInstrument instantiates a new AccountOrderRecordLegInstrument object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAccountOrderRecordLegInstrumentWithDefaults added in v1.0.117

func NewAccountOrderRecordLegInstrumentWithDefaults() *AccountOrderRecordLegInstrument

NewAccountOrderRecordLegInstrumentWithDefaults instantiates a new AccountOrderRecordLegInstrument object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AccountOrderRecordLegInstrument) GetAssetType added in v1.0.117

func (o *AccountOrderRecordLegInstrument) GetAssetType() string

GetAssetType returns the AssetType field value if set, zero value otherwise.

func (*AccountOrderRecordLegInstrument) GetAssetTypeOk added in v1.0.117

func (o *AccountOrderRecordLegInstrument) GetAssetTypeOk() (*string, bool)

GetAssetTypeOk returns a tuple with the AssetType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountOrderRecordLegInstrument) GetDescription added in v1.0.117

func (o *AccountOrderRecordLegInstrument) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*AccountOrderRecordLegInstrument) GetDescriptionOk added in v1.0.117

func (o *AccountOrderRecordLegInstrument) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountOrderRecordLegInstrument) GetExchangeMicCode added in v1.0.117

func (o *AccountOrderRecordLegInstrument) GetExchangeMicCode() string

GetExchangeMicCode returns the ExchangeMicCode field value if set, zero value otherwise.

func (*AccountOrderRecordLegInstrument) GetExchangeMicCodeOk added in v1.0.117

func (o *AccountOrderRecordLegInstrument) GetExchangeMicCodeOk() (*string, bool)

GetExchangeMicCodeOk returns a tuple with the ExchangeMicCode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountOrderRecordLegInstrument) GetFigiCode added in v1.0.117

func (o *AccountOrderRecordLegInstrument) GetFigiCode() string

GetFigiCode returns the FigiCode field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AccountOrderRecordLegInstrument) GetFigiCodeOk added in v1.0.117

func (o *AccountOrderRecordLegInstrument) GetFigiCodeOk() (*string, bool)

GetFigiCodeOk returns a tuple with the FigiCode field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AccountOrderRecordLegInstrument) GetSymbol added in v1.0.117

func (o *AccountOrderRecordLegInstrument) GetSymbol() string

GetSymbol returns the Symbol field value if set, zero value otherwise.

func (*AccountOrderRecordLegInstrument) GetSymbolOk added in v1.0.117

func (o *AccountOrderRecordLegInstrument) GetSymbolOk() (*string, bool)

GetSymbolOk returns a tuple with the Symbol field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountOrderRecordLegInstrument) HasAssetType added in v1.0.117

func (o *AccountOrderRecordLegInstrument) HasAssetType() bool

HasAssetType returns a boolean if a field has been set.

func (*AccountOrderRecordLegInstrument) HasDescription added in v1.0.117

func (o *AccountOrderRecordLegInstrument) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*AccountOrderRecordLegInstrument) HasExchangeMicCode added in v1.0.117

func (o *AccountOrderRecordLegInstrument) HasExchangeMicCode() bool

HasExchangeMicCode returns a boolean if a field has been set.

func (*AccountOrderRecordLegInstrument) HasFigiCode added in v1.0.117

func (o *AccountOrderRecordLegInstrument) HasFigiCode() bool

HasFigiCode returns a boolean if a field has been set.

func (*AccountOrderRecordLegInstrument) HasSymbol added in v1.0.117

func (o *AccountOrderRecordLegInstrument) HasSymbol() bool

HasSymbol returns a boolean if a field has been set.

func (AccountOrderRecordLegInstrument) MarshalJSON added in v1.0.117

func (o AccountOrderRecordLegInstrument) MarshalJSON() ([]byte, error)

func (*AccountOrderRecordLegInstrument) SetAssetType added in v1.0.117

func (o *AccountOrderRecordLegInstrument) SetAssetType(v string)

SetAssetType gets a reference to the given string and assigns it to the AssetType field.

func (*AccountOrderRecordLegInstrument) SetDescription added in v1.0.117

func (o *AccountOrderRecordLegInstrument) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*AccountOrderRecordLegInstrument) SetExchangeMicCode added in v1.0.117

func (o *AccountOrderRecordLegInstrument) SetExchangeMicCode(v string)

SetExchangeMicCode gets a reference to the given string and assigns it to the ExchangeMicCode field.

func (*AccountOrderRecordLegInstrument) SetFigiCode added in v1.0.117

func (o *AccountOrderRecordLegInstrument) SetFigiCode(v string)

SetFigiCode gets a reference to the given NullableString and assigns it to the FigiCode field.

func (*AccountOrderRecordLegInstrument) SetFigiCodeNil added in v1.0.117

func (o *AccountOrderRecordLegInstrument) SetFigiCodeNil()

SetFigiCodeNil sets the value for FigiCode to be an explicit nil

func (*AccountOrderRecordLegInstrument) SetSymbol added in v1.0.117

func (o *AccountOrderRecordLegInstrument) SetSymbol(v string)

SetSymbol gets a reference to the given string and assigns it to the Symbol field.

func (*AccountOrderRecordLegInstrument) UnmarshalJSON added in v1.0.117

func (o *AccountOrderRecordLegInstrument) UnmarshalJSON(bytes []byte) (err error)

func (*AccountOrderRecordLegInstrument) UnsetFigiCode added in v1.0.117

func (o *AccountOrderRecordLegInstrument) UnsetFigiCode()

UnsetFigiCode ensures that no value is present for FigiCode, not even an explicit nil

type AccountOrderRecordOptionSymbol added in v1.0.4

type AccountOrderRecordOptionSymbol struct {
	// Unique identifier for the option symbol within SnapTrade. This is the ID used to reference the symbol in SnapTrade API calls.
	Id string `json:"id"`
	// The [OCC symbol](https://en.wikipedia.org/wiki/Option_symbol) for the option.
	Ticker string `json:"ticker"`
	// The type of option. Either \"CALL\" or \"PUT\".
	OptionType string `json:"option_type"`
	// The option strike price.
	StrikePrice float32 `json:"strike_price"`
	// The option expiration date.
	ExpirationDate string `json:"expiration_date"`
	// Whether the option is a mini option. Mini options have 10 underlying shares per contract instead of the standard 100.
	IsMiniOption     *bool            `json:"is_mini_option,omitempty"`
	UnderlyingSymbol UnderlyingSymbol `json:"underlying_symbol"`
}

AccountOrderRecordOptionSymbol Contains information about the option contract that the order is for. This field is only present for option orders. For stock/ETF/crypto/mutual fund orders, this field will be null and the `universal_symbol` field will be populated.

func NewAccountOrderRecordOptionSymbol added in v1.0.4

func NewAccountOrderRecordOptionSymbol(id string, ticker string, optionType string, strikePrice float32, expirationDate string, underlyingSymbol UnderlyingSymbol) *AccountOrderRecordOptionSymbol

NewAccountOrderRecordOptionSymbol instantiates a new AccountOrderRecordOptionSymbol object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAccountOrderRecordOptionSymbolWithDefaults added in v1.0.4

func NewAccountOrderRecordOptionSymbolWithDefaults() *AccountOrderRecordOptionSymbol

NewAccountOrderRecordOptionSymbolWithDefaults instantiates a new AccountOrderRecordOptionSymbol object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AccountOrderRecordOptionSymbol) GetExpirationDate added in v1.0.4

func (o *AccountOrderRecordOptionSymbol) GetExpirationDate() string

GetExpirationDate returns the ExpirationDate field value

func (*AccountOrderRecordOptionSymbol) GetExpirationDateOk added in v1.0.4

func (o *AccountOrderRecordOptionSymbol) GetExpirationDateOk() (*string, bool)

GetExpirationDateOk returns a tuple with the ExpirationDate field value and a boolean to check if the value has been set.

func (*AccountOrderRecordOptionSymbol) GetId added in v1.0.4

GetId returns the Id field value

func (*AccountOrderRecordOptionSymbol) GetIdOk added in v1.0.4

func (o *AccountOrderRecordOptionSymbol) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*AccountOrderRecordOptionSymbol) GetIsMiniOption added in v1.0.4

func (o *AccountOrderRecordOptionSymbol) GetIsMiniOption() bool

GetIsMiniOption returns the IsMiniOption field value if set, zero value otherwise.

func (*AccountOrderRecordOptionSymbol) GetIsMiniOptionOk added in v1.0.4

func (o *AccountOrderRecordOptionSymbol) GetIsMiniOptionOk() (*bool, bool)

GetIsMiniOptionOk returns a tuple with the IsMiniOption field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountOrderRecordOptionSymbol) GetOptionType added in v1.0.4

func (o *AccountOrderRecordOptionSymbol) GetOptionType() string

GetOptionType returns the OptionType field value

func (*AccountOrderRecordOptionSymbol) GetOptionTypeOk added in v1.0.4

func (o *AccountOrderRecordOptionSymbol) GetOptionTypeOk() (*string, bool)

GetOptionTypeOk returns a tuple with the OptionType field value and a boolean to check if the value has been set.

func (*AccountOrderRecordOptionSymbol) GetStrikePrice added in v1.0.4

func (o *AccountOrderRecordOptionSymbol) GetStrikePrice() float32

GetStrikePrice returns the StrikePrice field value

func (*AccountOrderRecordOptionSymbol) GetStrikePriceOk added in v1.0.4

func (o *AccountOrderRecordOptionSymbol) GetStrikePriceOk() (*float32, bool)

GetStrikePriceOk returns a tuple with the StrikePrice field value and a boolean to check if the value has been set.

func (*AccountOrderRecordOptionSymbol) GetTicker added in v1.0.4

func (o *AccountOrderRecordOptionSymbol) GetTicker() string

GetTicker returns the Ticker field value

func (*AccountOrderRecordOptionSymbol) GetTickerOk added in v1.0.4

func (o *AccountOrderRecordOptionSymbol) GetTickerOk() (*string, bool)

GetTickerOk returns a tuple with the Ticker field value and a boolean to check if the value has been set.

func (*AccountOrderRecordOptionSymbol) GetUnderlyingSymbol added in v1.0.4

func (o *AccountOrderRecordOptionSymbol) GetUnderlyingSymbol() UnderlyingSymbol

GetUnderlyingSymbol returns the UnderlyingSymbol field value

func (*AccountOrderRecordOptionSymbol) GetUnderlyingSymbolOk added in v1.0.4

func (o *AccountOrderRecordOptionSymbol) GetUnderlyingSymbolOk() (*UnderlyingSymbol, bool)

GetUnderlyingSymbolOk returns a tuple with the UnderlyingSymbol field value and a boolean to check if the value has been set.

func (*AccountOrderRecordOptionSymbol) HasIsMiniOption added in v1.0.4

func (o *AccountOrderRecordOptionSymbol) HasIsMiniOption() bool

HasIsMiniOption returns a boolean if a field has been set.

func (AccountOrderRecordOptionSymbol) MarshalJSON added in v1.0.4

func (o AccountOrderRecordOptionSymbol) MarshalJSON() ([]byte, error)

func (*AccountOrderRecordOptionSymbol) SetExpirationDate added in v1.0.4

func (o *AccountOrderRecordOptionSymbol) SetExpirationDate(v string)

SetExpirationDate sets field value

func (*AccountOrderRecordOptionSymbol) SetId added in v1.0.4

SetId sets field value

func (*AccountOrderRecordOptionSymbol) SetIsMiniOption added in v1.0.4

func (o *AccountOrderRecordOptionSymbol) SetIsMiniOption(v bool)

SetIsMiniOption gets a reference to the given bool and assigns it to the IsMiniOption field.

func (*AccountOrderRecordOptionSymbol) SetOptionType added in v1.0.4

func (o *AccountOrderRecordOptionSymbol) SetOptionType(v string)

SetOptionType sets field value

func (*AccountOrderRecordOptionSymbol) SetStrikePrice added in v1.0.4

func (o *AccountOrderRecordOptionSymbol) SetStrikePrice(v float32)

SetStrikePrice sets field value

func (*AccountOrderRecordOptionSymbol) SetTicker added in v1.0.4

func (o *AccountOrderRecordOptionSymbol) SetTicker(v string)

SetTicker sets field value

func (*AccountOrderRecordOptionSymbol) SetUnderlyingSymbol added in v1.0.4

func (o *AccountOrderRecordOptionSymbol) SetUnderlyingSymbol(v UnderlyingSymbol)

SetUnderlyingSymbol sets field value

type AccountOrderRecordQuoteCurrency added in v1.0.58

type AccountOrderRecordQuoteCurrency struct {
	// Unique identifier for the currency. This is the UUID used to reference the currency in SnapTrade.
	Id *string `json:"id,omitempty"`
	// The ISO-4217 currency code for the currency.
	Code *string `json:"code,omitempty"`
	// A human-friendly name of the currency.
	Name *string `json:"name,omitempty"`
}

AccountOrderRecordQuoteCurrency Quote currency. This field is only present for cryptocurrency pair orders with a fiat currency as quote.

func NewAccountOrderRecordQuoteCurrency added in v1.0.58

func NewAccountOrderRecordQuoteCurrency() *AccountOrderRecordQuoteCurrency

NewAccountOrderRecordQuoteCurrency instantiates a new AccountOrderRecordQuoteCurrency object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAccountOrderRecordQuoteCurrencyWithDefaults added in v1.0.58

func NewAccountOrderRecordQuoteCurrencyWithDefaults() *AccountOrderRecordQuoteCurrency

NewAccountOrderRecordQuoteCurrencyWithDefaults instantiates a new AccountOrderRecordQuoteCurrency object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AccountOrderRecordQuoteCurrency) GetCode added in v1.0.58

GetCode returns the Code field value if set, zero value otherwise.

func (*AccountOrderRecordQuoteCurrency) GetCodeOk added in v1.0.58

func (o *AccountOrderRecordQuoteCurrency) GetCodeOk() (*string, bool)

GetCodeOk returns a tuple with the Code field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountOrderRecordQuoteCurrency) GetId added in v1.0.58

GetId returns the Id field value if set, zero value otherwise.

func (*AccountOrderRecordQuoteCurrency) GetIdOk added in v1.0.58

func (o *AccountOrderRecordQuoteCurrency) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountOrderRecordQuoteCurrency) GetName added in v1.0.58

GetName returns the Name field value if set, zero value otherwise.

func (*AccountOrderRecordQuoteCurrency) GetNameOk added in v1.0.58

func (o *AccountOrderRecordQuoteCurrency) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountOrderRecordQuoteCurrency) HasCode added in v1.0.58

HasCode returns a boolean if a field has been set.

func (*AccountOrderRecordQuoteCurrency) HasId added in v1.0.58

HasId returns a boolean if a field has been set.

func (*AccountOrderRecordQuoteCurrency) HasName added in v1.0.58

HasName returns a boolean if a field has been set.

func (AccountOrderRecordQuoteCurrency) MarshalJSON added in v1.0.58

func (o AccountOrderRecordQuoteCurrency) MarshalJSON() ([]byte, error)

func (*AccountOrderRecordQuoteCurrency) SetCode added in v1.0.58

SetCode gets a reference to the given string and assigns it to the Code field.

func (*AccountOrderRecordQuoteCurrency) SetId added in v1.0.58

SetId gets a reference to the given string and assigns it to the Id field.

func (*AccountOrderRecordQuoteCurrency) SetName added in v1.0.58

SetName gets a reference to the given string and assigns it to the Name field.

type AccountOrderRecordQuoteUniversalSymbol added in v1.0.58

type AccountOrderRecordQuoteUniversalSymbol struct {
	// Unique identifier for the symbol within SnapTrade. This is the ID used to reference the symbol in SnapTrade API calls.
	Id string `json:"id"`
	// The security's trading ticker symbol. For example \"AAPL\" for Apple Inc. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a '.TO' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix.
	Symbol string `json:"symbol"`
	// The raw symbol is `symbol` with the exchange suffix removed. For example, if `symbol` is \"VAB.TO\", then `raw_symbol` is \"VAB\".
	RawSymbol string `json:"raw_symbol"`
	// A human-readable description of the security. This is usually the company name or ETF name.
	Description NullableString  `json:"description,omitempty"`
	Currency    SymbolCurrency  `json:"currency"`
	Exchange    *SymbolExchange `json:"exchange,omitempty"`
	Type        SecurityType    `json:"type"`
	// This identifier is unique per security per trading venue. See section 1.4.1 of the [FIGI Standard](https://www.openfigi.com/assets/local/figi-allocation-rules.pdf) for more information. This value should be the same as the `figi_code` in the `figi_instrument` child property.
	FigiCode       NullableString               `json:"figi_code,omitempty"`
	FigiInstrument NullableSymbolFigiInstrument `json:"figi_instrument,omitempty"`
	// This field is deprecated and should not be used. Please reach out to SnapTrade support if you have a valid usecase for this.
	// Deprecated
	Currencies []Currency `json:"currencies"`
}

AccountOrderRecordQuoteUniversalSymbol Quote cryptocurrency. This field is only present for cryptocurrency pair orders with a cryptocurrency as quote.

func NewAccountOrderRecordQuoteUniversalSymbol added in v1.0.58

func NewAccountOrderRecordQuoteUniversalSymbol(id string, symbol string, rawSymbol string, currency SymbolCurrency, type_ SecurityType, currencies []Currency) *AccountOrderRecordQuoteUniversalSymbol

NewAccountOrderRecordQuoteUniversalSymbol instantiates a new AccountOrderRecordQuoteUniversalSymbol object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAccountOrderRecordQuoteUniversalSymbolWithDefaults added in v1.0.58

func NewAccountOrderRecordQuoteUniversalSymbolWithDefaults() *AccountOrderRecordQuoteUniversalSymbol

NewAccountOrderRecordQuoteUniversalSymbolWithDefaults instantiates a new AccountOrderRecordQuoteUniversalSymbol object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AccountOrderRecordQuoteUniversalSymbol) GetCurrencies added in v1.0.58

func (o *AccountOrderRecordQuoteUniversalSymbol) GetCurrencies() []Currency

GetCurrencies returns the Currencies field value Deprecated

func (*AccountOrderRecordQuoteUniversalSymbol) GetCurrenciesOk added in v1.0.58

func (o *AccountOrderRecordQuoteUniversalSymbol) GetCurrenciesOk() ([]Currency, bool)

GetCurrenciesOk returns a tuple with the Currencies field value and a boolean to check if the value has been set. Deprecated

func (*AccountOrderRecordQuoteUniversalSymbol) GetCurrency added in v1.0.58

GetCurrency returns the Currency field value

func (*AccountOrderRecordQuoteUniversalSymbol) GetCurrencyOk added in v1.0.58

GetCurrencyOk returns a tuple with the Currency field value and a boolean to check if the value has been set.

func (*AccountOrderRecordQuoteUniversalSymbol) GetDescription added in v1.0.58

func (o *AccountOrderRecordQuoteUniversalSymbol) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AccountOrderRecordQuoteUniversalSymbol) GetDescriptionOk added in v1.0.58

func (o *AccountOrderRecordQuoteUniversalSymbol) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AccountOrderRecordQuoteUniversalSymbol) GetExchange added in v1.0.58

GetExchange returns the Exchange field value if set, zero value otherwise.

func (*AccountOrderRecordQuoteUniversalSymbol) GetExchangeOk added in v1.0.58

GetExchangeOk returns a tuple with the Exchange field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountOrderRecordQuoteUniversalSymbol) GetFigiCode added in v1.0.58

GetFigiCode returns the FigiCode field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AccountOrderRecordQuoteUniversalSymbol) GetFigiCodeOk added in v1.0.58

func (o *AccountOrderRecordQuoteUniversalSymbol) GetFigiCodeOk() (*string, bool)

GetFigiCodeOk returns a tuple with the FigiCode field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AccountOrderRecordQuoteUniversalSymbol) GetFigiInstrument added in v1.0.58

GetFigiInstrument returns the FigiInstrument field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AccountOrderRecordQuoteUniversalSymbol) GetFigiInstrumentOk added in v1.0.58

GetFigiInstrumentOk returns a tuple with the FigiInstrument field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AccountOrderRecordQuoteUniversalSymbol) GetId added in v1.0.58

GetId returns the Id field value

func (*AccountOrderRecordQuoteUniversalSymbol) GetIdOk added in v1.0.58

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*AccountOrderRecordQuoteUniversalSymbol) GetRawSymbol added in v1.0.58

GetRawSymbol returns the RawSymbol field value

func (*AccountOrderRecordQuoteUniversalSymbol) GetRawSymbolOk added in v1.0.58

func (o *AccountOrderRecordQuoteUniversalSymbol) GetRawSymbolOk() (*string, bool)

GetRawSymbolOk returns a tuple with the RawSymbol field value and a boolean to check if the value has been set.

func (*AccountOrderRecordQuoteUniversalSymbol) GetSymbol added in v1.0.58

GetSymbol returns the Symbol field value

func (*AccountOrderRecordQuoteUniversalSymbol) GetSymbolOk added in v1.0.58

func (o *AccountOrderRecordQuoteUniversalSymbol) GetSymbolOk() (*string, bool)

GetSymbolOk returns a tuple with the Symbol field value and a boolean to check if the value has been set.

func (*AccountOrderRecordQuoteUniversalSymbol) GetType added in v1.0.58

GetType returns the Type field value

func (*AccountOrderRecordQuoteUniversalSymbol) GetTypeOk added in v1.0.58

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (*AccountOrderRecordQuoteUniversalSymbol) HasDescription added in v1.0.58

func (o *AccountOrderRecordQuoteUniversalSymbol) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*AccountOrderRecordQuoteUniversalSymbol) HasExchange added in v1.0.58

HasExchange returns a boolean if a field has been set.

func (*AccountOrderRecordQuoteUniversalSymbol) HasFigiCode added in v1.0.58

HasFigiCode returns a boolean if a field has been set.

func (*AccountOrderRecordQuoteUniversalSymbol) HasFigiInstrument added in v1.0.58

func (o *AccountOrderRecordQuoteUniversalSymbol) HasFigiInstrument() bool

HasFigiInstrument returns a boolean if a field has been set.

func (AccountOrderRecordQuoteUniversalSymbol) MarshalJSON added in v1.0.58

func (o AccountOrderRecordQuoteUniversalSymbol) MarshalJSON() ([]byte, error)

func (*AccountOrderRecordQuoteUniversalSymbol) SetCurrencies added in v1.0.58

func (o *AccountOrderRecordQuoteUniversalSymbol) SetCurrencies(v []Currency)

SetCurrencies sets field value Deprecated

func (*AccountOrderRecordQuoteUniversalSymbol) SetCurrency added in v1.0.58

SetCurrency sets field value

func (*AccountOrderRecordQuoteUniversalSymbol) SetDescription added in v1.0.58

func (o *AccountOrderRecordQuoteUniversalSymbol) SetDescription(v string)

SetDescription gets a reference to the given NullableString and assigns it to the Description field.

func (*AccountOrderRecordQuoteUniversalSymbol) SetDescriptionNil added in v1.0.58

func (o *AccountOrderRecordQuoteUniversalSymbol) SetDescriptionNil()

SetDescriptionNil sets the value for Description to be an explicit nil

func (*AccountOrderRecordQuoteUniversalSymbol) SetExchange added in v1.0.58

SetExchange gets a reference to the given SymbolExchange and assigns it to the Exchange field.

func (*AccountOrderRecordQuoteUniversalSymbol) SetFigiCode added in v1.0.58

SetFigiCode gets a reference to the given NullableString and assigns it to the FigiCode field.

func (*AccountOrderRecordQuoteUniversalSymbol) SetFigiCodeNil added in v1.0.58

func (o *AccountOrderRecordQuoteUniversalSymbol) SetFigiCodeNil()

SetFigiCodeNil sets the value for FigiCode to be an explicit nil

func (*AccountOrderRecordQuoteUniversalSymbol) SetFigiInstrument added in v1.0.58

SetFigiInstrument gets a reference to the given NullableSymbolFigiInstrument and assigns it to the FigiInstrument field.

func (*AccountOrderRecordQuoteUniversalSymbol) SetFigiInstrumentNil added in v1.0.58

func (o *AccountOrderRecordQuoteUniversalSymbol) SetFigiInstrumentNil()

SetFigiInstrumentNil sets the value for FigiInstrument to be an explicit nil

func (*AccountOrderRecordQuoteUniversalSymbol) SetId added in v1.0.58

SetId sets field value

func (*AccountOrderRecordQuoteUniversalSymbol) SetRawSymbol added in v1.0.58

SetRawSymbol sets field value

func (*AccountOrderRecordQuoteUniversalSymbol) SetSymbol added in v1.0.58

SetSymbol sets field value

func (*AccountOrderRecordQuoteUniversalSymbol) SetType added in v1.0.58

SetType sets field value

func (*AccountOrderRecordQuoteUniversalSymbol) UnsetDescription added in v1.0.58

func (o *AccountOrderRecordQuoteUniversalSymbol) UnsetDescription()

UnsetDescription ensures that no value is present for Description, not even an explicit nil

func (*AccountOrderRecordQuoteUniversalSymbol) UnsetFigiCode added in v1.0.58

func (o *AccountOrderRecordQuoteUniversalSymbol) UnsetFigiCode()

UnsetFigiCode ensures that no value is present for FigiCode, not even an explicit nil

func (*AccountOrderRecordQuoteUniversalSymbol) UnsetFigiInstrument added in v1.0.58

func (o *AccountOrderRecordQuoteUniversalSymbol) UnsetFigiInstrument()

UnsetFigiInstrument ensures that no value is present for FigiInstrument, not even an explicit nil

type AccountOrderRecordStatus

type AccountOrderRecordStatus string

AccountOrderRecordStatus Indicates the status of an order. SnapTrade does a best effort to map brokerage statuses to statuses in this enum. Possible values include: - NONE - PENDING - ACCEPTED - FAILED - REJECTED - CANCELED - PARTIAL_CANCELED - CANCEL_PENDING - EXECUTED - PARTIAL - REPLACE_PENDING - REPLACED - EXPIRED - QUEUED - TRIGGERED - ACTIVATED

const (
	ACCOUNTORDERRECORDSTATUS_NONE                AccountOrderRecordStatus = "NONE"
	ACCOUNTORDERRECORDSTATUS_PENDING             AccountOrderRecordStatus = "PENDING"
	ACCOUNTORDERRECORDSTATUS_ACCEPTED            AccountOrderRecordStatus = "ACCEPTED"
	ACCOUNTORDERRECORDSTATUS_FAILED              AccountOrderRecordStatus = "FAILED"
	ACCOUNTORDERRECORDSTATUS_REJECTED            AccountOrderRecordStatus = "REJECTED"
	ACCOUNTORDERRECORDSTATUS_CANCELED            AccountOrderRecordStatus = "CANCELED"
	ACCOUNTORDERRECORDSTATUS_PARTIAL_CANCELED    AccountOrderRecordStatus = "PARTIAL_CANCELED"
	ACCOUNTORDERRECORDSTATUS_CANCEL_PENDING      AccountOrderRecordStatus = "CANCEL_PENDING"
	ACCOUNTORDERRECORDSTATUS_EXECUTED            AccountOrderRecordStatus = "EXECUTED"
	ACCOUNTORDERRECORDSTATUS_PARTIAL             AccountOrderRecordStatus = "PARTIAL"
	ACCOUNTORDERRECORDSTATUS_REPLACE_PENDING     AccountOrderRecordStatus = "REPLACE_PENDING"
	ACCOUNTORDERRECORDSTATUS_REPLACED            AccountOrderRecordStatus = "REPLACED"
	ACCOUNTORDERRECORDSTATUS_STOPPED             AccountOrderRecordStatus = "STOPPED"
	ACCOUNTORDERRECORDSTATUS_SUSPENDED           AccountOrderRecordStatus = "SUSPENDED"
	ACCOUNTORDERRECORDSTATUS_EXPIRED             AccountOrderRecordStatus = "EXPIRED"
	ACCOUNTORDERRECORDSTATUS_QUEUED              AccountOrderRecordStatus = "QUEUED"
	ACCOUNTORDERRECORDSTATUS_TRIGGERED           AccountOrderRecordStatus = "TRIGGERED"
	ACCOUNTORDERRECORDSTATUS_ACTIVATED           AccountOrderRecordStatus = "ACTIVATED"
	ACCOUNTORDERRECORDSTATUS_PENDING_RISK_REVIEW AccountOrderRecordStatus = "PENDING_RISK_REVIEW"
	ACCOUNTORDERRECORDSTATUS_CONTINGENT_ORDER    AccountOrderRecordStatus = "CONTINGENT_ORDER"
)

List of AccountOrderRecordStatus

func NewAccountOrderRecordStatusFromValue

func NewAccountOrderRecordStatusFromValue(v string) (*AccountOrderRecordStatus, error)

NewAccountOrderRecordStatusFromValue returns a pointer to a valid AccountOrderRecordStatus for the value passed as argument, or an error if the value passed is not allowed by the enum

func (AccountOrderRecordStatus) IsValid

func (v AccountOrderRecordStatus) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (AccountOrderRecordStatus) Ptr

Ptr returns reference to AccountOrderRecordStatus value

func (*AccountOrderRecordStatus) UnmarshalJSON

func (v *AccountOrderRecordStatus) UnmarshalJSON(src []byte) error

type AccountOrderRecordStatusV2 added in v1.0.117

type AccountOrderRecordStatusV2 string

AccountOrderRecordStatusV2 Indicates the status of an order. SnapTrade does a best effort to map brokerage statuses to statuses in this enum.

const (
	ACCOUNTORDERRECORDSTATUSV2_PENDING            AccountOrderRecordStatusV2 = "PENDING"
	ACCOUNTORDERRECORDSTATUSV2_REJECTED           AccountOrderRecordStatusV2 = "REJECTED"
	ACCOUNTORDERRECORDSTATUSV2_CANCELED           AccountOrderRecordStatusV2 = "CANCELED"
	ACCOUNTORDERRECORDSTATUSV2_CANCEL_PENDING     AccountOrderRecordStatusV2 = "CANCEL_PENDING"
	ACCOUNTORDERRECORDSTATUSV2_PARTIAL_CANCELED   AccountOrderRecordStatusV2 = "PARTIAL_CANCELED"
	ACCOUNTORDERRECORDSTATUSV2_EXECUTED           AccountOrderRecordStatusV2 = "EXECUTED"
	ACCOUNTORDERRECORDSTATUSV2_PARTIALLY_EXECUTED AccountOrderRecordStatusV2 = "PARTIALLY_EXECUTED"
	ACCOUNTORDERRECORDSTATUSV2_REPLACED           AccountOrderRecordStatusV2 = "REPLACED"
	ACCOUNTORDERRECORDSTATUSV2_REPLACE_PENDING    AccountOrderRecordStatusV2 = "REPLACE_PENDING"
	ACCOUNTORDERRECORDSTATUSV2_EXPIRED            AccountOrderRecordStatusV2 = "EXPIRED"
)

List of AccountOrderRecordStatusV2

func NewAccountOrderRecordStatusV2FromValue added in v1.0.117

func NewAccountOrderRecordStatusV2FromValue(v string) (*AccountOrderRecordStatusV2, error)

NewAccountOrderRecordStatusV2FromValue returns a pointer to a valid AccountOrderRecordStatusV2 for the value passed as argument, or an error if the value passed is not allowed by the enum

func (AccountOrderRecordStatusV2) IsValid added in v1.0.117

func (v AccountOrderRecordStatusV2) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (AccountOrderRecordStatusV2) Ptr added in v1.0.117

Ptr returns reference to AccountOrderRecordStatusV2 value

func (*AccountOrderRecordStatusV2) UnmarshalJSON added in v1.0.117

func (v *AccountOrderRecordStatusV2) UnmarshalJSON(src []byte) error

type AccountOrderRecordUniversalSymbol added in v1.0.4

type AccountOrderRecordUniversalSymbol struct {
	// Unique identifier for the symbol within SnapTrade. This is the ID used to reference the symbol in SnapTrade API calls.
	Id string `json:"id"`
	// The security's trading ticker symbol. For example \"AAPL\" for Apple Inc. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a '.TO' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix.
	Symbol string `json:"symbol"`
	// The raw symbol is `symbol` with the exchange suffix removed. For example, if `symbol` is \"VAB.TO\", then `raw_symbol` is \"VAB\".
	RawSymbol string `json:"raw_symbol"`
	// A human-readable description of the security. This is usually the company name or ETF name.
	Description NullableString  `json:"description,omitempty"`
	Currency    SymbolCurrency  `json:"currency"`
	Exchange    *SymbolExchange `json:"exchange,omitempty"`
	Type        SecurityType    `json:"type"`
	// This identifier is unique per security per trading venue. See section 1.4.1 of the [FIGI Standard](https://www.openfigi.com/assets/local/figi-allocation-rules.pdf) for more information. This value should be the same as the `figi_code` in the `figi_instrument` child property.
	FigiCode       NullableString               `json:"figi_code,omitempty"`
	FigiInstrument NullableSymbolFigiInstrument `json:"figi_instrument,omitempty"`
	// This field is deprecated and should not be used. Please reach out to SnapTrade support if you have a valid usecase for this.
	// Deprecated
	Currencies []Currency `json:"currencies"`
}

AccountOrderRecordUniversalSymbol Contains information about the security that the order is for. This field is only present for stock/ETF/crypto/mutual fund orders. For option orders, this field will be null and the `option_symbol` field will be populated.

func NewAccountOrderRecordUniversalSymbol added in v1.0.4

func NewAccountOrderRecordUniversalSymbol(id string, symbol string, rawSymbol string, currency SymbolCurrency, type_ SecurityType, currencies []Currency) *AccountOrderRecordUniversalSymbol

NewAccountOrderRecordUniversalSymbol instantiates a new AccountOrderRecordUniversalSymbol object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAccountOrderRecordUniversalSymbolWithDefaults added in v1.0.4

func NewAccountOrderRecordUniversalSymbolWithDefaults() *AccountOrderRecordUniversalSymbol

NewAccountOrderRecordUniversalSymbolWithDefaults instantiates a new AccountOrderRecordUniversalSymbol object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AccountOrderRecordUniversalSymbol) GetCurrencies added in v1.0.4

func (o *AccountOrderRecordUniversalSymbol) GetCurrencies() []Currency

GetCurrencies returns the Currencies field value Deprecated

func (*AccountOrderRecordUniversalSymbol) GetCurrenciesOk added in v1.0.4

func (o *AccountOrderRecordUniversalSymbol) GetCurrenciesOk() ([]Currency, bool)

GetCurrenciesOk returns a tuple with the Currencies field value and a boolean to check if the value has been set. Deprecated

func (*AccountOrderRecordUniversalSymbol) GetCurrency added in v1.0.4

GetCurrency returns the Currency field value

func (*AccountOrderRecordUniversalSymbol) GetCurrencyOk added in v1.0.4

func (o *AccountOrderRecordUniversalSymbol) GetCurrencyOk() (*SymbolCurrency, bool)

GetCurrencyOk returns a tuple with the Currency field value and a boolean to check if the value has been set.

func (*AccountOrderRecordUniversalSymbol) GetDescription added in v1.0.4

func (o *AccountOrderRecordUniversalSymbol) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AccountOrderRecordUniversalSymbol) GetDescriptionOk added in v1.0.4

func (o *AccountOrderRecordUniversalSymbol) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AccountOrderRecordUniversalSymbol) GetExchange added in v1.0.4

GetExchange returns the Exchange field value if set, zero value otherwise.

func (*AccountOrderRecordUniversalSymbol) GetExchangeOk added in v1.0.4

func (o *AccountOrderRecordUniversalSymbol) GetExchangeOk() (*SymbolExchange, bool)

GetExchangeOk returns a tuple with the Exchange field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountOrderRecordUniversalSymbol) GetFigiCode added in v1.0.4

func (o *AccountOrderRecordUniversalSymbol) GetFigiCode() string

GetFigiCode returns the FigiCode field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AccountOrderRecordUniversalSymbol) GetFigiCodeOk added in v1.0.4

func (o *AccountOrderRecordUniversalSymbol) GetFigiCodeOk() (*string, bool)

GetFigiCodeOk returns a tuple with the FigiCode field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AccountOrderRecordUniversalSymbol) GetFigiInstrument added in v1.0.4

GetFigiInstrument returns the FigiInstrument field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AccountOrderRecordUniversalSymbol) GetFigiInstrumentOk added in v1.0.4

func (o *AccountOrderRecordUniversalSymbol) GetFigiInstrumentOk() (*SymbolFigiInstrument, bool)

GetFigiInstrumentOk returns a tuple with the FigiInstrument field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AccountOrderRecordUniversalSymbol) GetId added in v1.0.4

GetId returns the Id field value

func (*AccountOrderRecordUniversalSymbol) GetIdOk added in v1.0.4

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*AccountOrderRecordUniversalSymbol) GetRawSymbol added in v1.0.4

func (o *AccountOrderRecordUniversalSymbol) GetRawSymbol() string

GetRawSymbol returns the RawSymbol field value

func (*AccountOrderRecordUniversalSymbol) GetRawSymbolOk added in v1.0.4

func (o *AccountOrderRecordUniversalSymbol) GetRawSymbolOk() (*string, bool)

GetRawSymbolOk returns a tuple with the RawSymbol field value and a boolean to check if the value has been set.

func (*AccountOrderRecordUniversalSymbol) GetSymbol added in v1.0.4

GetSymbol returns the Symbol field value

func (*AccountOrderRecordUniversalSymbol) GetSymbolOk added in v1.0.4

func (o *AccountOrderRecordUniversalSymbol) GetSymbolOk() (*string, bool)

GetSymbolOk returns a tuple with the Symbol field value and a boolean to check if the value has been set.

func (*AccountOrderRecordUniversalSymbol) GetType added in v1.0.4

GetType returns the Type field value

func (*AccountOrderRecordUniversalSymbol) GetTypeOk added in v1.0.4

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (*AccountOrderRecordUniversalSymbol) HasDescription added in v1.0.4

func (o *AccountOrderRecordUniversalSymbol) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*AccountOrderRecordUniversalSymbol) HasExchange added in v1.0.4

func (o *AccountOrderRecordUniversalSymbol) HasExchange() bool

HasExchange returns a boolean if a field has been set.

func (*AccountOrderRecordUniversalSymbol) HasFigiCode added in v1.0.4

func (o *AccountOrderRecordUniversalSymbol) HasFigiCode() bool

HasFigiCode returns a boolean if a field has been set.

func (*AccountOrderRecordUniversalSymbol) HasFigiInstrument added in v1.0.4

func (o *AccountOrderRecordUniversalSymbol) HasFigiInstrument() bool

HasFigiInstrument returns a boolean if a field has been set.

func (AccountOrderRecordUniversalSymbol) MarshalJSON added in v1.0.4

func (o AccountOrderRecordUniversalSymbol) MarshalJSON() ([]byte, error)

func (*AccountOrderRecordUniversalSymbol) SetCurrencies added in v1.0.4

func (o *AccountOrderRecordUniversalSymbol) SetCurrencies(v []Currency)

SetCurrencies sets field value Deprecated

func (*AccountOrderRecordUniversalSymbol) SetCurrency added in v1.0.4

SetCurrency sets field value

func (*AccountOrderRecordUniversalSymbol) SetDescription added in v1.0.4

func (o *AccountOrderRecordUniversalSymbol) SetDescription(v string)

SetDescription gets a reference to the given NullableString and assigns it to the Description field.

func (*AccountOrderRecordUniversalSymbol) SetDescriptionNil added in v1.0.4

func (o *AccountOrderRecordUniversalSymbol) SetDescriptionNil()

SetDescriptionNil sets the value for Description to be an explicit nil

func (*AccountOrderRecordUniversalSymbol) SetExchange added in v1.0.4

SetExchange gets a reference to the given SymbolExchange and assigns it to the Exchange field.

func (*AccountOrderRecordUniversalSymbol) SetFigiCode added in v1.0.4

func (o *AccountOrderRecordUniversalSymbol) SetFigiCode(v string)

SetFigiCode gets a reference to the given NullableString and assigns it to the FigiCode field.

func (*AccountOrderRecordUniversalSymbol) SetFigiCodeNil added in v1.0.4

func (o *AccountOrderRecordUniversalSymbol) SetFigiCodeNil()

SetFigiCodeNil sets the value for FigiCode to be an explicit nil

func (*AccountOrderRecordUniversalSymbol) SetFigiInstrument added in v1.0.4

SetFigiInstrument gets a reference to the given NullableSymbolFigiInstrument and assigns it to the FigiInstrument field.

func (*AccountOrderRecordUniversalSymbol) SetFigiInstrumentNil added in v1.0.4

func (o *AccountOrderRecordUniversalSymbol) SetFigiInstrumentNil()

SetFigiInstrumentNil sets the value for FigiInstrument to be an explicit nil

func (*AccountOrderRecordUniversalSymbol) SetId added in v1.0.4

SetId sets field value

func (*AccountOrderRecordUniversalSymbol) SetRawSymbol added in v1.0.4

func (o *AccountOrderRecordUniversalSymbol) SetRawSymbol(v string)

SetRawSymbol sets field value

func (*AccountOrderRecordUniversalSymbol) SetSymbol added in v1.0.4

func (o *AccountOrderRecordUniversalSymbol) SetSymbol(v string)

SetSymbol sets field value

func (*AccountOrderRecordUniversalSymbol) SetType added in v1.0.4

SetType sets field value

func (*AccountOrderRecordUniversalSymbol) UnsetDescription added in v1.0.4

func (o *AccountOrderRecordUniversalSymbol) UnsetDescription()

UnsetDescription ensures that no value is present for Description, not even an explicit nil

func (*AccountOrderRecordUniversalSymbol) UnsetFigiCode added in v1.0.4

func (o *AccountOrderRecordUniversalSymbol) UnsetFigiCode()

UnsetFigiCode ensures that no value is present for FigiCode, not even an explicit nil

func (*AccountOrderRecordUniversalSymbol) UnsetFigiInstrument added in v1.0.4

func (o *AccountOrderRecordUniversalSymbol) UnsetFigiInstrument()

UnsetFigiInstrument ensures that no value is present for FigiInstrument, not even an explicit nil

type AccountOrderRecordV2 added in v1.0.117

type AccountOrderRecordV2 struct {
	// Order ID returned by brokerage. This is the unique identifier for the order in the brokerage system.
	BrokerageOrderId *string                   `json:"brokerage_order_id,omitempty"`
	Status           *AccountOrderRecordStatus `json:"status,omitempty"`
	// The type of order placed.   - `MARKET`   - `LIMIT`   - `STOP`   - `STOP_LIMIT`
	OrderType NullableString `json:"order_type,omitempty"`
	// The Time in Force type for the order. This field indicates how long the order will remain active before it is executed or expires. We try our best to map brokerage time in force values to the following. When mapping fails, we will return the brokerage's time in force value.   - `DAY` - Day. The order is valid only for the trading day on which it is placed.   - `GTC` - Good Til Canceled. The order is valid until it is executed or canceled.   - `FOK` - Fill Or Kill. The order must be executed in its entirety immediately or be canceled completely.   - `IOC` - Immediate Or Cancel. The order must be executed immediately. Any portion of the order that cannot be filled immediately will be canceled.   - `GTD` - Good Til Date. The order is valid until the specified date.   - `MOO` - Market On Open. The order is to be executed at the day's opening price.   - `EHP` - Extended Hours P.M. The order is to be placed during extended hour trading, after markets close.
	TimeInForce *string `json:"time_in_force,omitempty"`
	// The time the order was placed. This is the time the order was submitted to the brokerage.
	TimePlaced *time.Time `json:"time_placed,omitempty"`
	// The time the order was executed in the brokerage system. This value is not always available from the brokerage.
	TimeExecuted NullableTime `json:"time_executed,omitempty"`
	// Quote currency code for the order.
	QuoteCurrency *string `json:"quote_currency,omitempty"`
	// The price at which the order was executed.
	ExecutionPrice NullableFloat32 `json:"execution_price,omitempty"`
	// The limit price is maximum price one is willing to pay for a buy order or the minimum price one is willing to accept for a sell order. Should only apply to `Limit` and `StopLimit` orders.
	LimitPrice NullableFloat32 `json:"limit_price,omitempty"`
	// The stop price is the price at which a stop order is triggered. Should only apply to `Stop` and `StopLimit` orders.
	StopPrice NullableFloat32 `json:"stop_price,omitempty"`
	// List of legs that make up the order.
	Legs                 []AccountOrderRecordLeg `json:"legs,omitempty"`
	AdditionalProperties map[string]interface{}
}

AccountOrderRecordV2 Describes a single order in the standardized V2 format.

func NewAccountOrderRecordV2 added in v1.0.117

func NewAccountOrderRecordV2() *AccountOrderRecordV2

NewAccountOrderRecordV2 instantiates a new AccountOrderRecordV2 object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAccountOrderRecordV2WithDefaults added in v1.0.117

func NewAccountOrderRecordV2WithDefaults() *AccountOrderRecordV2

NewAccountOrderRecordV2WithDefaults instantiates a new AccountOrderRecordV2 object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AccountOrderRecordV2) GetBrokerageOrderId added in v1.0.117

func (o *AccountOrderRecordV2) GetBrokerageOrderId() string

GetBrokerageOrderId returns the BrokerageOrderId field value if set, zero value otherwise.

func (*AccountOrderRecordV2) GetBrokerageOrderIdOk added in v1.0.117

func (o *AccountOrderRecordV2) GetBrokerageOrderIdOk() (*string, bool)

GetBrokerageOrderIdOk returns a tuple with the BrokerageOrderId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountOrderRecordV2) GetExecutionPrice added in v1.0.117

func (o *AccountOrderRecordV2) GetExecutionPrice() float32

GetExecutionPrice returns the ExecutionPrice field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AccountOrderRecordV2) GetExecutionPriceOk added in v1.0.117

func (o *AccountOrderRecordV2) GetExecutionPriceOk() (*float32, bool)

GetExecutionPriceOk returns a tuple with the ExecutionPrice field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AccountOrderRecordV2) GetLegs added in v1.0.117

GetLegs returns the Legs field value if set, zero value otherwise.

func (*AccountOrderRecordV2) GetLegsOk added in v1.0.117

func (o *AccountOrderRecordV2) GetLegsOk() ([]AccountOrderRecordLeg, bool)

GetLegsOk returns a tuple with the Legs field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountOrderRecordV2) GetLimitPrice added in v1.0.117

func (o *AccountOrderRecordV2) GetLimitPrice() float32

GetLimitPrice returns the LimitPrice field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AccountOrderRecordV2) GetLimitPriceOk added in v1.0.117

func (o *AccountOrderRecordV2) GetLimitPriceOk() (*float32, bool)

GetLimitPriceOk returns a tuple with the LimitPrice field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AccountOrderRecordV2) GetOrderType added in v1.0.117

func (o *AccountOrderRecordV2) GetOrderType() string

GetOrderType returns the OrderType field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AccountOrderRecordV2) GetOrderTypeOk added in v1.0.117

func (o *AccountOrderRecordV2) GetOrderTypeOk() (*string, bool)

GetOrderTypeOk returns a tuple with the OrderType field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AccountOrderRecordV2) GetQuoteCurrency added in v1.0.117

func (o *AccountOrderRecordV2) GetQuoteCurrency() string

GetQuoteCurrency returns the QuoteCurrency field value if set, zero value otherwise.

func (*AccountOrderRecordV2) GetQuoteCurrencyOk added in v1.0.117

func (o *AccountOrderRecordV2) GetQuoteCurrencyOk() (*string, bool)

GetQuoteCurrencyOk returns a tuple with the QuoteCurrency field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountOrderRecordV2) GetStatus added in v1.0.117

GetStatus returns the Status field value if set, zero value otherwise.

func (*AccountOrderRecordV2) GetStatusOk added in v1.0.117

func (o *AccountOrderRecordV2) GetStatusOk() (*AccountOrderRecordStatus, bool)

GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountOrderRecordV2) GetStopPrice added in v1.0.117

func (o *AccountOrderRecordV2) GetStopPrice() float32

GetStopPrice returns the StopPrice field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AccountOrderRecordV2) GetStopPriceOk added in v1.0.117

func (o *AccountOrderRecordV2) GetStopPriceOk() (*float32, bool)

GetStopPriceOk returns a tuple with the StopPrice field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AccountOrderRecordV2) GetTimeExecuted added in v1.0.117

func (o *AccountOrderRecordV2) GetTimeExecuted() time.Time

GetTimeExecuted returns the TimeExecuted field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AccountOrderRecordV2) GetTimeExecutedOk added in v1.0.117

func (o *AccountOrderRecordV2) GetTimeExecutedOk() (*time.Time, bool)

GetTimeExecutedOk returns a tuple with the TimeExecuted field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AccountOrderRecordV2) GetTimeInForce added in v1.0.117

func (o *AccountOrderRecordV2) GetTimeInForce() string

GetTimeInForce returns the TimeInForce field value if set, zero value otherwise.

func (*AccountOrderRecordV2) GetTimeInForceOk added in v1.0.117

func (o *AccountOrderRecordV2) GetTimeInForceOk() (*string, bool)

GetTimeInForceOk returns a tuple with the TimeInForce field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountOrderRecordV2) GetTimePlaced added in v1.0.117

func (o *AccountOrderRecordV2) GetTimePlaced() time.Time

GetTimePlaced returns the TimePlaced field value if set, zero value otherwise.

func (*AccountOrderRecordV2) GetTimePlacedOk added in v1.0.117

func (o *AccountOrderRecordV2) GetTimePlacedOk() (*time.Time, bool)

GetTimePlacedOk returns a tuple with the TimePlaced field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountOrderRecordV2) HasBrokerageOrderId added in v1.0.117

func (o *AccountOrderRecordV2) HasBrokerageOrderId() bool

HasBrokerageOrderId returns a boolean if a field has been set.

func (*AccountOrderRecordV2) HasExecutionPrice added in v1.0.117

func (o *AccountOrderRecordV2) HasExecutionPrice() bool

HasExecutionPrice returns a boolean if a field has been set.

func (*AccountOrderRecordV2) HasLegs added in v1.0.117

func (o *AccountOrderRecordV2) HasLegs() bool

HasLegs returns a boolean if a field has been set.

func (*AccountOrderRecordV2) HasLimitPrice added in v1.0.117

func (o *AccountOrderRecordV2) HasLimitPrice() bool

HasLimitPrice returns a boolean if a field has been set.

func (*AccountOrderRecordV2) HasOrderType added in v1.0.117

func (o *AccountOrderRecordV2) HasOrderType() bool

HasOrderType returns a boolean if a field has been set.

func (*AccountOrderRecordV2) HasQuoteCurrency added in v1.0.117

func (o *AccountOrderRecordV2) HasQuoteCurrency() bool

HasQuoteCurrency returns a boolean if a field has been set.

func (*AccountOrderRecordV2) HasStatus added in v1.0.117

func (o *AccountOrderRecordV2) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (*AccountOrderRecordV2) HasStopPrice added in v1.0.117

func (o *AccountOrderRecordV2) HasStopPrice() bool

HasStopPrice returns a boolean if a field has been set.

func (*AccountOrderRecordV2) HasTimeExecuted added in v1.0.117

func (o *AccountOrderRecordV2) HasTimeExecuted() bool

HasTimeExecuted returns a boolean if a field has been set.

func (*AccountOrderRecordV2) HasTimeInForce added in v1.0.117

func (o *AccountOrderRecordV2) HasTimeInForce() bool

HasTimeInForce returns a boolean if a field has been set.

func (*AccountOrderRecordV2) HasTimePlaced added in v1.0.117

func (o *AccountOrderRecordV2) HasTimePlaced() bool

HasTimePlaced returns a boolean if a field has been set.

func (AccountOrderRecordV2) MarshalJSON added in v1.0.117

func (o AccountOrderRecordV2) MarshalJSON() ([]byte, error)

func (*AccountOrderRecordV2) SetBrokerageOrderId added in v1.0.117

func (o *AccountOrderRecordV2) SetBrokerageOrderId(v string)

SetBrokerageOrderId gets a reference to the given string and assigns it to the BrokerageOrderId field.

func (*AccountOrderRecordV2) SetExecutionPrice added in v1.0.117

func (o *AccountOrderRecordV2) SetExecutionPrice(v float32)

SetExecutionPrice gets a reference to the given NullableFloat32 and assigns it to the ExecutionPrice field.

func (*AccountOrderRecordV2) SetExecutionPriceNil added in v1.0.117

func (o *AccountOrderRecordV2) SetExecutionPriceNil()

SetExecutionPriceNil sets the value for ExecutionPrice to be an explicit nil

func (*AccountOrderRecordV2) SetLegs added in v1.0.117

SetLegs gets a reference to the given []AccountOrderRecordLeg and assigns it to the Legs field.

func (*AccountOrderRecordV2) SetLimitPrice added in v1.0.117

func (o *AccountOrderRecordV2) SetLimitPrice(v float32)

SetLimitPrice gets a reference to the given NullableFloat32 and assigns it to the LimitPrice field.

func (*AccountOrderRecordV2) SetLimitPriceNil added in v1.0.117

func (o *AccountOrderRecordV2) SetLimitPriceNil()

SetLimitPriceNil sets the value for LimitPrice to be an explicit nil

func (*AccountOrderRecordV2) SetOrderType added in v1.0.117

func (o *AccountOrderRecordV2) SetOrderType(v string)

SetOrderType gets a reference to the given NullableString and assigns it to the OrderType field.

func (*AccountOrderRecordV2) SetOrderTypeNil added in v1.0.117

func (o *AccountOrderRecordV2) SetOrderTypeNil()

SetOrderTypeNil sets the value for OrderType to be an explicit nil

func (*AccountOrderRecordV2) SetQuoteCurrency added in v1.0.117

func (o *AccountOrderRecordV2) SetQuoteCurrency(v string)

SetQuoteCurrency gets a reference to the given string and assigns it to the QuoteCurrency field.

func (*AccountOrderRecordV2) SetStatus added in v1.0.117

SetStatus gets a reference to the given AccountOrderRecordStatus and assigns it to the Status field.

func (*AccountOrderRecordV2) SetStopPrice added in v1.0.117

func (o *AccountOrderRecordV2) SetStopPrice(v float32)

SetStopPrice gets a reference to the given NullableFloat32 and assigns it to the StopPrice field.

func (*AccountOrderRecordV2) SetStopPriceNil added in v1.0.117

func (o *AccountOrderRecordV2) SetStopPriceNil()

SetStopPriceNil sets the value for StopPrice to be an explicit nil

func (*AccountOrderRecordV2) SetTimeExecuted added in v1.0.117

func (o *AccountOrderRecordV2) SetTimeExecuted(v time.Time)

SetTimeExecuted gets a reference to the given NullableTime and assigns it to the TimeExecuted field.

func (*AccountOrderRecordV2) SetTimeExecutedNil added in v1.0.117

func (o *AccountOrderRecordV2) SetTimeExecutedNil()

SetTimeExecutedNil sets the value for TimeExecuted to be an explicit nil

func (*AccountOrderRecordV2) SetTimeInForce added in v1.0.117

func (o *AccountOrderRecordV2) SetTimeInForce(v string)

SetTimeInForce gets a reference to the given string and assigns it to the TimeInForce field.

func (*AccountOrderRecordV2) SetTimePlaced added in v1.0.117

func (o *AccountOrderRecordV2) SetTimePlaced(v time.Time)

SetTimePlaced gets a reference to the given time.Time and assigns it to the TimePlaced field.

func (*AccountOrderRecordV2) UnmarshalJSON added in v1.0.117

func (o *AccountOrderRecordV2) UnmarshalJSON(bytes []byte) (err error)

func (*AccountOrderRecordV2) UnsetExecutionPrice added in v1.0.117

func (o *AccountOrderRecordV2) UnsetExecutionPrice()

UnsetExecutionPrice ensures that no value is present for ExecutionPrice, not even an explicit nil

func (*AccountOrderRecordV2) UnsetLimitPrice added in v1.0.117

func (o *AccountOrderRecordV2) UnsetLimitPrice()

UnsetLimitPrice ensures that no value is present for LimitPrice, not even an explicit nil

func (*AccountOrderRecordV2) UnsetOrderType added in v1.0.117

func (o *AccountOrderRecordV2) UnsetOrderType()

UnsetOrderType ensures that no value is present for OrderType, not even an explicit nil

func (*AccountOrderRecordV2) UnsetStopPrice added in v1.0.117

func (o *AccountOrderRecordV2) UnsetStopPrice()

UnsetStopPrice ensures that no value is present for StopPrice, not even an explicit nil

func (*AccountOrderRecordV2) UnsetTimeExecuted added in v1.0.117

func (o *AccountOrderRecordV2) UnsetTimeExecuted()

UnsetTimeExecuted ensures that no value is present for TimeExecuted, not even an explicit nil

type AccountOrdersV2Response added in v1.0.117

type AccountOrdersV2Response struct {
	// List of orders returned by the endpoint.
	Orders               []AccountOrderRecordV2 `json:"orders"`
	AdditionalProperties map[string]interface{}
}

AccountOrdersV2Response Contains a standardized list of account orders in the V2 format.

func NewAccountOrdersV2Response added in v1.0.117

func NewAccountOrdersV2Response(orders []AccountOrderRecordV2) *AccountOrdersV2Response

NewAccountOrdersV2Response instantiates a new AccountOrdersV2Response object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAccountOrdersV2ResponseWithDefaults added in v1.0.117

func NewAccountOrdersV2ResponseWithDefaults() *AccountOrdersV2Response

NewAccountOrdersV2ResponseWithDefaults instantiates a new AccountOrdersV2Response object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AccountOrdersV2Response) GetOrders added in v1.0.117

GetOrders returns the Orders field value

func (*AccountOrdersV2Response) GetOrdersOk added in v1.0.117

func (o *AccountOrdersV2Response) GetOrdersOk() ([]AccountOrderRecordV2, bool)

GetOrdersOk returns a tuple with the Orders field value and a boolean to check if the value has been set.

func (AccountOrdersV2Response) MarshalJSON added in v1.0.117

func (o AccountOrdersV2Response) MarshalJSON() ([]byte, error)

func (*AccountOrdersV2Response) SetOrders added in v1.0.117

SetOrders sets field value

func (*AccountOrdersV2Response) UnmarshalJSON added in v1.0.117

func (o *AccountOrdersV2Response) UnmarshalJSON(bytes []byte) (err error)

type AccountSimple

type AccountSimple struct {
	// Unique identifier for the connected brokerage account. This is the UUID used to reference the account in SnapTrade.
	Id *string `json:"id,omitempty"`
	// A display name for the account. Either assigned by the user or by the brokerage itself. For certain brokerages, SnapTrade appends the brokerage name to the account name for clarity.
	Name *string `json:"name,omitempty"`
	// The account number assigned by the brokerage. For some brokerages, this field may be masked for security reasons.
	Number               *string            `json:"number,omitempty"`
	SyncStatus           *AccountSyncStatus `json:"sync_status,omitempty"`
	AdditionalProperties map[string]interface{}
}

AccountSimple A single account at a brokerage.

func NewAccountSimple

func NewAccountSimple() *AccountSimple

NewAccountSimple instantiates a new AccountSimple object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAccountSimpleWithDefaults

func NewAccountSimpleWithDefaults() *AccountSimple

NewAccountSimpleWithDefaults instantiates a new AccountSimple object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AccountSimple) GetId

func (o *AccountSimple) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*AccountSimple) GetIdOk

func (o *AccountSimple) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountSimple) GetName

func (o *AccountSimple) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*AccountSimple) GetNameOk

func (o *AccountSimple) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountSimple) GetNumber

func (o *AccountSimple) GetNumber() string

GetNumber returns the Number field value if set, zero value otherwise.

func (*AccountSimple) GetNumberOk

func (o *AccountSimple) GetNumberOk() (*string, bool)

GetNumberOk returns a tuple with the Number field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountSimple) GetSyncStatus

func (o *AccountSimple) GetSyncStatus() AccountSyncStatus

GetSyncStatus returns the SyncStatus field value if set, zero value otherwise.

func (*AccountSimple) GetSyncStatusOk

func (o *AccountSimple) GetSyncStatusOk() (*AccountSyncStatus, bool)

GetSyncStatusOk returns a tuple with the SyncStatus field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountSimple) HasId

func (o *AccountSimple) HasId() bool

HasId returns a boolean if a field has been set.

func (*AccountSimple) HasName

func (o *AccountSimple) HasName() bool

HasName returns a boolean if a field has been set.

func (*AccountSimple) HasNumber

func (o *AccountSimple) HasNumber() bool

HasNumber returns a boolean if a field has been set.

func (*AccountSimple) HasSyncStatus

func (o *AccountSimple) HasSyncStatus() bool

HasSyncStatus returns a boolean if a field has been set.

func (AccountSimple) MarshalJSON

func (o AccountSimple) MarshalJSON() ([]byte, error)

func (*AccountSimple) SetId

func (o *AccountSimple) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*AccountSimple) SetName

func (o *AccountSimple) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*AccountSimple) SetNumber

func (o *AccountSimple) SetNumber(v string)

SetNumber gets a reference to the given string and assigns it to the Number field.

func (*AccountSimple) SetSyncStatus

func (o *AccountSimple) SetSyncStatus(v AccountSyncStatus)

SetSyncStatus gets a reference to the given AccountSyncStatus and assigns it to the SyncStatus field.

func (*AccountSimple) UnmarshalJSON

func (o *AccountSimple) UnmarshalJSON(bytes []byte) (err error)

type AccountSyncStatus

type AccountSyncStatus struct {
	Transactions *TransactionsStatus `json:"transactions,omitempty"`
	Holdings     *HoldingsStatus     `json:"holdings,omitempty"`
}

AccountSyncStatus Contains status update for the account sync process between SnapTrade and the brokerage.

func NewAccountSyncStatus

func NewAccountSyncStatus() *AccountSyncStatus

NewAccountSyncStatus instantiates a new AccountSyncStatus object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAccountSyncStatusWithDefaults

func NewAccountSyncStatusWithDefaults() *AccountSyncStatus

NewAccountSyncStatusWithDefaults instantiates a new AccountSyncStatus object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AccountSyncStatus) GetHoldings

func (o *AccountSyncStatus) GetHoldings() HoldingsStatus

GetHoldings returns the Holdings field value if set, zero value otherwise.

func (*AccountSyncStatus) GetHoldingsOk

func (o *AccountSyncStatus) GetHoldingsOk() (*HoldingsStatus, bool)

GetHoldingsOk returns a tuple with the Holdings field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountSyncStatus) GetTransactions

func (o *AccountSyncStatus) GetTransactions() TransactionsStatus

GetTransactions returns the Transactions field value if set, zero value otherwise.

func (*AccountSyncStatus) GetTransactionsOk

func (o *AccountSyncStatus) GetTransactionsOk() (*TransactionsStatus, bool)

GetTransactionsOk returns a tuple with the Transactions field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountSyncStatus) HasHoldings

func (o *AccountSyncStatus) HasHoldings() bool

HasHoldings returns a boolean if a field has been set.

func (*AccountSyncStatus) HasTransactions

func (o *AccountSyncStatus) HasTransactions() bool

HasTransactions returns a boolean if a field has been set.

func (AccountSyncStatus) MarshalJSON

func (o AccountSyncStatus) MarshalJSON() ([]byte, error)

func (*AccountSyncStatus) SetHoldings

func (o *AccountSyncStatus) SetHoldings(v HoldingsStatus)

SetHoldings gets a reference to the given HoldingsStatus and assigns it to the Holdings field.

func (*AccountSyncStatus) SetTransactions

func (o *AccountSyncStatus) SetTransactions(v TransactionsStatus)

SetTransactions gets a reference to the given TransactionsStatus and assigns it to the Transactions field.

type AccountUniversalActivity added in v1.0.46

type AccountUniversalActivity struct {
	// Unique identifier for the transaction. This is the ID used to reference the transaction in SnapTrade.  Please note that this ID _can_ change if the transaction is deleted and re-added. Under normal circumstances, SnapTrade does not delete transactions. The only time this would happen is if SnapTrade re-fetches and reprocesses the data from the brokerage, which is rare. If you require a stable ID, please let us know and we can work with you to provide one.
	Id           *string                                      `json:"id,omitempty"`
	Symbol       NullableAccountUniversalActivitySymbol       `json:"symbol,omitempty"`
	OptionSymbol NullableAccountUniversalActivityOptionSymbol `json:"option_symbol,omitempty"`
	// The price of the security for the transaction. This is mostly applicable to `BUY`, `SELL`, and `DIVIDEND` transactions.
	Price *float32 `json:"price,omitempty"`
	// The number of units of the security for the transaction. This is mostly applicable to `BUY`, `SELL`, and `DIVIDEND` transactions.
	Units *float32 `json:"units,omitempty"`
	// The amount of the transaction denominated in `currency`. This can be positive or negative. In general, transactions that positively affect the account balance (like sell, deposits, dividends, etc) will have a positive amount, while transactions that negatively affect the account balance (like buy, withdrawals, fees, etc) will have a negative amount.
	Amount   NullableFloat32                   `json:"amount,omitempty"`
	Currency *AccountUniversalActivityCurrency `json:"currency,omitempty"`
	// A string representing the type of transaction. SnapTrade does a best effort to categorize the brokerage transaction types into a common set of values. Here are some of the most popular values:   - `BUY` - Asset bought.   - `SELL` - Asset sold.   - `DIVIDEND` - Dividend payout.   - `CONTRIBUTION` - Cash contribution.   - `WITHDRAWAL` - Cash withdrawal.   - `REI` - Dividend reinvestment.   - `STOCK_DIVIDEND` - A type of dividend where a company distributes shares instead of cash   - `INTEREST` - Interest deposited into the account.   - `FEE` - Fee withdrawn from the account.   - `TAX“ - A tax related fee.   - `OPTIONEXPIRATION` - Option expiration event.   - `OPTIONASSIGNMENT` - Option assignment event.   - `OPTIONEXERCISE` - Option exercise event.   - `TRANSFER` - Transfer of assets from one account to another.   - `SPLIT` - A stock share split.
	Type *string `json:"type,omitempty"`
	// If an option `BUY` or `SELL` transaction, this further specifies the type of action. The possible values are: - BUY_TO_OPEN - BUY_TO_CLOSE - SELL_TO_OPEN - SELL_TO_CLOSE
	OptionType *string `json:"option_type,omitempty"`
	// A human-readable description of the transaction. This is usually the brokerage's description of the transaction.
	Description *string `json:"description,omitempty"`
	// The recorded time for the transaction. The granularity of this timestamp depends on the brokerage. Some brokerages provide the exact time of the transaction, while others provide only the date. Please check the [integrations page](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=6fab8012ade6441fa0c6d9af9c55ce3a) for the specific brokerage to see the granularity of the timestamps. Note that even though the field is named `trade_date`, it can represent any type of transaction, not just trades.
	TradeDate NullableTime `json:"trade_date,omitempty"`
	// The date on which the transaction is settled.
	SettlementDate *time.Time `json:"settlement_date,omitempty"`
	// Any fee associated with the transaction if provided by the brokerage.
	Fee *float32 `json:"fee,omitempty"`
	// The forex conversion rate involved in the transaction if provided by the brokerage. Used in cases where securities of one currency are purchased in a different currency, and the forex conversion is automatic. In those cases, price, amount and fee will be in the top level currency (activity -> currency)
	FxRate NullableFloat32 `json:"fx_rate,omitempty"`
	// The institution that the transaction is associated with. This is usually the brokerage name.
	Institution *string `json:"institution,omitempty"`
	// Reference ID from brokerage used to identify related transactions. For example if an order comprises of several transactions (buy, fee, fx), they can be grouped if they share the same `external_reference_id`
	ExternalReferenceId  NullableString `json:"external_reference_id,omitempty"`
	AdditionalProperties map[string]interface{}
}

AccountUniversalActivity A transaction or activity from an institution

func NewAccountUniversalActivity added in v1.0.46

func NewAccountUniversalActivity() *AccountUniversalActivity

NewAccountUniversalActivity instantiates a new AccountUniversalActivity object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAccountUniversalActivityWithDefaults added in v1.0.46

func NewAccountUniversalActivityWithDefaults() *AccountUniversalActivity

NewAccountUniversalActivityWithDefaults instantiates a new AccountUniversalActivity object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AccountUniversalActivity) GetAmount added in v1.0.46

func (o *AccountUniversalActivity) GetAmount() float32

GetAmount returns the Amount field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AccountUniversalActivity) GetAmountOk added in v1.0.46

func (o *AccountUniversalActivity) GetAmountOk() (*float32, bool)

GetAmountOk returns a tuple with the Amount field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AccountUniversalActivity) GetCurrency added in v1.0.46

GetCurrency returns the Currency field value if set, zero value otherwise.

func (*AccountUniversalActivity) GetCurrencyOk added in v1.0.46

GetCurrencyOk returns a tuple with the Currency field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountUniversalActivity) GetDescription added in v1.0.46

func (o *AccountUniversalActivity) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*AccountUniversalActivity) GetDescriptionOk added in v1.0.46

func (o *AccountUniversalActivity) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountUniversalActivity) GetExternalReferenceId added in v1.0.46

func (o *AccountUniversalActivity) GetExternalReferenceId() string

GetExternalReferenceId returns the ExternalReferenceId field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AccountUniversalActivity) GetExternalReferenceIdOk added in v1.0.46

func (o *AccountUniversalActivity) GetExternalReferenceIdOk() (*string, bool)

GetExternalReferenceIdOk returns a tuple with the ExternalReferenceId field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AccountUniversalActivity) GetFee added in v1.0.46

func (o *AccountUniversalActivity) GetFee() float32

GetFee returns the Fee field value if set, zero value otherwise.

func (*AccountUniversalActivity) GetFeeOk added in v1.0.46

func (o *AccountUniversalActivity) GetFeeOk() (*float32, bool)

GetFeeOk returns a tuple with the Fee field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountUniversalActivity) GetFxRate added in v1.0.46

func (o *AccountUniversalActivity) GetFxRate() float32

GetFxRate returns the FxRate field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AccountUniversalActivity) GetFxRateOk added in v1.0.46

func (o *AccountUniversalActivity) GetFxRateOk() (*float32, bool)

GetFxRateOk returns a tuple with the FxRate field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AccountUniversalActivity) GetId added in v1.0.46

func (o *AccountUniversalActivity) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*AccountUniversalActivity) GetIdOk added in v1.0.46

func (o *AccountUniversalActivity) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountUniversalActivity) GetInstitution added in v1.0.46

func (o *AccountUniversalActivity) GetInstitution() string

GetInstitution returns the Institution field value if set, zero value otherwise.

func (*AccountUniversalActivity) GetInstitutionOk added in v1.0.46

func (o *AccountUniversalActivity) GetInstitutionOk() (*string, bool)

GetInstitutionOk returns a tuple with the Institution field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountUniversalActivity) GetOptionSymbol added in v1.0.46

GetOptionSymbol returns the OptionSymbol field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AccountUniversalActivity) GetOptionSymbolOk added in v1.0.46

GetOptionSymbolOk returns a tuple with the OptionSymbol field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AccountUniversalActivity) GetOptionType added in v1.0.46

func (o *AccountUniversalActivity) GetOptionType() string

GetOptionType returns the OptionType field value if set, zero value otherwise.

func (*AccountUniversalActivity) GetOptionTypeOk added in v1.0.46

func (o *AccountUniversalActivity) GetOptionTypeOk() (*string, bool)

GetOptionTypeOk returns a tuple with the OptionType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountUniversalActivity) GetPrice added in v1.0.46

func (o *AccountUniversalActivity) GetPrice() float32

GetPrice returns the Price field value if set, zero value otherwise.

func (*AccountUniversalActivity) GetPriceOk added in v1.0.46

func (o *AccountUniversalActivity) GetPriceOk() (*float32, bool)

GetPriceOk returns a tuple with the Price field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountUniversalActivity) GetSettlementDate added in v1.0.46

func (o *AccountUniversalActivity) GetSettlementDate() time.Time

GetSettlementDate returns the SettlementDate field value if set, zero value otherwise.

func (*AccountUniversalActivity) GetSettlementDateOk added in v1.0.46

func (o *AccountUniversalActivity) GetSettlementDateOk() (*time.Time, bool)

GetSettlementDateOk returns a tuple with the SettlementDate field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountUniversalActivity) GetSymbol added in v1.0.46

GetSymbol returns the Symbol field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AccountUniversalActivity) GetSymbolOk added in v1.0.46

GetSymbolOk returns a tuple with the Symbol field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AccountUniversalActivity) GetTradeDate added in v1.0.46

func (o *AccountUniversalActivity) GetTradeDate() time.Time

GetTradeDate returns the TradeDate field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AccountUniversalActivity) GetTradeDateOk added in v1.0.46

func (o *AccountUniversalActivity) GetTradeDateOk() (*time.Time, bool)

GetTradeDateOk returns a tuple with the TradeDate field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AccountUniversalActivity) GetType added in v1.0.46

func (o *AccountUniversalActivity) GetType() string

GetType returns the Type field value if set, zero value otherwise.

func (*AccountUniversalActivity) GetTypeOk added in v1.0.46

func (o *AccountUniversalActivity) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountUniversalActivity) GetUnits added in v1.0.46

func (o *AccountUniversalActivity) GetUnits() float32

GetUnits returns the Units field value if set, zero value otherwise.

func (*AccountUniversalActivity) GetUnitsOk added in v1.0.46

func (o *AccountUniversalActivity) GetUnitsOk() (*float32, bool)

GetUnitsOk returns a tuple with the Units field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountUniversalActivity) HasAmount added in v1.0.46

func (o *AccountUniversalActivity) HasAmount() bool

HasAmount returns a boolean if a field has been set.

func (*AccountUniversalActivity) HasCurrency added in v1.0.46

func (o *AccountUniversalActivity) HasCurrency() bool

HasCurrency returns a boolean if a field has been set.

func (*AccountUniversalActivity) HasDescription added in v1.0.46

func (o *AccountUniversalActivity) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*AccountUniversalActivity) HasExternalReferenceId added in v1.0.46

func (o *AccountUniversalActivity) HasExternalReferenceId() bool

HasExternalReferenceId returns a boolean if a field has been set.

func (*AccountUniversalActivity) HasFee added in v1.0.46

func (o *AccountUniversalActivity) HasFee() bool

HasFee returns a boolean if a field has been set.

func (*AccountUniversalActivity) HasFxRate added in v1.0.46

func (o *AccountUniversalActivity) HasFxRate() bool

HasFxRate returns a boolean if a field has been set.

func (*AccountUniversalActivity) HasId added in v1.0.46

func (o *AccountUniversalActivity) HasId() bool

HasId returns a boolean if a field has been set.

func (*AccountUniversalActivity) HasInstitution added in v1.0.46

func (o *AccountUniversalActivity) HasInstitution() bool

HasInstitution returns a boolean if a field has been set.

func (*AccountUniversalActivity) HasOptionSymbol added in v1.0.46

func (o *AccountUniversalActivity) HasOptionSymbol() bool

HasOptionSymbol returns a boolean if a field has been set.

func (*AccountUniversalActivity) HasOptionType added in v1.0.46

func (o *AccountUniversalActivity) HasOptionType() bool

HasOptionType returns a boolean if a field has been set.

func (*AccountUniversalActivity) HasPrice added in v1.0.46

func (o *AccountUniversalActivity) HasPrice() bool

HasPrice returns a boolean if a field has been set.

func (*AccountUniversalActivity) HasSettlementDate added in v1.0.46

func (o *AccountUniversalActivity) HasSettlementDate() bool

HasSettlementDate returns a boolean if a field has been set.

func (*AccountUniversalActivity) HasSymbol added in v1.0.46

func (o *AccountUniversalActivity) HasSymbol() bool

HasSymbol returns a boolean if a field has been set.

func (*AccountUniversalActivity) HasTradeDate added in v1.0.46

func (o *AccountUniversalActivity) HasTradeDate() bool

HasTradeDate returns a boolean if a field has been set.

func (*AccountUniversalActivity) HasType added in v1.0.46

func (o *AccountUniversalActivity) HasType() bool

HasType returns a boolean if a field has been set.

func (*AccountUniversalActivity) HasUnits added in v1.0.46

func (o *AccountUniversalActivity) HasUnits() bool

HasUnits returns a boolean if a field has been set.

func (AccountUniversalActivity) MarshalJSON added in v1.0.46

func (o AccountUniversalActivity) MarshalJSON() ([]byte, error)

func (*AccountUniversalActivity) SetAmount added in v1.0.46

func (o *AccountUniversalActivity) SetAmount(v float32)

SetAmount gets a reference to the given NullableFloat32 and assigns it to the Amount field.

func (*AccountUniversalActivity) SetAmountNil added in v1.0.46

func (o *AccountUniversalActivity) SetAmountNil()

SetAmountNil sets the value for Amount to be an explicit nil

func (*AccountUniversalActivity) SetCurrency added in v1.0.46

SetCurrency gets a reference to the given AccountUniversalActivityCurrency and assigns it to the Currency field.

func (*AccountUniversalActivity) SetDescription added in v1.0.46

func (o *AccountUniversalActivity) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*AccountUniversalActivity) SetExternalReferenceId added in v1.0.46

func (o *AccountUniversalActivity) SetExternalReferenceId(v string)

SetExternalReferenceId gets a reference to the given NullableString and assigns it to the ExternalReferenceId field.

func (*AccountUniversalActivity) SetExternalReferenceIdNil added in v1.0.46

func (o *AccountUniversalActivity) SetExternalReferenceIdNil()

SetExternalReferenceIdNil sets the value for ExternalReferenceId to be an explicit nil

func (*AccountUniversalActivity) SetFee added in v1.0.46

func (o *AccountUniversalActivity) SetFee(v float32)

SetFee gets a reference to the given float32 and assigns it to the Fee field.

func (*AccountUniversalActivity) SetFxRate added in v1.0.46

func (o *AccountUniversalActivity) SetFxRate(v float32)

SetFxRate gets a reference to the given NullableFloat32 and assigns it to the FxRate field.

func (*AccountUniversalActivity) SetFxRateNil added in v1.0.46

func (o *AccountUniversalActivity) SetFxRateNil()

SetFxRateNil sets the value for FxRate to be an explicit nil

func (*AccountUniversalActivity) SetId added in v1.0.46

func (o *AccountUniversalActivity) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*AccountUniversalActivity) SetInstitution added in v1.0.46

func (o *AccountUniversalActivity) SetInstitution(v string)

SetInstitution gets a reference to the given string and assigns it to the Institution field.

func (*AccountUniversalActivity) SetOptionSymbol added in v1.0.46

SetOptionSymbol gets a reference to the given NullableAccountUniversalActivityOptionSymbol and assigns it to the OptionSymbol field.

func (*AccountUniversalActivity) SetOptionSymbolNil added in v1.0.46

func (o *AccountUniversalActivity) SetOptionSymbolNil()

SetOptionSymbolNil sets the value for OptionSymbol to be an explicit nil

func (*AccountUniversalActivity) SetOptionType added in v1.0.46

func (o *AccountUniversalActivity) SetOptionType(v string)

SetOptionType gets a reference to the given string and assigns it to the OptionType field.

func (*AccountUniversalActivity) SetPrice added in v1.0.46

func (o *AccountUniversalActivity) SetPrice(v float32)

SetPrice gets a reference to the given float32 and assigns it to the Price field.

func (*AccountUniversalActivity) SetSettlementDate added in v1.0.46

func (o *AccountUniversalActivity) SetSettlementDate(v time.Time)

SetSettlementDate gets a reference to the given time.Time and assigns it to the SettlementDate field.

func (*AccountUniversalActivity) SetSymbol added in v1.0.46

SetSymbol gets a reference to the given NullableAccountUniversalActivitySymbol and assigns it to the Symbol field.

func (*AccountUniversalActivity) SetSymbolNil added in v1.0.46

func (o *AccountUniversalActivity) SetSymbolNil()

SetSymbolNil sets the value for Symbol to be an explicit nil

func (*AccountUniversalActivity) SetTradeDate added in v1.0.46

func (o *AccountUniversalActivity) SetTradeDate(v time.Time)

SetTradeDate gets a reference to the given NullableTime and assigns it to the TradeDate field.

func (*AccountUniversalActivity) SetTradeDateNil added in v1.0.46

func (o *AccountUniversalActivity) SetTradeDateNil()

SetTradeDateNil sets the value for TradeDate to be an explicit nil

func (*AccountUniversalActivity) SetType added in v1.0.46

func (o *AccountUniversalActivity) SetType(v string)

SetType gets a reference to the given string and assigns it to the Type field.

func (*AccountUniversalActivity) SetUnits added in v1.0.46

func (o *AccountUniversalActivity) SetUnits(v float32)

SetUnits gets a reference to the given float32 and assigns it to the Units field.

func (*AccountUniversalActivity) UnmarshalJSON added in v1.0.46

func (o *AccountUniversalActivity) UnmarshalJSON(bytes []byte) (err error)

func (*AccountUniversalActivity) UnsetAmount added in v1.0.46

func (o *AccountUniversalActivity) UnsetAmount()

UnsetAmount ensures that no value is present for Amount, not even an explicit nil

func (*AccountUniversalActivity) UnsetExternalReferenceId added in v1.0.46

func (o *AccountUniversalActivity) UnsetExternalReferenceId()

UnsetExternalReferenceId ensures that no value is present for ExternalReferenceId, not even an explicit nil

func (*AccountUniversalActivity) UnsetFxRate added in v1.0.46

func (o *AccountUniversalActivity) UnsetFxRate()

UnsetFxRate ensures that no value is present for FxRate, not even an explicit nil

func (*AccountUniversalActivity) UnsetOptionSymbol added in v1.0.46

func (o *AccountUniversalActivity) UnsetOptionSymbol()

UnsetOptionSymbol ensures that no value is present for OptionSymbol, not even an explicit nil

func (*AccountUniversalActivity) UnsetSymbol added in v1.0.46

func (o *AccountUniversalActivity) UnsetSymbol()

UnsetSymbol ensures that no value is present for Symbol, not even an explicit nil

func (*AccountUniversalActivity) UnsetTradeDate added in v1.0.46

func (o *AccountUniversalActivity) UnsetTradeDate()

UnsetTradeDate ensures that no value is present for TradeDate, not even an explicit nil

type AccountUniversalActivityCurrency added in v1.0.46

type AccountUniversalActivityCurrency struct {
	// Unique identifier for the currency. This is the UUID used to reference the currency in SnapTrade.
	Id *string `json:"id,omitempty"`
	// The ISO-4217 currency code for the currency.
	Code *string `json:"code,omitempty"`
	// A human-friendly name of the currency.
	Name *string `json:"name,omitempty"`
}

AccountUniversalActivityCurrency The currency in which the transaction `price` and `amount` is denominated.

func NewAccountUniversalActivityCurrency added in v1.0.46

func NewAccountUniversalActivityCurrency() *AccountUniversalActivityCurrency

NewAccountUniversalActivityCurrency instantiates a new AccountUniversalActivityCurrency object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAccountUniversalActivityCurrencyWithDefaults added in v1.0.46

func NewAccountUniversalActivityCurrencyWithDefaults() *AccountUniversalActivityCurrency

NewAccountUniversalActivityCurrencyWithDefaults instantiates a new AccountUniversalActivityCurrency object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AccountUniversalActivityCurrency) GetCode added in v1.0.46

GetCode returns the Code field value if set, zero value otherwise.

func (*AccountUniversalActivityCurrency) GetCodeOk added in v1.0.46

func (o *AccountUniversalActivityCurrency) GetCodeOk() (*string, bool)

GetCodeOk returns a tuple with the Code field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountUniversalActivityCurrency) GetId added in v1.0.46

GetId returns the Id field value if set, zero value otherwise.

func (*AccountUniversalActivityCurrency) GetIdOk added in v1.0.46

func (o *AccountUniversalActivityCurrency) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountUniversalActivityCurrency) GetName added in v1.0.46

GetName returns the Name field value if set, zero value otherwise.

func (*AccountUniversalActivityCurrency) GetNameOk added in v1.0.46

func (o *AccountUniversalActivityCurrency) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountUniversalActivityCurrency) HasCode added in v1.0.46

HasCode returns a boolean if a field has been set.

func (*AccountUniversalActivityCurrency) HasId added in v1.0.46

HasId returns a boolean if a field has been set.

func (*AccountUniversalActivityCurrency) HasName added in v1.0.46

HasName returns a boolean if a field has been set.

func (AccountUniversalActivityCurrency) MarshalJSON added in v1.0.46

func (o AccountUniversalActivityCurrency) MarshalJSON() ([]byte, error)

func (*AccountUniversalActivityCurrency) SetCode added in v1.0.46

SetCode gets a reference to the given string and assigns it to the Code field.

func (*AccountUniversalActivityCurrency) SetId added in v1.0.46

SetId gets a reference to the given string and assigns it to the Id field.

func (*AccountUniversalActivityCurrency) SetName added in v1.0.46

SetName gets a reference to the given string and assigns it to the Name field.

type AccountUniversalActivityOptionSymbol added in v1.0.46

type AccountUniversalActivityOptionSymbol struct {
	// Unique identifier for the option symbol within SnapTrade. This is the ID used to reference the symbol in SnapTrade API calls.
	Id string `json:"id"`
	// The [OCC symbol](https://en.wikipedia.org/wiki/Option_symbol) for the option.
	Ticker string `json:"ticker"`
	// The type of option. Either \"CALL\" or \"PUT\".
	OptionType string `json:"option_type"`
	// The option strike price.
	StrikePrice float32 `json:"strike_price"`
	// The option expiration date.
	ExpirationDate string `json:"expiration_date"`
	// Whether the option is a mini option. Mini options have 10 underlying shares per contract instead of the standard 100.
	IsMiniOption     *bool            `json:"is_mini_option,omitempty"`
	UnderlyingSymbol UnderlyingSymbol `json:"underlying_symbol"`
}

AccountUniversalActivityOptionSymbol The option security for the transaction. The field is `null` if the transaction is not related to an option security (like a deposit, withdrawal, fee, etc). SnapTrade does a best effort to map the brokerage's option symbol. In cases where the brokerage option symbol is not recognized, the field will be set to `null`.

func NewAccountUniversalActivityOptionSymbol added in v1.0.46

func NewAccountUniversalActivityOptionSymbol(id string, ticker string, optionType string, strikePrice float32, expirationDate string, underlyingSymbol UnderlyingSymbol) *AccountUniversalActivityOptionSymbol

NewAccountUniversalActivityOptionSymbol instantiates a new AccountUniversalActivityOptionSymbol object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAccountUniversalActivityOptionSymbolWithDefaults added in v1.0.46

func NewAccountUniversalActivityOptionSymbolWithDefaults() *AccountUniversalActivityOptionSymbol

NewAccountUniversalActivityOptionSymbolWithDefaults instantiates a new AccountUniversalActivityOptionSymbol object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AccountUniversalActivityOptionSymbol) GetExpirationDate added in v1.0.46

func (o *AccountUniversalActivityOptionSymbol) GetExpirationDate() string

GetExpirationDate returns the ExpirationDate field value

func (*AccountUniversalActivityOptionSymbol) GetExpirationDateOk added in v1.0.46

func (o *AccountUniversalActivityOptionSymbol) GetExpirationDateOk() (*string, bool)

GetExpirationDateOk returns a tuple with the ExpirationDate field value and a boolean to check if the value has been set.

func (*AccountUniversalActivityOptionSymbol) GetId added in v1.0.46

GetId returns the Id field value

func (*AccountUniversalActivityOptionSymbol) GetIdOk added in v1.0.46

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*AccountUniversalActivityOptionSymbol) GetIsMiniOption added in v1.0.46

func (o *AccountUniversalActivityOptionSymbol) GetIsMiniOption() bool

GetIsMiniOption returns the IsMiniOption field value if set, zero value otherwise.

func (*AccountUniversalActivityOptionSymbol) GetIsMiniOptionOk added in v1.0.46

func (o *AccountUniversalActivityOptionSymbol) GetIsMiniOptionOk() (*bool, bool)

GetIsMiniOptionOk returns a tuple with the IsMiniOption field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountUniversalActivityOptionSymbol) GetOptionType added in v1.0.46

func (o *AccountUniversalActivityOptionSymbol) GetOptionType() string

GetOptionType returns the OptionType field value

func (*AccountUniversalActivityOptionSymbol) GetOptionTypeOk added in v1.0.46

func (o *AccountUniversalActivityOptionSymbol) GetOptionTypeOk() (*string, bool)

GetOptionTypeOk returns a tuple with the OptionType field value and a boolean to check if the value has been set.

func (*AccountUniversalActivityOptionSymbol) GetStrikePrice added in v1.0.46

func (o *AccountUniversalActivityOptionSymbol) GetStrikePrice() float32

GetStrikePrice returns the StrikePrice field value

func (*AccountUniversalActivityOptionSymbol) GetStrikePriceOk added in v1.0.46

func (o *AccountUniversalActivityOptionSymbol) GetStrikePriceOk() (*float32, bool)

GetStrikePriceOk returns a tuple with the StrikePrice field value and a boolean to check if the value has been set.

func (*AccountUniversalActivityOptionSymbol) GetTicker added in v1.0.46

GetTicker returns the Ticker field value

func (*AccountUniversalActivityOptionSymbol) GetTickerOk added in v1.0.46

func (o *AccountUniversalActivityOptionSymbol) GetTickerOk() (*string, bool)

GetTickerOk returns a tuple with the Ticker field value and a boolean to check if the value has been set.

func (*AccountUniversalActivityOptionSymbol) GetUnderlyingSymbol added in v1.0.46

func (o *AccountUniversalActivityOptionSymbol) GetUnderlyingSymbol() UnderlyingSymbol

GetUnderlyingSymbol returns the UnderlyingSymbol field value

func (*AccountUniversalActivityOptionSymbol) GetUnderlyingSymbolOk added in v1.0.46

func (o *AccountUniversalActivityOptionSymbol) GetUnderlyingSymbolOk() (*UnderlyingSymbol, bool)

GetUnderlyingSymbolOk returns a tuple with the UnderlyingSymbol field value and a boolean to check if the value has been set.

func (*AccountUniversalActivityOptionSymbol) HasIsMiniOption added in v1.0.46

func (o *AccountUniversalActivityOptionSymbol) HasIsMiniOption() bool

HasIsMiniOption returns a boolean if a field has been set.

func (AccountUniversalActivityOptionSymbol) MarshalJSON added in v1.0.46

func (o AccountUniversalActivityOptionSymbol) MarshalJSON() ([]byte, error)

func (*AccountUniversalActivityOptionSymbol) SetExpirationDate added in v1.0.46

func (o *AccountUniversalActivityOptionSymbol) SetExpirationDate(v string)

SetExpirationDate sets field value

func (*AccountUniversalActivityOptionSymbol) SetId added in v1.0.46

SetId sets field value

func (*AccountUniversalActivityOptionSymbol) SetIsMiniOption added in v1.0.46

func (o *AccountUniversalActivityOptionSymbol) SetIsMiniOption(v bool)

SetIsMiniOption gets a reference to the given bool and assigns it to the IsMiniOption field.

func (*AccountUniversalActivityOptionSymbol) SetOptionType added in v1.0.46

func (o *AccountUniversalActivityOptionSymbol) SetOptionType(v string)

SetOptionType sets field value

func (*AccountUniversalActivityOptionSymbol) SetStrikePrice added in v1.0.46

func (o *AccountUniversalActivityOptionSymbol) SetStrikePrice(v float32)

SetStrikePrice sets field value

func (*AccountUniversalActivityOptionSymbol) SetTicker added in v1.0.46

SetTicker sets field value

func (*AccountUniversalActivityOptionSymbol) SetUnderlyingSymbol added in v1.0.46

func (o *AccountUniversalActivityOptionSymbol) SetUnderlyingSymbol(v UnderlyingSymbol)

SetUnderlyingSymbol sets field value

type AccountUniversalActivitySymbol added in v1.0.46

type AccountUniversalActivitySymbol struct {
	// Unique identifier for the symbol within SnapTrade. This is the ID used to reference the symbol in SnapTrade API calls.
	Id *string `json:"id,omitempty"`
	// The security's trading ticker symbol. For example \"AAPL\" for Apple Inc. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a '.TO' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix.
	Symbol *string `json:"symbol,omitempty"`
	// The raw symbol is `symbol` with the exchange suffix removed. For example, if `symbol` is \"VAB.TO\", then `raw_symbol` is \"VAB\".
	RawSymbol *string `json:"raw_symbol,omitempty"`
	// A human-readable description of the security. This is usually the company name or ETF name.
	Description NullableString  `json:"description,omitempty"`
	Currency    *SymbolCurrency `json:"currency,omitempty"`
	Exchange    *SymbolExchange `json:"exchange,omitempty"`
	Type        *SecurityType   `json:"type,omitempty"`
	// This identifier is unique per security per trading venue. See section 1.4.1 of the [FIGI Standard](https://www.openfigi.com/assets/local/figi-allocation-rules.pdf) for more information. This value should be the same as the `figi_code` in the `figi_instrument` child property.
	FigiCode       NullableString               `json:"figi_code,omitempty"`
	FigiInstrument NullableSymbolFigiInstrument `json:"figi_instrument,omitempty"`
}

AccountUniversalActivitySymbol The security for the transaction. The field is `null` if the transaction is not related to a security (like a deposit, withdrawal, fee, etc). SnapTrade does a best effort to map the brokerage's symbol. In cases where the brokerage symbol is not recognized, the field will be set to `null`.

func NewAccountUniversalActivitySymbol added in v1.0.46

func NewAccountUniversalActivitySymbol() *AccountUniversalActivitySymbol

NewAccountUniversalActivitySymbol instantiates a new AccountUniversalActivitySymbol object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAccountUniversalActivitySymbolWithDefaults added in v1.0.46

func NewAccountUniversalActivitySymbolWithDefaults() *AccountUniversalActivitySymbol

NewAccountUniversalActivitySymbolWithDefaults instantiates a new AccountUniversalActivitySymbol object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AccountUniversalActivitySymbol) GetCurrency added in v1.0.46

GetCurrency returns the Currency field value if set, zero value otherwise.

func (*AccountUniversalActivitySymbol) GetCurrencyOk added in v1.0.46

func (o *AccountUniversalActivitySymbol) GetCurrencyOk() (*SymbolCurrency, bool)

GetCurrencyOk returns a tuple with the Currency field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountUniversalActivitySymbol) GetDescription added in v1.0.46

func (o *AccountUniversalActivitySymbol) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AccountUniversalActivitySymbol) GetDescriptionOk added in v1.0.46

func (o *AccountUniversalActivitySymbol) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AccountUniversalActivitySymbol) GetExchange added in v1.0.46

GetExchange returns the Exchange field value if set, zero value otherwise.

func (*AccountUniversalActivitySymbol) GetExchangeOk added in v1.0.46

func (o *AccountUniversalActivitySymbol) GetExchangeOk() (*SymbolExchange, bool)

GetExchangeOk returns a tuple with the Exchange field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountUniversalActivitySymbol) GetFigiCode added in v1.0.46

func (o *AccountUniversalActivitySymbol) GetFigiCode() string

GetFigiCode returns the FigiCode field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AccountUniversalActivitySymbol) GetFigiCodeOk added in v1.0.46

func (o *AccountUniversalActivitySymbol) GetFigiCodeOk() (*string, bool)

GetFigiCodeOk returns a tuple with the FigiCode field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AccountUniversalActivitySymbol) GetFigiInstrument added in v1.0.46

GetFigiInstrument returns the FigiInstrument field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AccountUniversalActivitySymbol) GetFigiInstrumentOk added in v1.0.46

func (o *AccountUniversalActivitySymbol) GetFigiInstrumentOk() (*SymbolFigiInstrument, bool)

GetFigiInstrumentOk returns a tuple with the FigiInstrument field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AccountUniversalActivitySymbol) GetId added in v1.0.46

GetId returns the Id field value if set, zero value otherwise.

func (*AccountUniversalActivitySymbol) GetIdOk added in v1.0.46

func (o *AccountUniversalActivitySymbol) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountUniversalActivitySymbol) GetRawSymbol added in v1.0.46

func (o *AccountUniversalActivitySymbol) GetRawSymbol() string

GetRawSymbol returns the RawSymbol field value if set, zero value otherwise.

func (*AccountUniversalActivitySymbol) GetRawSymbolOk added in v1.0.46

func (o *AccountUniversalActivitySymbol) GetRawSymbolOk() (*string, bool)

GetRawSymbolOk returns a tuple with the RawSymbol field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountUniversalActivitySymbol) GetSymbol added in v1.0.46

func (o *AccountUniversalActivitySymbol) GetSymbol() string

GetSymbol returns the Symbol field value if set, zero value otherwise.

func (*AccountUniversalActivitySymbol) GetSymbolOk added in v1.0.46

func (o *AccountUniversalActivitySymbol) GetSymbolOk() (*string, bool)

GetSymbolOk returns a tuple with the Symbol field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountUniversalActivitySymbol) GetType added in v1.0.46

GetType returns the Type field value if set, zero value otherwise.

func (*AccountUniversalActivitySymbol) GetTypeOk added in v1.0.46

GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountUniversalActivitySymbol) HasCurrency added in v1.0.46

func (o *AccountUniversalActivitySymbol) HasCurrency() bool

HasCurrency returns a boolean if a field has been set.

func (*AccountUniversalActivitySymbol) HasDescription added in v1.0.46

func (o *AccountUniversalActivitySymbol) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*AccountUniversalActivitySymbol) HasExchange added in v1.0.46

func (o *AccountUniversalActivitySymbol) HasExchange() bool

HasExchange returns a boolean if a field has been set.

func (*AccountUniversalActivitySymbol) HasFigiCode added in v1.0.46

func (o *AccountUniversalActivitySymbol) HasFigiCode() bool

HasFigiCode returns a boolean if a field has been set.

func (*AccountUniversalActivitySymbol) HasFigiInstrument added in v1.0.46

func (o *AccountUniversalActivitySymbol) HasFigiInstrument() bool

HasFigiInstrument returns a boolean if a field has been set.

func (*AccountUniversalActivitySymbol) HasId added in v1.0.46

HasId returns a boolean if a field has been set.

func (*AccountUniversalActivitySymbol) HasRawSymbol added in v1.0.46

func (o *AccountUniversalActivitySymbol) HasRawSymbol() bool

HasRawSymbol returns a boolean if a field has been set.

func (*AccountUniversalActivitySymbol) HasSymbol added in v1.0.46

func (o *AccountUniversalActivitySymbol) HasSymbol() bool

HasSymbol returns a boolean if a field has been set.

func (*AccountUniversalActivitySymbol) HasType added in v1.0.46

func (o *AccountUniversalActivitySymbol) HasType() bool

HasType returns a boolean if a field has been set.

func (AccountUniversalActivitySymbol) MarshalJSON added in v1.0.46

func (o AccountUniversalActivitySymbol) MarshalJSON() ([]byte, error)

func (*AccountUniversalActivitySymbol) SetCurrency added in v1.0.46

SetCurrency gets a reference to the given SymbolCurrency and assigns it to the Currency field.

func (*AccountUniversalActivitySymbol) SetDescription added in v1.0.46

func (o *AccountUniversalActivitySymbol) SetDescription(v string)

SetDescription gets a reference to the given NullableString and assigns it to the Description field.

func (*AccountUniversalActivitySymbol) SetDescriptionNil added in v1.0.46

func (o *AccountUniversalActivitySymbol) SetDescriptionNil()

SetDescriptionNil sets the value for Description to be an explicit nil

func (*AccountUniversalActivitySymbol) SetExchange added in v1.0.46

SetExchange gets a reference to the given SymbolExchange and assigns it to the Exchange field.

func (*AccountUniversalActivitySymbol) SetFigiCode added in v1.0.46

func (o *AccountUniversalActivitySymbol) SetFigiCode(v string)

SetFigiCode gets a reference to the given NullableString and assigns it to the FigiCode field.

func (*AccountUniversalActivitySymbol) SetFigiCodeNil added in v1.0.46

func (o *AccountUniversalActivitySymbol) SetFigiCodeNil()

SetFigiCodeNil sets the value for FigiCode to be an explicit nil

func (*AccountUniversalActivitySymbol) SetFigiInstrument added in v1.0.46

func (o *AccountUniversalActivitySymbol) SetFigiInstrument(v SymbolFigiInstrument)

SetFigiInstrument gets a reference to the given NullableSymbolFigiInstrument and assigns it to the FigiInstrument field.

func (*AccountUniversalActivitySymbol) SetFigiInstrumentNil added in v1.0.46

func (o *AccountUniversalActivitySymbol) SetFigiInstrumentNil()

SetFigiInstrumentNil sets the value for FigiInstrument to be an explicit nil

func (*AccountUniversalActivitySymbol) SetId added in v1.0.46

SetId gets a reference to the given string and assigns it to the Id field.

func (*AccountUniversalActivitySymbol) SetRawSymbol added in v1.0.46

func (o *AccountUniversalActivitySymbol) SetRawSymbol(v string)

SetRawSymbol gets a reference to the given string and assigns it to the RawSymbol field.

func (*AccountUniversalActivitySymbol) SetSymbol added in v1.0.46

func (o *AccountUniversalActivitySymbol) SetSymbol(v string)

SetSymbol gets a reference to the given string and assigns it to the Symbol field.

func (*AccountUniversalActivitySymbol) SetType added in v1.0.46

SetType gets a reference to the given SecurityType and assigns it to the Type field.

func (*AccountUniversalActivitySymbol) UnsetDescription added in v1.0.46

func (o *AccountUniversalActivitySymbol) UnsetDescription()

UnsetDescription ensures that no value is present for Description, not even an explicit nil

func (*AccountUniversalActivitySymbol) UnsetFigiCode added in v1.0.46

func (o *AccountUniversalActivitySymbol) UnsetFigiCode()

UnsetFigiCode ensures that no value is present for FigiCode, not even an explicit nil

func (*AccountUniversalActivitySymbol) UnsetFigiInstrument added in v1.0.46

func (o *AccountUniversalActivitySymbol) UnsetFigiInstrument()

UnsetFigiInstrument ensures that no value is present for FigiInstrument, not even an explicit nil

type ActionStrict

type ActionStrict string

ActionStrict The action describes the intent or side of a trade. This is either `BUY` or `SELL`.

const (
	ACTIONSTRICT_BUY  ActionStrict = "BUY"
	ACTIONSTRICT_SELL ActionStrict = "SELL"
)

List of ActionStrict

func NewActionStrictFromValue

func NewActionStrictFromValue(v string) (*ActionStrict, error)

NewActionStrictFromValue returns a pointer to a valid ActionStrict for the value passed as argument, or an error if the value passed is not allowed by the enum

func (ActionStrict) IsValid

func (v ActionStrict) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (ActionStrict) Ptr

func (v ActionStrict) Ptr() *ActionStrict

Ptr returns reference to ActionStrict value

func (*ActionStrict) UnmarshalJSON

func (v *ActionStrict) UnmarshalJSON(src []byte) error

type ActionStrictWithOptions added in v1.0.18

type ActionStrictWithOptions string

ActionStrictWithOptions The action describes the intent or side of a trade. This is either `BUY` or `SELL` for Equity symbols or `BUY_TO_OPEN`, `BUY_TO_CLOSE`, `SELL_TO_OPEN` or `SELL_TO_CLOSE` for Options.

const (
	ACTIONSTRICTWITHOPTIONS_BUY           ActionStrictWithOptions = "BUY"
	ACTIONSTRICTWITHOPTIONS_SELL          ActionStrictWithOptions = "SELL"
	ACTIONSTRICTWITHOPTIONS_BUY_TO_OPEN   ActionStrictWithOptions = "BUY_TO_OPEN"
	ACTIONSTRICTWITHOPTIONS_BUY_TO_CLOSE  ActionStrictWithOptions = "BUY_TO_CLOSE"
	ACTIONSTRICTWITHOPTIONS_SELL_TO_OPEN  ActionStrictWithOptions = "SELL_TO_OPEN"
	ACTIONSTRICTWITHOPTIONS_SELL_TO_CLOSE ActionStrictWithOptions = "SELL_TO_CLOSE"
)

List of ActionStrictWithOptions

func NewActionStrictWithOptionsFromValue added in v1.0.18

func NewActionStrictWithOptionsFromValue(v string) (*ActionStrictWithOptions, error)

NewActionStrictWithOptionsFromValue returns a pointer to a valid ActionStrictWithOptions for the value passed as argument, or an error if the value passed is not allowed by the enum

func (ActionStrictWithOptions) IsValid added in v1.0.18

func (v ActionStrictWithOptions) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (ActionStrictWithOptions) Ptr added in v1.0.18

Ptr returns reference to ActionStrictWithOptions value

func (*ActionStrictWithOptions) UnmarshalJSON added in v1.0.18

func (v *ActionStrictWithOptions) UnmarshalJSON(src []byte) error

type AuthenticationApiDeleteSnapTradeUserRequest

type AuthenticationApiDeleteSnapTradeUserRequest struct {
	ApiService *AuthenticationApiService
	// contains filtered or unexported fields
}

func (AuthenticationApiDeleteSnapTradeUserRequest) Execute

type AuthenticationApiListSnapTradeUsersRequest

type AuthenticationApiListSnapTradeUsersRequest struct {
	ApiService *AuthenticationApiService
	// contains filtered or unexported fields
}

func (AuthenticationApiListSnapTradeUsersRequest) Execute

type AuthenticationApiLoginSnapTradeUserRequest

type AuthenticationApiLoginSnapTradeUserRequest struct {
	ApiService *AuthenticationApiService
	// contains filtered or unexported fields
}

func (AuthenticationApiLoginSnapTradeUserRequest) Execute

func (*AuthenticationApiLoginSnapTradeUserRequest) SnapTradeLoginUserRequestBody

func (r *AuthenticationApiLoginSnapTradeUserRequest) SnapTradeLoginUserRequestBody(snapTradeLoginUserRequestBody SnapTradeLoginUserRequestBody) *AuthenticationApiLoginSnapTradeUserRequest

type AuthenticationApiRegisterSnapTradeUserRequest

type AuthenticationApiRegisterSnapTradeUserRequest struct {
	ApiService *AuthenticationApiService
	// contains filtered or unexported fields
}

func (AuthenticationApiRegisterSnapTradeUserRequest) Execute

type AuthenticationApiResetSnapTradeUserSecretRequest

type AuthenticationApiResetSnapTradeUserSecretRequest struct {
	ApiService *AuthenticationApiService
	// contains filtered or unexported fields
}

func (AuthenticationApiResetSnapTradeUserSecretRequest) Execute

type AuthenticationApiService

type AuthenticationApiService service

AuthenticationApiService AuthenticationApi service

func (*AuthenticationApiService) DeleteSnapTradeUser

DeleteSnapTradeUser Delete user

Deletes a registered user and all associated data. This action is irreversible. This API is asynchronous and will return a 200 status code if the request is accepted. The user and all associated data will be queued for deletion. Once deleted, a `USER_DELETED` webhook will be sent.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param userId
@return AuthenticationApiDeleteSnapTradeUserRequest

func (*AuthenticationApiService) DeleteSnapTradeUserExecute

Execute executes the request

@return DeleteUserResponse

func (*AuthenticationApiService) ListSnapTradeUsers

ListSnapTradeUsers List all users

Returns a list of all registered user IDs. Please note that the response is not currently paginated.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return AuthenticationApiListSnapTradeUsersRequest

func (*AuthenticationApiService) ListSnapTradeUsersExecute

Execute executes the request

@return []string

func (*AuthenticationApiService) LoginSnapTradeUser

func (a *AuthenticationApiService) LoginSnapTradeUser(userId string, userSecret string) AuthenticationApiLoginSnapTradeUserRequest

LoginSnapTradeUser Generate Connection Portal URL

Authenticates a SnapTrade user and returns the Connection Portal URL used for connecting brokerage accounts. Please check [this guide](/docs/implement-connection-portal) for how to integrate the Connection Portal into your app.

Please note that the returned URL expires in 5 minutes.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param userId
@param userSecret
@return AuthenticationApiLoginSnapTradeUserRequest

func (*AuthenticationApiService) LoginSnapTradeUserExecute

Execute executes the request

@return AuthenticationLoginSnapTradeUser200Response

func (*AuthenticationApiService) RegisterSnapTradeUser

func (a *AuthenticationApiService) RegisterSnapTradeUser(snapTradeRegisterUserRequestBody SnapTradeRegisterUserRequestBody) AuthenticationApiRegisterSnapTradeUserRequest

RegisterSnapTradeUser Register user

Registers a new SnapTrade user under your Client ID. A user secret will be automatically generated for you and must be properly stored in your system. Most SnapTrade operations require a user ID and user secret to be passed in as parameters.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param snapTradeRegisterUserRequestBody
@return AuthenticationApiRegisterSnapTradeUserRequest

func (*AuthenticationApiService) RegisterSnapTradeUserExecute

Execute executes the request

@return UserIDandSecret

func (*AuthenticationApiService) ResetSnapTradeUserSecret

ResetSnapTradeUserSecret Rotate user secret

Rotates the secret for a SnapTrade user. You might use this if `userSecret` is compromised. Please note that if you call this endpoint and fail to save the new secret, you'll no longer be able to access any data for this user, and your only option will be to delete and recreate the user, then ask them to reconnect.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param userIDandSecret
@return AuthenticationApiResetSnapTradeUserSecretRequest

func (*AuthenticationApiService) ResetSnapTradeUserSecretExecute

Execute executes the request

@return UserIDandSecret

type AuthenticationLoginSnapTradeUser200Response

type AuthenticationLoginSnapTradeUser200Response struct {
	EncryptedResponse *EncryptedResponse
	LoginRedirectURI  *LoginRedirectURI
}

AuthenticationLoginSnapTradeUser200Response - struct for AuthenticationLoginSnapTradeUser200Response

func EncryptedResponseAsAuthenticationLoginSnapTradeUser200Response

func EncryptedResponseAsAuthenticationLoginSnapTradeUser200Response(v *EncryptedResponse) AuthenticationLoginSnapTradeUser200Response

EncryptedResponseAsAuthenticationLoginSnapTradeUser200Response is a convenience function that returns EncryptedResponse wrapped in AuthenticationLoginSnapTradeUser200Response

func LoginRedirectURIAsAuthenticationLoginSnapTradeUser200Response

func LoginRedirectURIAsAuthenticationLoginSnapTradeUser200Response(v *LoginRedirectURI) AuthenticationLoginSnapTradeUser200Response

LoginRedirectURIAsAuthenticationLoginSnapTradeUser200Response is a convenience function that returns LoginRedirectURI wrapped in AuthenticationLoginSnapTradeUser200Response

func (*AuthenticationLoginSnapTradeUser200Response) GetActualInstance

func (obj *AuthenticationLoginSnapTradeUser200Response) GetActualInstance() interface{}

Get the actual instance

func (AuthenticationLoginSnapTradeUser200Response) MarshalJSON

Marshal data from the first non-nil pointers in the struct to JSON

func (*AuthenticationLoginSnapTradeUser200Response) UnmarshalJSON

func (dst *AuthenticationLoginSnapTradeUser200Response) UnmarshalJSON(data []byte) error

Unmarshal JSON data into one of the pointers in the struct

type Balance

type Balance struct {
	Currency *BalanceCurrency `json:"currency,omitempty"`
	// The amount of available cash in the account denominated in the currency of the `currency` field.
	Cash NullableFloat32 `json:"cash,omitempty"`
	// Buying power only applies to margin accounts. For non-margin accounts, buying power should be the same as cash. Please note that this field is not always available for all brokerages.
	BuyingPower          NullableFloat32 `json:"buying_power,omitempty"`
	AdditionalProperties map[string]interface{}
}

Balance Holds balance information for a single currency in an account.

func NewBalance

func NewBalance() *Balance

NewBalance instantiates a new Balance object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewBalanceWithDefaults

func NewBalanceWithDefaults() *Balance

NewBalanceWithDefaults instantiates a new Balance object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Balance) GetBuyingPower

func (o *Balance) GetBuyingPower() float32

GetBuyingPower returns the BuyingPower field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Balance) GetBuyingPowerOk

func (o *Balance) GetBuyingPowerOk() (*float32, bool)

GetBuyingPowerOk returns a tuple with the BuyingPower field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Balance) GetCash

func (o *Balance) GetCash() float32

GetCash returns the Cash field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Balance) GetCashOk

func (o *Balance) GetCashOk() (*float32, bool)

GetCashOk returns a tuple with the Cash field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Balance) GetCurrency

func (o *Balance) GetCurrency() BalanceCurrency

GetCurrency returns the Currency field value if set, zero value otherwise.

func (*Balance) GetCurrencyOk

func (o *Balance) GetCurrencyOk() (*BalanceCurrency, bool)

GetCurrencyOk returns a tuple with the Currency field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Balance) HasBuyingPower

func (o *Balance) HasBuyingPower() bool

HasBuyingPower returns a boolean if a field has been set.

func (*Balance) HasCash

func (o *Balance) HasCash() bool

HasCash returns a boolean if a field has been set.

func (*Balance) HasCurrency

func (o *Balance) HasCurrency() bool

HasCurrency returns a boolean if a field has been set.

func (Balance) MarshalJSON

func (o Balance) MarshalJSON() ([]byte, error)

func (*Balance) SetBuyingPower

func (o *Balance) SetBuyingPower(v float32)

SetBuyingPower gets a reference to the given NullableFloat32 and assigns it to the BuyingPower field.

func (*Balance) SetBuyingPowerNil

func (o *Balance) SetBuyingPowerNil()

SetBuyingPowerNil sets the value for BuyingPower to be an explicit nil

func (*Balance) SetCash

func (o *Balance) SetCash(v float32)

SetCash gets a reference to the given NullableFloat32 and assigns it to the Cash field.

func (*Balance) SetCashNil

func (o *Balance) SetCashNil()

SetCashNil sets the value for Cash to be an explicit nil

func (*Balance) SetCurrency

func (o *Balance) SetCurrency(v BalanceCurrency)

SetCurrency gets a reference to the given BalanceCurrency and assigns it to the Currency field.

func (*Balance) UnmarshalJSON

func (o *Balance) UnmarshalJSON(bytes []byte) (err error)

func (*Balance) UnsetBuyingPower

func (o *Balance) UnsetBuyingPower()

UnsetBuyingPower ensures that no value is present for BuyingPower, not even an explicit nil

func (*Balance) UnsetCash

func (o *Balance) UnsetCash()

UnsetCash ensures that no value is present for Cash, not even an explicit nil

type BalanceCurrency added in v1.0.5

type BalanceCurrency struct {
	// Unique identifier for the currency. This is the UUID used to reference the currency in SnapTrade.
	Id *string `json:"id,omitempty"`
	// The ISO-4217 currency code for the currency.
	Code *string `json:"code,omitempty"`
	// A human-friendly name of the currency.
	Name *string `json:"name,omitempty"`
}

BalanceCurrency The currency of the balance. This applies to both `cash` and `buying_power`.

func NewBalanceCurrency added in v1.0.5

func NewBalanceCurrency() *BalanceCurrency

NewBalanceCurrency instantiates a new BalanceCurrency object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewBalanceCurrencyWithDefaults added in v1.0.5

func NewBalanceCurrencyWithDefaults() *BalanceCurrency

NewBalanceCurrencyWithDefaults instantiates a new BalanceCurrency object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*BalanceCurrency) GetCode added in v1.0.5

func (o *BalanceCurrency) GetCode() string

GetCode returns the Code field value if set, zero value otherwise.

func (*BalanceCurrency) GetCodeOk added in v1.0.5

func (o *BalanceCurrency) GetCodeOk() (*string, bool)

GetCodeOk returns a tuple with the Code field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BalanceCurrency) GetId added in v1.0.5

func (o *BalanceCurrency) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*BalanceCurrency) GetIdOk added in v1.0.5

func (o *BalanceCurrency) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BalanceCurrency) GetName added in v1.0.5

func (o *BalanceCurrency) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*BalanceCurrency) GetNameOk added in v1.0.5

func (o *BalanceCurrency) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BalanceCurrency) HasCode added in v1.0.5

func (o *BalanceCurrency) HasCode() bool

HasCode returns a boolean if a field has been set.

func (*BalanceCurrency) HasId added in v1.0.5

func (o *BalanceCurrency) HasId() bool

HasId returns a boolean if a field has been set.

func (*BalanceCurrency) HasName added in v1.0.5

func (o *BalanceCurrency) HasName() bool

HasName returns a boolean if a field has been set.

func (BalanceCurrency) MarshalJSON added in v1.0.5

func (o BalanceCurrency) MarshalJSON() ([]byte, error)

func (*BalanceCurrency) SetCode added in v1.0.5

func (o *BalanceCurrency) SetCode(v string)

SetCode gets a reference to the given string and assigns it to the Code field.

func (*BalanceCurrency) SetId added in v1.0.5

func (o *BalanceCurrency) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*BalanceCurrency) SetName added in v1.0.5

func (o *BalanceCurrency) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type Brokerage

type Brokerage struct {
	// Unique identifier for the brokerage firm. This is the UUID used to reference the brokerage in SnapTrade.
	Id *string `json:"id,omitempty"`
	// A short, unique identifier for the brokerage. It is usually the name of the brokerage in capital letters and will never change.
	Slug *string `json:"slug,omitempty"`
	// Full name of the brokerage.
	Name *string `json:"name,omitempty"`
	// A display-friendly name of the brokerage.
	DisplayName *string `json:"display_name,omitempty"`
	// A brief description of the brokerage.
	Description *string `json:"description,omitempty"`
	// URL to the brokerage's logo.
	AwsS3LogoUrl *string `json:"aws_s3_logo_url,omitempty"`
	// URL to the brokerage's logo in square format.
	AwsS3SquareLogoUrl NullableString `json:"aws_s3_square_logo_url,omitempty"`
	// URL to the brokerage's website.
	Url *string `json:"url,omitempty"`
	// Whether the brokerage is enabled in SnapTrade. A disabled brokerage will not be available for new connections.
	Enabled *bool `json:"enabled,omitempty"`
	// Whether the brokerage is currently in maintenance mode. A brokerage in maintenance mode will not be available for new connections.
	MaintenanceMode *bool `json:"maintenance_mode,omitempty"`
	// Whether the brokerage allows trading through SnapTrade.
	AllowsTrading NullableBool `json:"allows_trading,omitempty"`
	// This field is deprecated. Please contact us if you have a valid use case for it.
	// Deprecated
	AllowsFractionalUnits NullableBool `json:"allows_fractional_units,omitempty"`
	// This field is deprecated. Please contact us if you have a valid use case for it.
	// Deprecated
	HasReporting NullableBool `json:"has_reporting,omitempty"`
	// This field is deprecated. Please contact us if you have a valid use case for it.
	// Deprecated
	IsRealTimeConnection *bool          `json:"is_real_time_connection,omitempty"`
	BrokerageType        *BrokerageType `json:"brokerage_type,omitempty"`
	// This field is deprecated. Please contact us if you have a valid use case for it.
	// Deprecated
	Exchanges []interface{} `json:"exchanges,omitempty"`
	// This field is deprecated.
	// Deprecated
	OpenUrl              NullableString `json:"open_url,omitempty"`
	AdditionalProperties map[string]interface{}
}

Brokerage Describes a brokerage that SnapTrade supports.

func NewBrokerage

func NewBrokerage() *Brokerage

NewBrokerage instantiates a new Brokerage object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewBrokerageWithDefaults

func NewBrokerageWithDefaults() *Brokerage

NewBrokerageWithDefaults instantiates a new Brokerage object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Brokerage) GetAllowsFractionalUnits

func (o *Brokerage) GetAllowsFractionalUnits() bool

GetAllowsFractionalUnits returns the AllowsFractionalUnits field value if set, zero value otherwise (both if not set or set to explicit null). Deprecated

func (*Brokerage) GetAllowsFractionalUnitsOk

func (o *Brokerage) GetAllowsFractionalUnitsOk() (*bool, bool)

GetAllowsFractionalUnitsOk returns a tuple with the AllowsFractionalUnits field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned Deprecated

func (*Brokerage) GetAllowsTrading

func (o *Brokerage) GetAllowsTrading() bool

GetAllowsTrading returns the AllowsTrading field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Brokerage) GetAllowsTradingOk

func (o *Brokerage) GetAllowsTradingOk() (*bool, bool)

GetAllowsTradingOk returns a tuple with the AllowsTrading field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Brokerage) GetAwsS3LogoUrl

func (o *Brokerage) GetAwsS3LogoUrl() string

GetAwsS3LogoUrl returns the AwsS3LogoUrl field value if set, zero value otherwise.

func (*Brokerage) GetAwsS3LogoUrlOk

func (o *Brokerage) GetAwsS3LogoUrlOk() (*string, bool)

GetAwsS3LogoUrlOk returns a tuple with the AwsS3LogoUrl field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Brokerage) GetAwsS3SquareLogoUrl

func (o *Brokerage) GetAwsS3SquareLogoUrl() string

GetAwsS3SquareLogoUrl returns the AwsS3SquareLogoUrl field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Brokerage) GetAwsS3SquareLogoUrlOk

func (o *Brokerage) GetAwsS3SquareLogoUrlOk() (*string, bool)

GetAwsS3SquareLogoUrlOk returns a tuple with the AwsS3SquareLogoUrl field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Brokerage) GetBrokerageType

func (o *Brokerage) GetBrokerageType() BrokerageType

GetBrokerageType returns the BrokerageType field value if set, zero value otherwise.

func (*Brokerage) GetBrokerageTypeOk

func (o *Brokerage) GetBrokerageTypeOk() (*BrokerageType, bool)

GetBrokerageTypeOk returns a tuple with the BrokerageType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Brokerage) GetDescription

func (o *Brokerage) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*Brokerage) GetDescriptionOk

func (o *Brokerage) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Brokerage) GetDisplayName

func (o *Brokerage) GetDisplayName() string

GetDisplayName returns the DisplayName field value if set, zero value otherwise.

func (*Brokerage) GetDisplayNameOk

func (o *Brokerage) GetDisplayNameOk() (*string, bool)

GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Brokerage) GetEnabled

func (o *Brokerage) GetEnabled() bool

GetEnabled returns the Enabled field value if set, zero value otherwise.

func (*Brokerage) GetEnabledOk

func (o *Brokerage) GetEnabledOk() (*bool, bool)

GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Brokerage) GetExchanges

func (o *Brokerage) GetExchanges() []interface{}

GetExchanges returns the Exchanges field value if set, zero value otherwise. Deprecated

func (*Brokerage) GetExchangesOk

func (o *Brokerage) GetExchangesOk() ([]interface{}, bool)

GetExchangesOk returns a tuple with the Exchanges field value if set, nil otherwise and a boolean to check if the value has been set. Deprecated

func (*Brokerage) GetHasReporting

func (o *Brokerage) GetHasReporting() bool

GetHasReporting returns the HasReporting field value if set, zero value otherwise (both if not set or set to explicit null). Deprecated

func (*Brokerage) GetHasReportingOk

func (o *Brokerage) GetHasReportingOk() (*bool, bool)

GetHasReportingOk returns a tuple with the HasReporting field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned Deprecated

func (*Brokerage) GetId

func (o *Brokerage) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*Brokerage) GetIdOk

func (o *Brokerage) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Brokerage) GetIsRealTimeConnection

func (o *Brokerage) GetIsRealTimeConnection() bool

GetIsRealTimeConnection returns the IsRealTimeConnection field value if set, zero value otherwise. Deprecated

func (*Brokerage) GetIsRealTimeConnectionOk

func (o *Brokerage) GetIsRealTimeConnectionOk() (*bool, bool)

GetIsRealTimeConnectionOk returns a tuple with the IsRealTimeConnection field value if set, nil otherwise and a boolean to check if the value has been set. Deprecated

func (*Brokerage) GetMaintenanceMode

func (o *Brokerage) GetMaintenanceMode() bool

GetMaintenanceMode returns the MaintenanceMode field value if set, zero value otherwise.

func (*Brokerage) GetMaintenanceModeOk

func (o *Brokerage) GetMaintenanceModeOk() (*bool, bool)

GetMaintenanceModeOk returns a tuple with the MaintenanceMode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Brokerage) GetName

func (o *Brokerage) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*Brokerage) GetNameOk

func (o *Brokerage) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Brokerage) GetOpenUrl

func (o *Brokerage) GetOpenUrl() string

GetOpenUrl returns the OpenUrl field value if set, zero value otherwise (both if not set or set to explicit null). Deprecated

func (*Brokerage) GetOpenUrlOk

func (o *Brokerage) GetOpenUrlOk() (*string, bool)

GetOpenUrlOk returns a tuple with the OpenUrl field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned Deprecated

func (*Brokerage) GetSlug

func (o *Brokerage) GetSlug() string

GetSlug returns the Slug field value if set, zero value otherwise.

func (*Brokerage) GetSlugOk

func (o *Brokerage) GetSlugOk() (*string, bool)

GetSlugOk returns a tuple with the Slug field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Brokerage) GetUrl

func (o *Brokerage) GetUrl() string

GetUrl returns the Url field value if set, zero value otherwise.

func (*Brokerage) GetUrlOk

func (o *Brokerage) GetUrlOk() (*string, bool)

GetUrlOk returns a tuple with the Url field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Brokerage) HasAllowsFractionalUnits

func (o *Brokerage) HasAllowsFractionalUnits() bool

HasAllowsFractionalUnits returns a boolean if a field has been set.

func (*Brokerage) HasAllowsTrading

func (o *Brokerage) HasAllowsTrading() bool

HasAllowsTrading returns a boolean if a field has been set.

func (*Brokerage) HasAwsS3LogoUrl

func (o *Brokerage) HasAwsS3LogoUrl() bool

HasAwsS3LogoUrl returns a boolean if a field has been set.

func (*Brokerage) HasAwsS3SquareLogoUrl

func (o *Brokerage) HasAwsS3SquareLogoUrl() bool

HasAwsS3SquareLogoUrl returns a boolean if a field has been set.

func (*Brokerage) HasBrokerageType

func (o *Brokerage) HasBrokerageType() bool

HasBrokerageType returns a boolean if a field has been set.

func (*Brokerage) HasDescription

func (o *Brokerage) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*Brokerage) HasDisplayName

func (o *Brokerage) HasDisplayName() bool

HasDisplayName returns a boolean if a field has been set.

func (*Brokerage) HasEnabled

func (o *Brokerage) HasEnabled() bool

HasEnabled returns a boolean if a field has been set.

func (*Brokerage) HasExchanges

func (o *Brokerage) HasExchanges() bool

HasExchanges returns a boolean if a field has been set.

func (*Brokerage) HasHasReporting

func (o *Brokerage) HasHasReporting() bool

HasHasReporting returns a boolean if a field has been set.

func (*Brokerage) HasId

func (o *Brokerage) HasId() bool

HasId returns a boolean if a field has been set.

func (*Brokerage) HasIsRealTimeConnection

func (o *Brokerage) HasIsRealTimeConnection() bool

HasIsRealTimeConnection returns a boolean if a field has been set.

func (*Brokerage) HasMaintenanceMode

func (o *Brokerage) HasMaintenanceMode() bool

HasMaintenanceMode returns a boolean if a field has been set.

func (*Brokerage) HasName

func (o *Brokerage) HasName() bool

HasName returns a boolean if a field has been set.

func (*Brokerage) HasOpenUrl

func (o *Brokerage) HasOpenUrl() bool

HasOpenUrl returns a boolean if a field has been set.

func (*Brokerage) HasSlug

func (o *Brokerage) HasSlug() bool

HasSlug returns a boolean if a field has been set.

func (*Brokerage) HasUrl

func (o *Brokerage) HasUrl() bool

HasUrl returns a boolean if a field has been set.

func (Brokerage) MarshalJSON

func (o Brokerage) MarshalJSON() ([]byte, error)

func (*Brokerage) SetAllowsFractionalUnits

func (o *Brokerage) SetAllowsFractionalUnits(v bool)

SetAllowsFractionalUnits gets a reference to the given NullableBool and assigns it to the AllowsFractionalUnits field. Deprecated

func (*Brokerage) SetAllowsFractionalUnitsNil

func (o *Brokerage) SetAllowsFractionalUnitsNil()

SetAllowsFractionalUnitsNil sets the value for AllowsFractionalUnits to be an explicit nil

func (*Brokerage) SetAllowsTrading

func (o *Brokerage) SetAllowsTrading(v bool)

SetAllowsTrading gets a reference to the given NullableBool and assigns it to the AllowsTrading field.

func (*Brokerage) SetAllowsTradingNil

func (o *Brokerage) SetAllowsTradingNil()

SetAllowsTradingNil sets the value for AllowsTrading to be an explicit nil

func (*Brokerage) SetAwsS3LogoUrl

func (o *Brokerage) SetAwsS3LogoUrl(v string)

SetAwsS3LogoUrl gets a reference to the given string and assigns it to the AwsS3LogoUrl field.

func (*Brokerage) SetAwsS3SquareLogoUrl

func (o *Brokerage) SetAwsS3SquareLogoUrl(v string)

SetAwsS3SquareLogoUrl gets a reference to the given NullableString and assigns it to the AwsS3SquareLogoUrl field.

func (*Brokerage) SetAwsS3SquareLogoUrlNil

func (o *Brokerage) SetAwsS3SquareLogoUrlNil()

SetAwsS3SquareLogoUrlNil sets the value for AwsS3SquareLogoUrl to be an explicit nil

func (*Brokerage) SetBrokerageType

func (o *Brokerage) SetBrokerageType(v BrokerageType)

SetBrokerageType gets a reference to the given BrokerageType and assigns it to the BrokerageType field.

func (*Brokerage) SetDescription

func (o *Brokerage) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*Brokerage) SetDisplayName

func (o *Brokerage) SetDisplayName(v string)

SetDisplayName gets a reference to the given string and assigns it to the DisplayName field.

func (*Brokerage) SetEnabled

func (o *Brokerage) SetEnabled(v bool)

SetEnabled gets a reference to the given bool and assigns it to the Enabled field.

func (*Brokerage) SetExchanges

func (o *Brokerage) SetExchanges(v []interface{})

SetExchanges gets a reference to the given []interface{} and assigns it to the Exchanges field. Deprecated

func (*Brokerage) SetHasReporting

func (o *Brokerage) SetHasReporting(v bool)

SetHasReporting gets a reference to the given NullableBool and assigns it to the HasReporting field. Deprecated

func (*Brokerage) SetHasReportingNil

func (o *Brokerage) SetHasReportingNil()

SetHasReportingNil sets the value for HasReporting to be an explicit nil

func (*Brokerage) SetId

func (o *Brokerage) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*Brokerage) SetIsRealTimeConnection

func (o *Brokerage) SetIsRealTimeConnection(v bool)

SetIsRealTimeConnection gets a reference to the given bool and assigns it to the IsRealTimeConnection field. Deprecated

func (*Brokerage) SetMaintenanceMode

func (o *Brokerage) SetMaintenanceMode(v bool)

SetMaintenanceMode gets a reference to the given bool and assigns it to the MaintenanceMode field.

func (*Brokerage) SetName

func (o *Brokerage) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*Brokerage) SetOpenUrl

func (o *Brokerage) SetOpenUrl(v string)

SetOpenUrl gets a reference to the given NullableString and assigns it to the OpenUrl field. Deprecated

func (*Brokerage) SetOpenUrlNil

func (o *Brokerage) SetOpenUrlNil()

SetOpenUrlNil sets the value for OpenUrl to be an explicit nil

func (*Brokerage) SetSlug

func (o *Brokerage) SetSlug(v string)

SetSlug gets a reference to the given string and assigns it to the Slug field.

func (*Brokerage) SetUrl

func (o *Brokerage) SetUrl(v string)

SetUrl gets a reference to the given string and assigns it to the Url field.

func (*Brokerage) UnmarshalJSON

func (o *Brokerage) UnmarshalJSON(bytes []byte) (err error)

func (*Brokerage) UnsetAllowsFractionalUnits

func (o *Brokerage) UnsetAllowsFractionalUnits()

UnsetAllowsFractionalUnits ensures that no value is present for AllowsFractionalUnits, not even an explicit nil

func (*Brokerage) UnsetAllowsTrading

func (o *Brokerage) UnsetAllowsTrading()

UnsetAllowsTrading ensures that no value is present for AllowsTrading, not even an explicit nil

func (*Brokerage) UnsetAwsS3SquareLogoUrl

func (o *Brokerage) UnsetAwsS3SquareLogoUrl()

UnsetAwsS3SquareLogoUrl ensures that no value is present for AwsS3SquareLogoUrl, not even an explicit nil

func (*Brokerage) UnsetHasReporting

func (o *Brokerage) UnsetHasReporting()

UnsetHasReporting ensures that no value is present for HasReporting, not even an explicit nil

func (*Brokerage) UnsetOpenUrl

func (o *Brokerage) UnsetOpenUrl()

UnsetOpenUrl ensures that no value is present for OpenUrl, not even an explicit nil

type BrokerageAuthorization

type BrokerageAuthorization struct {
	// Unique identifier for the connection. This is the UUID used to reference the connection in SnapTrade.
	Id *string `json:"id,omitempty"`
	// Timestamp of when the connection was established in SnapTrade.
	CreatedDate *time.Time `json:"created_date,omitempty"`
	Brokerage   *Brokerage `json:"brokerage,omitempty"`
	// A short, human-readable name for the connection.
	Name *string `json:"name,omitempty"`
	// Whether the connection is read-only or trade-enabled. A read-only connection can only be used to fetch data, while a trade-enabled connection can be used to place trades. Valid values are `read` and `trade`.
	Type *string `json:"type,omitempty"`
	// Whether the connection is disabled. A disabled connection can no longer access the latest data from the brokerage, but will continue to return the last cached state. A connection can become disabled for many reasons and differs by brokerage. Here are some common scenarios:  - The user has changed their username or password at the brokerage. - The user has explicitly removed the access grant at the brokerage. - The session has expired at the brokerage and now requires explicit user re-authentication.  Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
	Disabled *bool `json:"disabled,omitempty"`
	// Timestamp of when the connection was disabled in SnapTrade.
	DisabledDate NullableTime `json:"disabled_date,omitempty"`
	// Additional data about the connection. This information is specific to the brokerage and there's no standard format for this data. This field is deprecated and subject to removal in a future version.
	// Deprecated
	Meta map[string]interface{} `json:"meta,omitempty"`
	// Timestamp of when the connection was last updated in SnapTrade. This field is deprecated. Please let us know if you have a valid use case for this field.
	// Deprecated
	UpdatedDate *time.Time `json:"updated_date,omitempty"`
	// Whether the connection is eligible for a payout.
	IsEligibleForPayout  *bool `json:"is_eligible_for_payout,omitempty"`
	AdditionalProperties map[string]interface{}
}

BrokerageAuthorization A single connection with a brokerage. Note that `Connection` and `Brokerage Authorization` are interchangeable, but the term `Connection` is preferred and used in the doc for consistency. A connection is usually tied to a single login at a brokerage. A single connection can contain multiple brokerage accounts. SnapTrade performs de-duping on connections for a given user. If the user has an existing connection with the brokerage, when connecting the brokerage with the same credentials, SnapTrade will return the existing connection instead of creating a new one.

func NewBrokerageAuthorization

func NewBrokerageAuthorization() *BrokerageAuthorization

NewBrokerageAuthorization instantiates a new BrokerageAuthorization object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewBrokerageAuthorizationWithDefaults

func NewBrokerageAuthorizationWithDefaults() *BrokerageAuthorization

NewBrokerageAuthorizationWithDefaults instantiates a new BrokerageAuthorization object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*BrokerageAuthorization) GetBrokerage

func (o *BrokerageAuthorization) GetBrokerage() Brokerage

GetBrokerage returns the Brokerage field value if set, zero value otherwise.

func (*BrokerageAuthorization) GetBrokerageOk

func (o *BrokerageAuthorization) GetBrokerageOk() (*Brokerage, bool)

GetBrokerageOk returns a tuple with the Brokerage field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BrokerageAuthorization) GetCreatedDate

func (o *BrokerageAuthorization) GetCreatedDate() time.Time

GetCreatedDate returns the CreatedDate field value if set, zero value otherwise.

func (*BrokerageAuthorization) GetCreatedDateOk

func (o *BrokerageAuthorization) GetCreatedDateOk() (*time.Time, bool)

GetCreatedDateOk returns a tuple with the CreatedDate field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BrokerageAuthorization) GetDisabled

func (o *BrokerageAuthorization) GetDisabled() bool

GetDisabled returns the Disabled field value if set, zero value otherwise.

func (*BrokerageAuthorization) GetDisabledDate

func (o *BrokerageAuthorization) GetDisabledDate() time.Time

GetDisabledDate returns the DisabledDate field value if set, zero value otherwise (both if not set or set to explicit null).

func (*BrokerageAuthorization) GetDisabledDateOk

func (o *BrokerageAuthorization) GetDisabledDateOk() (*time.Time, bool)

GetDisabledDateOk returns a tuple with the DisabledDate field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*BrokerageAuthorization) GetDisabledOk

func (o *BrokerageAuthorization) GetDisabledOk() (*bool, bool)

GetDisabledOk returns a tuple with the Disabled field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BrokerageAuthorization) GetId

func (o *BrokerageAuthorization) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*BrokerageAuthorization) GetIdOk

func (o *BrokerageAuthorization) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BrokerageAuthorization) GetIsEligibleForPayout added in v1.0.75

func (o *BrokerageAuthorization) GetIsEligibleForPayout() bool

GetIsEligibleForPayout returns the IsEligibleForPayout field value if set, zero value otherwise.

func (*BrokerageAuthorization) GetIsEligibleForPayoutOk added in v1.0.75

func (o *BrokerageAuthorization) GetIsEligibleForPayoutOk() (*bool, bool)

GetIsEligibleForPayoutOk returns a tuple with the IsEligibleForPayout field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BrokerageAuthorization) GetMeta

func (o *BrokerageAuthorization) GetMeta() map[string]interface{}

GetMeta returns the Meta field value if set, zero value otherwise. Deprecated

func (*BrokerageAuthorization) GetMetaOk

func (o *BrokerageAuthorization) GetMetaOk() (map[string]interface{}, bool)

GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set. Deprecated

func (*BrokerageAuthorization) GetName

func (o *BrokerageAuthorization) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*BrokerageAuthorization) GetNameOk

func (o *BrokerageAuthorization) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BrokerageAuthorization) GetType

func (o *BrokerageAuthorization) GetType() string

GetType returns the Type field value if set, zero value otherwise.

func (*BrokerageAuthorization) GetTypeOk

func (o *BrokerageAuthorization) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BrokerageAuthorization) GetUpdatedDate

func (o *BrokerageAuthorization) GetUpdatedDate() time.Time

GetUpdatedDate returns the UpdatedDate field value if set, zero value otherwise. Deprecated

func (*BrokerageAuthorization) GetUpdatedDateOk

func (o *BrokerageAuthorization) GetUpdatedDateOk() (*time.Time, bool)

GetUpdatedDateOk returns a tuple with the UpdatedDate field value if set, nil otherwise and a boolean to check if the value has been set. Deprecated

func (*BrokerageAuthorization) HasBrokerage

func (o *BrokerageAuthorization) HasBrokerage() bool

HasBrokerage returns a boolean if a field has been set.

func (*BrokerageAuthorization) HasCreatedDate

func (o *BrokerageAuthorization) HasCreatedDate() bool

HasCreatedDate returns a boolean if a field has been set.

func (*BrokerageAuthorization) HasDisabled

func (o *BrokerageAuthorization) HasDisabled() bool

HasDisabled returns a boolean if a field has been set.

func (*BrokerageAuthorization) HasDisabledDate

func (o *BrokerageAuthorization) HasDisabledDate() bool

HasDisabledDate returns a boolean if a field has been set.

func (*BrokerageAuthorization) HasId

func (o *BrokerageAuthorization) HasId() bool

HasId returns a boolean if a field has been set.

func (*BrokerageAuthorization) HasIsEligibleForPayout added in v1.0.75

func (o *BrokerageAuthorization) HasIsEligibleForPayout() bool

HasIsEligibleForPayout returns a boolean if a field has been set.

func (*BrokerageAuthorization) HasMeta

func (o *BrokerageAuthorization) HasMeta() bool

HasMeta returns a boolean if a field has been set.

func (*BrokerageAuthorization) HasName

func (o *BrokerageAuthorization) HasName() bool

HasName returns a boolean if a field has been set.

func (*BrokerageAuthorization) HasType

func (o *BrokerageAuthorization) HasType() bool

HasType returns a boolean if a field has been set.

func (*BrokerageAuthorization) HasUpdatedDate

func (o *BrokerageAuthorization) HasUpdatedDate() bool

HasUpdatedDate returns a boolean if a field has been set.

func (BrokerageAuthorization) MarshalJSON

func (o BrokerageAuthorization) MarshalJSON() ([]byte, error)

func (*BrokerageAuthorization) SetBrokerage

func (o *BrokerageAuthorization) SetBrokerage(v Brokerage)

SetBrokerage gets a reference to the given Brokerage and assigns it to the Brokerage field.

func (*BrokerageAuthorization) SetCreatedDate

func (o *BrokerageAuthorization) SetCreatedDate(v time.Time)

SetCreatedDate gets a reference to the given time.Time and assigns it to the CreatedDate field.

func (*BrokerageAuthorization) SetDisabled

func (o *BrokerageAuthorization) SetDisabled(v bool)

SetDisabled gets a reference to the given bool and assigns it to the Disabled field.

func (*BrokerageAuthorization) SetDisabledDate

func (o *BrokerageAuthorization) SetDisabledDate(v time.Time)

SetDisabledDate gets a reference to the given NullableTime and assigns it to the DisabledDate field.

func (*BrokerageAuthorization) SetDisabledDateNil

func (o *BrokerageAuthorization) SetDisabledDateNil()

SetDisabledDateNil sets the value for DisabledDate to be an explicit nil

func (*BrokerageAuthorization) SetId

func (o *BrokerageAuthorization) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*BrokerageAuthorization) SetIsEligibleForPayout added in v1.0.75

func (o *BrokerageAuthorization) SetIsEligibleForPayout(v bool)

SetIsEligibleForPayout gets a reference to the given bool and assigns it to the IsEligibleForPayout field.

func (*BrokerageAuthorization) SetMeta

func (o *BrokerageAuthorization) SetMeta(v map[string]interface{})

SetMeta gets a reference to the given map[string]interface{} and assigns it to the Meta field. Deprecated

func (*BrokerageAuthorization) SetName

func (o *BrokerageAuthorization) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*BrokerageAuthorization) SetType

func (o *BrokerageAuthorization) SetType(v string)

SetType gets a reference to the given string and assigns it to the Type field.

func (*BrokerageAuthorization) SetUpdatedDate

func (o *BrokerageAuthorization) SetUpdatedDate(v time.Time)

SetUpdatedDate gets a reference to the given time.Time and assigns it to the UpdatedDate field. Deprecated

func (*BrokerageAuthorization) UnmarshalJSON

func (o *BrokerageAuthorization) UnmarshalJSON(bytes []byte) (err error)

func (*BrokerageAuthorization) UnsetDisabledDate

func (o *BrokerageAuthorization) UnsetDisabledDate()

UnsetDisabledDate ensures that no value is present for DisabledDate, not even an explicit nil

type BrokerageAuthorizationDisabledConfirmation

type BrokerageAuthorizationDisabledConfirmation struct {
	// Connection disabled confirmation
	Detail               *string `json:"detail,omitempty"`
	AdditionalProperties map[string]interface{}
}

BrokerageAuthorizationDisabledConfirmation Confirmation that the connection has been disabled.

func NewBrokerageAuthorizationDisabledConfirmation

func NewBrokerageAuthorizationDisabledConfirmation() *BrokerageAuthorizationDisabledConfirmation

NewBrokerageAuthorizationDisabledConfirmation instantiates a new BrokerageAuthorizationDisabledConfirmation object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewBrokerageAuthorizationDisabledConfirmationWithDefaults

func NewBrokerageAuthorizationDisabledConfirmationWithDefaults() *BrokerageAuthorizationDisabledConfirmation

NewBrokerageAuthorizationDisabledConfirmationWithDefaults instantiates a new BrokerageAuthorizationDisabledConfirmation object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*BrokerageAuthorizationDisabledConfirmation) GetDetail

GetDetail returns the Detail field value if set, zero value otherwise.

func (*BrokerageAuthorizationDisabledConfirmation) GetDetailOk

GetDetailOk returns a tuple with the Detail field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BrokerageAuthorizationDisabledConfirmation) HasDetail

HasDetail returns a boolean if a field has been set.

func (BrokerageAuthorizationDisabledConfirmation) MarshalJSON

func (*BrokerageAuthorizationDisabledConfirmation) SetDetail

SetDetail gets a reference to the given string and assigns it to the Detail field.

func (*BrokerageAuthorizationDisabledConfirmation) UnmarshalJSON

func (o *BrokerageAuthorizationDisabledConfirmation) UnmarshalJSON(bytes []byte) (err error)

type BrokerageAuthorizationRefreshConfirmation

type BrokerageAuthorizationRefreshConfirmation struct {
	// Refresh confirmation details
	Detail               *string `json:"detail,omitempty"`
	AdditionalProperties map[string]interface{}
}

BrokerageAuthorizationRefreshConfirmation Confirmation that the syncs have been scheduled.

func NewBrokerageAuthorizationRefreshConfirmation

func NewBrokerageAuthorizationRefreshConfirmation() *BrokerageAuthorizationRefreshConfirmation

NewBrokerageAuthorizationRefreshConfirmation instantiates a new BrokerageAuthorizationRefreshConfirmation object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewBrokerageAuthorizationRefreshConfirmationWithDefaults

func NewBrokerageAuthorizationRefreshConfirmationWithDefaults() *BrokerageAuthorizationRefreshConfirmation

NewBrokerageAuthorizationRefreshConfirmationWithDefaults instantiates a new BrokerageAuthorizationRefreshConfirmation object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*BrokerageAuthorizationRefreshConfirmation) GetDetail

GetDetail returns the Detail field value if set, zero value otherwise.

func (*BrokerageAuthorizationRefreshConfirmation) GetDetailOk

GetDetailOk returns a tuple with the Detail field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BrokerageAuthorizationRefreshConfirmation) HasDetail

HasDetail returns a boolean if a field has been set.

func (BrokerageAuthorizationRefreshConfirmation) MarshalJSON

func (*BrokerageAuthorizationRefreshConfirmation) SetDetail

SetDetail gets a reference to the given string and assigns it to the Detail field.

func (*BrokerageAuthorizationRefreshConfirmation) UnmarshalJSON

func (o *BrokerageAuthorizationRefreshConfirmation) UnmarshalJSON(bytes []byte) (err error)

type BrokerageAuthorizationTypeReadOnly

type BrokerageAuthorizationTypeReadOnly struct {
	Id                   *string                                      `json:"id,omitempty"`
	Type                 *string                                      `json:"type,omitempty"`
	AuthType             *string                                      `json:"auth_type,omitempty"`
	Brokerage            *BrokerageAuthorizationTypeReadOnlyBrokerage `json:"brokerage,omitempty"`
	AdditionalProperties map[string]interface{}
}

BrokerageAuthorizationTypeReadOnly struct for BrokerageAuthorizationTypeReadOnly

func NewBrokerageAuthorizationTypeReadOnly

func NewBrokerageAuthorizationTypeReadOnly() *BrokerageAuthorizationTypeReadOnly

NewBrokerageAuthorizationTypeReadOnly instantiates a new BrokerageAuthorizationTypeReadOnly object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewBrokerageAuthorizationTypeReadOnlyWithDefaults

func NewBrokerageAuthorizationTypeReadOnlyWithDefaults() *BrokerageAuthorizationTypeReadOnly

NewBrokerageAuthorizationTypeReadOnlyWithDefaults instantiates a new BrokerageAuthorizationTypeReadOnly object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*BrokerageAuthorizationTypeReadOnly) GetAuthType

func (o *BrokerageAuthorizationTypeReadOnly) GetAuthType() string

GetAuthType returns the AuthType field value if set, zero value otherwise.

func (*BrokerageAuthorizationTypeReadOnly) GetAuthTypeOk

func (o *BrokerageAuthorizationTypeReadOnly) GetAuthTypeOk() (*string, bool)

GetAuthTypeOk returns a tuple with the AuthType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BrokerageAuthorizationTypeReadOnly) GetBrokerage

GetBrokerage returns the Brokerage field value if set, zero value otherwise.

func (*BrokerageAuthorizationTypeReadOnly) GetBrokerageOk

GetBrokerageOk returns a tuple with the Brokerage field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BrokerageAuthorizationTypeReadOnly) GetId

GetId returns the Id field value if set, zero value otherwise.

func (*BrokerageAuthorizationTypeReadOnly) GetIdOk

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BrokerageAuthorizationTypeReadOnly) GetType

GetType returns the Type field value if set, zero value otherwise.

func (*BrokerageAuthorizationTypeReadOnly) GetTypeOk

func (o *BrokerageAuthorizationTypeReadOnly) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BrokerageAuthorizationTypeReadOnly) HasAuthType

func (o *BrokerageAuthorizationTypeReadOnly) HasAuthType() bool

HasAuthType returns a boolean if a field has been set.

func (*BrokerageAuthorizationTypeReadOnly) HasBrokerage

func (o *BrokerageAuthorizationTypeReadOnly) HasBrokerage() bool

HasBrokerage returns a boolean if a field has been set.

func (*BrokerageAuthorizationTypeReadOnly) HasId

HasId returns a boolean if a field has been set.

func (*BrokerageAuthorizationTypeReadOnly) HasType

HasType returns a boolean if a field has been set.

func (BrokerageAuthorizationTypeReadOnly) MarshalJSON

func (o BrokerageAuthorizationTypeReadOnly) MarshalJSON() ([]byte, error)

func (*BrokerageAuthorizationTypeReadOnly) SetAuthType

func (o *BrokerageAuthorizationTypeReadOnly) SetAuthType(v string)

SetAuthType gets a reference to the given string and assigns it to the AuthType field.

func (*BrokerageAuthorizationTypeReadOnly) SetBrokerage

SetBrokerage gets a reference to the given BrokerageAuthorizationTypeReadOnlyBrokerage and assigns it to the Brokerage field.

func (*BrokerageAuthorizationTypeReadOnly) SetId

SetId gets a reference to the given string and assigns it to the Id field.

func (*BrokerageAuthorizationTypeReadOnly) SetType

SetType gets a reference to the given string and assigns it to the Type field.

func (*BrokerageAuthorizationTypeReadOnly) UnmarshalJSON

func (o *BrokerageAuthorizationTypeReadOnly) UnmarshalJSON(bytes []byte) (err error)

type BrokerageAuthorizationTypeReadOnlyBrokerage

type BrokerageAuthorizationTypeReadOnlyBrokerage struct {
	Id *string `json:"id,omitempty"`
	// Full name of the brokerage.
	Name *string `json:"name,omitempty"`
	// A unique identifier for that brokerage. It is usually the name of the brokerage in capital letters and will never change.
	Slug                 *string `json:"slug,omitempty"`
	AdditionalProperties map[string]interface{}
}

BrokerageAuthorizationTypeReadOnlyBrokerage struct for BrokerageAuthorizationTypeReadOnlyBrokerage

func NewBrokerageAuthorizationTypeReadOnlyBrokerage

func NewBrokerageAuthorizationTypeReadOnlyBrokerage() *BrokerageAuthorizationTypeReadOnlyBrokerage

NewBrokerageAuthorizationTypeReadOnlyBrokerage instantiates a new BrokerageAuthorizationTypeReadOnlyBrokerage object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewBrokerageAuthorizationTypeReadOnlyBrokerageWithDefaults

func NewBrokerageAuthorizationTypeReadOnlyBrokerageWithDefaults() *BrokerageAuthorizationTypeReadOnlyBrokerage

NewBrokerageAuthorizationTypeReadOnlyBrokerageWithDefaults instantiates a new BrokerageAuthorizationTypeReadOnlyBrokerage object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*BrokerageAuthorizationTypeReadOnlyBrokerage) GetId

GetId returns the Id field value if set, zero value otherwise.

func (*BrokerageAuthorizationTypeReadOnlyBrokerage) GetIdOk

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BrokerageAuthorizationTypeReadOnlyBrokerage) GetName

GetName returns the Name field value if set, zero value otherwise.

func (*BrokerageAuthorizationTypeReadOnlyBrokerage) GetNameOk

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BrokerageAuthorizationTypeReadOnlyBrokerage) GetSlug

GetSlug returns the Slug field value if set, zero value otherwise.

func (*BrokerageAuthorizationTypeReadOnlyBrokerage) GetSlugOk

GetSlugOk returns a tuple with the Slug field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BrokerageAuthorizationTypeReadOnlyBrokerage) HasId

HasId returns a boolean if a field has been set.

func (*BrokerageAuthorizationTypeReadOnlyBrokerage) HasName

HasName returns a boolean if a field has been set.

func (*BrokerageAuthorizationTypeReadOnlyBrokerage) HasSlug

HasSlug returns a boolean if a field has been set.

func (BrokerageAuthorizationTypeReadOnlyBrokerage) MarshalJSON

func (*BrokerageAuthorizationTypeReadOnlyBrokerage) SetId

SetId gets a reference to the given string and assigns it to the Id field.

func (*BrokerageAuthorizationTypeReadOnlyBrokerage) SetName

SetName gets a reference to the given string and assigns it to the Name field.

func (*BrokerageAuthorizationTypeReadOnlyBrokerage) SetSlug

SetSlug gets a reference to the given string and assigns it to the Slug field.

func (*BrokerageAuthorizationTypeReadOnlyBrokerage) UnmarshalJSON

func (o *BrokerageAuthorizationTypeReadOnlyBrokerage) UnmarshalJSON(bytes []byte) (err error)

type BrokerageInstrument added in v1.0.90

type BrokerageInstrument struct {
	// The instrument's trading symbol / ticker.
	Symbol string `json:"symbol"`
	// The MIC code of the exchange where the instrument is traded.
	ExchangeMic NullableString `json:"exchange_mic,omitempty"`
	// Whether the instrument is tradeable through the brokerage. `null` if the tradeability is unknown.
	Tradeable NullableBool `json:"tradeable,omitempty"`
	// Whether the instrument allows fractional units. `null` if the fractionability is unknown.
	Fractionable NullableBool `json:"fractionable,omitempty"`
	// The universal symbol ID of the instrument. This is the ID used to reference the instrument in SnapTrade API calls.
	UniversalSymbolId    NullableString `json:"universal_symbol_id,omitempty"`
	AdditionalProperties map[string]interface{}
}

BrokerageInstrument struct for BrokerageInstrument

func NewBrokerageInstrument added in v1.0.90

func NewBrokerageInstrument(symbol string) *BrokerageInstrument

NewBrokerageInstrument instantiates a new BrokerageInstrument object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewBrokerageInstrumentWithDefaults added in v1.0.90

func NewBrokerageInstrumentWithDefaults() *BrokerageInstrument

NewBrokerageInstrumentWithDefaults instantiates a new BrokerageInstrument object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*BrokerageInstrument) GetExchangeMic added in v1.0.90

func (o *BrokerageInstrument) GetExchangeMic() string

GetExchangeMic returns the ExchangeMic field value if set, zero value otherwise (both if not set or set to explicit null).

func (*BrokerageInstrument) GetExchangeMicOk added in v1.0.90

func (o *BrokerageInstrument) GetExchangeMicOk() (*string, bool)

GetExchangeMicOk returns a tuple with the ExchangeMic field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*BrokerageInstrument) GetFractionable added in v1.0.90

func (o *BrokerageInstrument) GetFractionable() bool

GetFractionable returns the Fractionable field value if set, zero value otherwise (both if not set or set to explicit null).

func (*BrokerageInstrument) GetFractionableOk added in v1.0.90

func (o *BrokerageInstrument) GetFractionableOk() (*bool, bool)

GetFractionableOk returns a tuple with the Fractionable field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*BrokerageInstrument) GetSymbol added in v1.0.90

func (o *BrokerageInstrument) GetSymbol() string

GetSymbol returns the Symbol field value

func (*BrokerageInstrument) GetSymbolOk added in v1.0.90

func (o *BrokerageInstrument) GetSymbolOk() (*string, bool)

GetSymbolOk returns a tuple with the Symbol field value and a boolean to check if the value has been set.

func (*BrokerageInstrument) GetTradeable added in v1.0.90

func (o *BrokerageInstrument) GetTradeable() bool

GetTradeable returns the Tradeable field value if set, zero value otherwise (both if not set or set to explicit null).

func (*BrokerageInstrument) GetTradeableOk added in v1.0.90

func (o *BrokerageInstrument) GetTradeableOk() (*bool, bool)

GetTradeableOk returns a tuple with the Tradeable field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*BrokerageInstrument) GetUniversalSymbolId added in v1.0.90

func (o *BrokerageInstrument) GetUniversalSymbolId() string

GetUniversalSymbolId returns the UniversalSymbolId field value if set, zero value otherwise (both if not set or set to explicit null).

func (*BrokerageInstrument) GetUniversalSymbolIdOk added in v1.0.90

func (o *BrokerageInstrument) GetUniversalSymbolIdOk() (*string, bool)

GetUniversalSymbolIdOk returns a tuple with the UniversalSymbolId field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*BrokerageInstrument) HasExchangeMic added in v1.0.90

func (o *BrokerageInstrument) HasExchangeMic() bool

HasExchangeMic returns a boolean if a field has been set.

func (*BrokerageInstrument) HasFractionable added in v1.0.90

func (o *BrokerageInstrument) HasFractionable() bool

HasFractionable returns a boolean if a field has been set.

func (*BrokerageInstrument) HasTradeable added in v1.0.90

func (o *BrokerageInstrument) HasTradeable() bool

HasTradeable returns a boolean if a field has been set.

func (*BrokerageInstrument) HasUniversalSymbolId added in v1.0.90

func (o *BrokerageInstrument) HasUniversalSymbolId() bool

HasUniversalSymbolId returns a boolean if a field has been set.

func (BrokerageInstrument) MarshalJSON added in v1.0.90

func (o BrokerageInstrument) MarshalJSON() ([]byte, error)

func (*BrokerageInstrument) SetExchangeMic added in v1.0.90

func (o *BrokerageInstrument) SetExchangeMic(v string)

SetExchangeMic gets a reference to the given NullableString and assigns it to the ExchangeMic field.

func (*BrokerageInstrument) SetExchangeMicNil added in v1.0.90

func (o *BrokerageInstrument) SetExchangeMicNil()

SetExchangeMicNil sets the value for ExchangeMic to be an explicit nil

func (*BrokerageInstrument) SetFractionable added in v1.0.90

func (o *BrokerageInstrument) SetFractionable(v bool)

SetFractionable gets a reference to the given NullableBool and assigns it to the Fractionable field.

func (*BrokerageInstrument) SetFractionableNil added in v1.0.90

func (o *BrokerageInstrument) SetFractionableNil()

SetFractionableNil sets the value for Fractionable to be an explicit nil

func (*BrokerageInstrument) SetSymbol added in v1.0.90

func (o *BrokerageInstrument) SetSymbol(v string)

SetSymbol sets field value

func (*BrokerageInstrument) SetTradeable added in v1.0.90

func (o *BrokerageInstrument) SetTradeable(v bool)

SetTradeable gets a reference to the given NullableBool and assigns it to the Tradeable field.

func (*BrokerageInstrument) SetTradeableNil added in v1.0.90

func (o *BrokerageInstrument) SetTradeableNil()

SetTradeableNil sets the value for Tradeable to be an explicit nil

func (*BrokerageInstrument) SetUniversalSymbolId added in v1.0.90

func (o *BrokerageInstrument) SetUniversalSymbolId(v string)

SetUniversalSymbolId gets a reference to the given NullableString and assigns it to the UniversalSymbolId field.

func (*BrokerageInstrument) SetUniversalSymbolIdNil added in v1.0.90

func (o *BrokerageInstrument) SetUniversalSymbolIdNil()

SetUniversalSymbolIdNil sets the value for UniversalSymbolId to be an explicit nil

func (*BrokerageInstrument) UnmarshalJSON added in v1.0.90

func (o *BrokerageInstrument) UnmarshalJSON(bytes []byte) (err error)

func (*BrokerageInstrument) UnsetExchangeMic added in v1.0.90

func (o *BrokerageInstrument) UnsetExchangeMic()

UnsetExchangeMic ensures that no value is present for ExchangeMic, not even an explicit nil

func (*BrokerageInstrument) UnsetFractionable added in v1.0.90

func (o *BrokerageInstrument) UnsetFractionable()

UnsetFractionable ensures that no value is present for Fractionable, not even an explicit nil

func (*BrokerageInstrument) UnsetTradeable added in v1.0.90

func (o *BrokerageInstrument) UnsetTradeable()

UnsetTradeable ensures that no value is present for Tradeable, not even an explicit nil

func (*BrokerageInstrument) UnsetUniversalSymbolId added in v1.0.90

func (o *BrokerageInstrument) UnsetUniversalSymbolId()

UnsetUniversalSymbolId ensures that no value is present for UniversalSymbolId, not even an explicit nil

type BrokerageInstrumentsResponse added in v1.0.90

type BrokerageInstrumentsResponse struct {
	Instruments          []BrokerageInstrument `json:"instruments,omitempty"`
	AdditionalProperties map[string]interface{}
}

BrokerageInstrumentsResponse struct for BrokerageInstrumentsResponse

func NewBrokerageInstrumentsResponse added in v1.0.90

func NewBrokerageInstrumentsResponse() *BrokerageInstrumentsResponse

NewBrokerageInstrumentsResponse instantiates a new BrokerageInstrumentsResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewBrokerageInstrumentsResponseWithDefaults added in v1.0.90

func NewBrokerageInstrumentsResponseWithDefaults() *BrokerageInstrumentsResponse

NewBrokerageInstrumentsResponseWithDefaults instantiates a new BrokerageInstrumentsResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*BrokerageInstrumentsResponse) GetInstruments added in v1.0.90

func (o *BrokerageInstrumentsResponse) GetInstruments() []BrokerageInstrument

GetInstruments returns the Instruments field value if set, zero value otherwise.

func (*BrokerageInstrumentsResponse) GetInstrumentsOk added in v1.0.90

func (o *BrokerageInstrumentsResponse) GetInstrumentsOk() ([]BrokerageInstrument, bool)

GetInstrumentsOk returns a tuple with the Instruments field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BrokerageInstrumentsResponse) HasInstruments added in v1.0.90

func (o *BrokerageInstrumentsResponse) HasInstruments() bool

HasInstruments returns a boolean if a field has been set.

func (BrokerageInstrumentsResponse) MarshalJSON added in v1.0.90

func (o BrokerageInstrumentsResponse) MarshalJSON() ([]byte, error)

func (*BrokerageInstrumentsResponse) SetInstruments added in v1.0.90

func (o *BrokerageInstrumentsResponse) SetInstruments(v []BrokerageInstrument)

SetInstruments gets a reference to the given []BrokerageInstrument and assigns it to the Instruments field.

func (*BrokerageInstrumentsResponse) UnmarshalJSON added in v1.0.90

func (o *BrokerageInstrumentsResponse) UnmarshalJSON(bytes []byte) (err error)

type BrokerageType

type BrokerageType struct {
	Id                   *string `json:"id,omitempty"`
	Name                 *string `json:"name,omitempty"`
	AdditionalProperties map[string]interface{}
}

BrokerageType Type of brokerage. Currently supports traditional brokerages and crypto exchanges.

func NewBrokerageType

func NewBrokerageType() *BrokerageType

NewBrokerageType instantiates a new BrokerageType object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewBrokerageTypeWithDefaults

func NewBrokerageTypeWithDefaults() *BrokerageType

NewBrokerageTypeWithDefaults instantiates a new BrokerageType object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*BrokerageType) GetId

func (o *BrokerageType) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*BrokerageType) GetIdOk

func (o *BrokerageType) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BrokerageType) GetName

func (o *BrokerageType) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*BrokerageType) GetNameOk

func (o *BrokerageType) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BrokerageType) HasId

func (o *BrokerageType) HasId() bool

HasId returns a boolean if a field has been set.

func (*BrokerageType) HasName

func (o *BrokerageType) HasName() bool

HasName returns a boolean if a field has been set.

func (BrokerageType) MarshalJSON

func (o BrokerageType) MarshalJSON() ([]byte, error)

func (*BrokerageType) SetId

func (o *BrokerageType) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*BrokerageType) SetName

func (o *BrokerageType) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*BrokerageType) UnmarshalJSON

func (o *BrokerageType) UnmarshalJSON(bytes []byte) (err error)

type CancelOrderResponse added in v1.0.89

type CancelOrderResponse struct {
	// Order ID returned by brokerage. This is the unique identifier for the order in the brokerage system.
	BrokerageOrderId string `json:"brokerage_order_id"`
	// The raw response from the brokerage.
	RawResponse          map[string]interface{} `json:"raw_response,omitempty"`
	AdditionalProperties map[string]interface{}
}

CancelOrderResponse struct for CancelOrderResponse

func NewCancelOrderResponse added in v1.0.89

func NewCancelOrderResponse(brokerageOrderId string) *CancelOrderResponse

NewCancelOrderResponse instantiates a new CancelOrderResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewCancelOrderResponseWithDefaults added in v1.0.89

func NewCancelOrderResponseWithDefaults() *CancelOrderResponse

NewCancelOrderResponseWithDefaults instantiates a new CancelOrderResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*CancelOrderResponse) GetBrokerageOrderId added in v1.0.89

func (o *CancelOrderResponse) GetBrokerageOrderId() string

GetBrokerageOrderId returns the BrokerageOrderId field value

func (*CancelOrderResponse) GetBrokerageOrderIdOk added in v1.0.89

func (o *CancelOrderResponse) GetBrokerageOrderIdOk() (*string, bool)

GetBrokerageOrderIdOk returns a tuple with the BrokerageOrderId field value and a boolean to check if the value has been set.

func (*CancelOrderResponse) GetRawResponse added in v1.0.89

func (o *CancelOrderResponse) GetRawResponse() map[string]interface{}

GetRawResponse returns the RawResponse field value if set, zero value otherwise (both if not set or set to explicit null).

func (*CancelOrderResponse) GetRawResponseOk added in v1.0.89

func (o *CancelOrderResponse) GetRawResponseOk() (map[string]interface{}, bool)

GetRawResponseOk returns a tuple with the RawResponse field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CancelOrderResponse) HasRawResponse added in v1.0.89

func (o *CancelOrderResponse) HasRawResponse() bool

HasRawResponse returns a boolean if a field has been set.

func (CancelOrderResponse) MarshalJSON added in v1.0.89

func (o CancelOrderResponse) MarshalJSON() ([]byte, error)

func (*CancelOrderResponse) SetBrokerageOrderId added in v1.0.89

func (o *CancelOrderResponse) SetBrokerageOrderId(v string)

SetBrokerageOrderId sets field value

func (*CancelOrderResponse) SetRawResponse added in v1.0.89

func (o *CancelOrderResponse) SetRawResponse(v map[string]interface{})

SetRawResponse gets a reference to the given map[string]interface{} and assigns it to the RawResponse field.

func (*CancelOrderResponse) UnmarshalJSON added in v1.0.89

func (o *CancelOrderResponse) UnmarshalJSON(bytes []byte) (err error)

type ChildBrokerageOrderIDs added in v1.0.55

type ChildBrokerageOrderIDs struct {
	// The brokerage order ID for the take profit leg of the bracket order
	TakeProfitOrderId *string `json:"take_profit_order_id,omitempty"`
	// The brokerage order ID for the stop loss leg of the bracket order
	StopLossOrderId      *string `json:"stop_loss_order_id,omitempty"`
	AdditionalProperties map[string]interface{}
}

ChildBrokerageOrderIDs struct for ChildBrokerageOrderIDs

func NewChildBrokerageOrderIDs added in v1.0.55

func NewChildBrokerageOrderIDs() *ChildBrokerageOrderIDs

NewChildBrokerageOrderIDs instantiates a new ChildBrokerageOrderIDs object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewChildBrokerageOrderIDsWithDefaults added in v1.0.55

func NewChildBrokerageOrderIDsWithDefaults() *ChildBrokerageOrderIDs

NewChildBrokerageOrderIDsWithDefaults instantiates a new ChildBrokerageOrderIDs object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ChildBrokerageOrderIDs) GetStopLossOrderId added in v1.0.55

func (o *ChildBrokerageOrderIDs) GetStopLossOrderId() string

GetStopLossOrderId returns the StopLossOrderId field value if set, zero value otherwise.

func (*ChildBrokerageOrderIDs) GetStopLossOrderIdOk added in v1.0.55

func (o *ChildBrokerageOrderIDs) GetStopLossOrderIdOk() (*string, bool)

GetStopLossOrderIdOk returns a tuple with the StopLossOrderId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ChildBrokerageOrderIDs) GetTakeProfitOrderId added in v1.0.55

func (o *ChildBrokerageOrderIDs) GetTakeProfitOrderId() string

GetTakeProfitOrderId returns the TakeProfitOrderId field value if set, zero value otherwise.

func (*ChildBrokerageOrderIDs) GetTakeProfitOrderIdOk added in v1.0.55

func (o *ChildBrokerageOrderIDs) GetTakeProfitOrderIdOk() (*string, bool)

GetTakeProfitOrderIdOk returns a tuple with the TakeProfitOrderId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ChildBrokerageOrderIDs) HasStopLossOrderId added in v1.0.55

func (o *ChildBrokerageOrderIDs) HasStopLossOrderId() bool

HasStopLossOrderId returns a boolean if a field has been set.

func (*ChildBrokerageOrderIDs) HasTakeProfitOrderId added in v1.0.55

func (o *ChildBrokerageOrderIDs) HasTakeProfitOrderId() bool

HasTakeProfitOrderId returns a boolean if a field has been set.

func (ChildBrokerageOrderIDs) MarshalJSON added in v1.0.55

func (o ChildBrokerageOrderIDs) MarshalJSON() ([]byte, error)

func (*ChildBrokerageOrderIDs) SetStopLossOrderId added in v1.0.55

func (o *ChildBrokerageOrderIDs) SetStopLossOrderId(v string)

SetStopLossOrderId gets a reference to the given string and assigns it to the StopLossOrderId field.

func (*ChildBrokerageOrderIDs) SetTakeProfitOrderId added in v1.0.55

func (o *ChildBrokerageOrderIDs) SetTakeProfitOrderId(v string)

SetTakeProfitOrderId gets a reference to the given string and assigns it to the TakeProfitOrderId field.

func (*ChildBrokerageOrderIDs) UnmarshalJSON added in v1.0.55

func (o *ChildBrokerageOrderIDs) UnmarshalJSON(bytes []byte) (err error)

type Configuration

type Configuration struct {
	Host             string            `json:"host,omitempty"`
	Scheme           string            `json:"scheme,omitempty"`
	TokenUrl         string            `json:"tokenUrl,omitempty"`
	DefaultHeader    map[string]string `json:"defaultHeader,omitempty"`
	UserAgent        string            `json:"userAgent,omitempty"`
	Debug            bool              `json:"debug,omitempty"`
	Servers          ServerConfigurations
	OperationServers map[string]ServerConfigurations
	HTTPClient       *http.Client
	Context          context.Context
}

Configuration stores the configuration of the API client

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration returns a new Configuration object

func (*Configuration) AddAPIKey

func (c *Configuration) AddAPIKey(key string, apiKey APIKey)

Configures an API key on Configuration. Ensures multiple calls does not delete other keys

1. Get the existing map of API keys from the context. 2. If there's no existing map, create a new map. 3. Update the "[API key]"" in the map. 4. Store the updated map back in the context.

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

AddDefaultHeader adds a new HTTP header to the default header in the request

func (*Configuration) ServerURL

func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error)

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error)

ServerURLWithContext returns a new server URL given an endpoint

func (*Configuration) SetConsumerKey

func (c *Configuration) SetConsumerKey(ConsumerKey string)

func (*Configuration) SetHost

func (c *Configuration) SetHost(host string)

func (*Configuration) SetOAuthClientCredentials

func (c *Configuration) SetOAuthClientCredentials(clientId string, clientSecret string)

Setup OAuth Client Credentials Flow for all requests

func (*Configuration) SetPartnerClientId

func (c *Configuration) SetPartnerClientId(partnerClientId string)

func (*Configuration) SetPartnerSignature

func (c *Configuration) SetPartnerSignature(partnerSignature string)

func (*Configuration) SetPartnerTimestamp

func (c *Configuration) SetPartnerTimestamp(partnerTimestamp string)

func (*Configuration) SetTokenUrl

func (c *Configuration) SetTokenUrl(tokenUrl string)

type ConnectionsApiDetailBrokerageAuthorizationRequest

type ConnectionsApiDetailBrokerageAuthorizationRequest struct {
	ApiService *ConnectionsApiService
	// contains filtered or unexported fields
}

func (ConnectionsApiDetailBrokerageAuthorizationRequest) Execute

type ConnectionsApiDisableBrokerageAuthorizationRequest

type ConnectionsApiDisableBrokerageAuthorizationRequest struct {
	ApiService *ConnectionsApiService
	// contains filtered or unexported fields
}

func (ConnectionsApiDisableBrokerageAuthorizationRequest) Execute

type ConnectionsApiListBrokerageAuthorizationsRequest

type ConnectionsApiListBrokerageAuthorizationsRequest struct {
	ApiService *ConnectionsApiService
	// contains filtered or unexported fields
}

func (ConnectionsApiListBrokerageAuthorizationsRequest) Execute

type ConnectionsApiRefreshBrokerageAuthorizationRequest

type ConnectionsApiRefreshBrokerageAuthorizationRequest struct {
	ApiService *ConnectionsApiService
	// contains filtered or unexported fields
}

func (ConnectionsApiRefreshBrokerageAuthorizationRequest) Execute

type ConnectionsApiRemoveBrokerageAuthorizationRequest

type ConnectionsApiRemoveBrokerageAuthorizationRequest struct {
	ApiService *ConnectionsApiService
	// contains filtered or unexported fields
}

func (ConnectionsApiRemoveBrokerageAuthorizationRequest) Execute

type ConnectionsApiReturnRatesRequest added in v1.0.27

type ConnectionsApiReturnRatesRequest struct {
	ApiService *ConnectionsApiService
	// contains filtered or unexported fields
}

func (ConnectionsApiReturnRatesRequest) Execute added in v1.0.27

type ConnectionsApiService

type ConnectionsApiService service

ConnectionsApiService ConnectionsApi service

func (*ConnectionsApiService) DetailBrokerageAuthorization

func (a *ConnectionsApiService) DetailBrokerageAuthorization(authorizationId string, userId string, userSecret string) ConnectionsApiDetailBrokerageAuthorizationRequest

DetailBrokerageAuthorization Get connection detail

Returns a single connection for the specified ID.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param authorizationId
@param userId
@param userSecret
@return ConnectionsApiDetailBrokerageAuthorizationRequest

func (*ConnectionsApiService) DetailBrokerageAuthorizationExecute

Execute executes the request

@return BrokerageAuthorization

func (*ConnectionsApiService) DisableBrokerageAuthorization

func (a *ConnectionsApiService) DisableBrokerageAuthorization(authorizationId string, userId string, userSecret string) ConnectionsApiDisableBrokerageAuthorizationRequest

DisableBrokerageAuthorization Force disable connection

Manually force the specified connection to become disabled. This should only be used for testing a reconnect flow, and never used on production connections. Will trigger a disconnect as if it happened naturally, and send a [`CONNECTION_BROKEN` webhook](/docs/webhooks#webhooks-connection_broken) for the connection.

This endpoint is available on test keys. If you would like it enabled on production keys as well, please contact support as it is disabled by default.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param authorizationId
@param userId
@param userSecret
@return ConnectionsApiDisableBrokerageAuthorizationRequest

func (*ConnectionsApiService) DisableBrokerageAuthorizationExecute

Execute executes the request

@return BrokerageAuthorizationDisabledConfirmation

func (*ConnectionsApiService) ListBrokerageAuthorizations

func (a *ConnectionsApiService) ListBrokerageAuthorizations(userId string, userSecret string) ConnectionsApiListBrokerageAuthorizationsRequest

ListBrokerageAuthorizations List all connections

Returns a list of all connections for the specified user. Note that `Connection` and `Brokerage Authorization` are interchangeable, but the term `Connection` is preferred and used in the doc for consistency.

A connection is usually tied to a single login at a brokerage. A single connection can contain multiple brokerage accounts.

SnapTrade performs de-duping on connections for a given user. If the user has an existing connection with the brokerage, when connecting the brokerage with the same credentials, SnapTrade will return the existing connection instead of creating a new one.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param userId
@param userSecret
@return ConnectionsApiListBrokerageAuthorizationsRequest

func (*ConnectionsApiService) ListBrokerageAuthorizationsExecute

Execute executes the request

@return []BrokerageAuthorization

func (*ConnectionsApiService) RefreshBrokerageAuthorization

func (a *ConnectionsApiService) RefreshBrokerageAuthorization(authorizationId string, userId string, userSecret string) ConnectionsApiRefreshBrokerageAuthorizationRequest

RefreshBrokerageAuthorization Refresh holdings for a connection

Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection. This endpoint will also trigger a transaction sync for the past day if one has not yet occurred.

**Because of the cost of refreshing a connection, each call to this endpoint incurs an additional charge. You can find the exact cost for your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing)**

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param authorizationId
@param userId
@param userSecret
@return ConnectionsApiRefreshBrokerageAuthorizationRequest

func (*ConnectionsApiService) RefreshBrokerageAuthorizationExecute

Execute executes the request

@return BrokerageAuthorizationRefreshConfirmation

func (*ConnectionsApiService) RemoveBrokerageAuthorization

func (a *ConnectionsApiService) RemoveBrokerageAuthorization(authorizationId string, userId string, userSecret string) ConnectionsApiRemoveBrokerageAuthorizationRequest

RemoveBrokerageAuthorization Delete connection

Deletes the connection specified by the ID. This will also delete all accounts and holdings associated with the connection. This action is irreversible. This endpoint is synchronous, a 204 response indicates that the connection has been successfully deleted.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param authorizationId
@param userId
@param userSecret
@return ConnectionsApiRemoveBrokerageAuthorizationRequest

func (*ConnectionsApiService) RemoveBrokerageAuthorizationExecute

func (a *ConnectionsApiService) RemoveBrokerageAuthorizationExecute(r ConnectionsApiRemoveBrokerageAuthorizationRequest) (*http.Response, error)

Execute executes the request

func (*ConnectionsApiService) ReturnRates added in v1.0.27

func (a *ConnectionsApiService) ReturnRates(userId string, userSecret string, authorizationId string) ConnectionsApiReturnRatesRequest

ReturnRates List connection rate of returns

Returns a list of rate of return percents for a given connection. Will include timeframes available from the brokerage, for example "ALL", "1Y", "6M", "3M", "1M"

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param userId
@param userSecret
@param authorizationId
@return ConnectionsApiReturnRatesRequest

func (*ConnectionsApiService) ReturnRatesExecute added in v1.0.27

Execute executes the request

@return RateOfReturnResponse

func (*ConnectionsApiService) SessionEvents

func (a *ConnectionsApiService) SessionEvents(partnerClientId string) ConnectionsApiSessionEventsRequest

SessionEvents Get all session events for a user

Returns a list of session events associated with a user.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param partnerClientId
@return ConnectionsApiSessionEventsRequest

func (*ConnectionsApiService) SessionEventsExecute

Execute executes the request

@return []SessionEvent

type ConnectionsApiSessionEventsRequest

type ConnectionsApiSessionEventsRequest struct {
	ApiService *ConnectionsApiService
	// contains filtered or unexported fields
}

func (ConnectionsApiSessionEventsRequest) Execute

func (*ConnectionsApiSessionEventsRequest) SessionId

Optional comma separated list of session IDs used to filter the request on specific users

func (*ConnectionsApiSessionEventsRequest) UserId

Optional comma separated list of user IDs used to filter the request on specific users

type CryptoOrderForm added in v1.0.92

type CryptoOrderForm struct {
	Instrument CryptoTradingInstrument `json:"instrument"`
	Side       ActionStrict            `json:"side"`
	// The type of order to place.
	Type string `json:"type"`
	// The Time in Force type for the order. This field indicates how long the order will remain active before it is executed or expires.   - `GTC` - Good Til Canceled. The order is valid until it is executed or canceled.   - `FOK` - Fill Or Kill. The order must be executed in its entirety immediately or be canceled completely.   - `IOC` - Immediate Or Cancel. The order must be executed immediately. Any portion of the order that cannot be filled immediately will be canceled.   - `GTD` - Good Til Date. The order is valid until the specified date.
	TimeInForce string `json:"time_in_force"`
	// The amount of the base currency to buy or sell.
	Amount float64 `json:"amount"`
	// The limit price. Required if the order type is LIMIT, STOP_LOSS_LIMIT or TAKE_PROFIT_LIMIT.
	LimitPrice *float64 `json:"limit_price,omitempty"`
	// The stop price. Required if the order type is STOP_LOSS_MARKET, STOP_LOSS_LIMIT, TAKE_PROFIT_MARKET or TAKE_PROFIT_LIMIT.
	StopPrice *float64 `json:"stop_price,omitempty"`
	// Valid and required only for order type LIMIT. If true orders that would be filled immediately are rejected to avoid incurring TAKER fees.
	PostOnly *bool `json:"post_only,omitempty"`
	// The expiration date of the order. Required if the time_in_force is GTD.
	ExpirationDate *time.Time `json:"expiration_date,omitempty"`
}

CryptoOrderForm struct for CryptoOrderForm

func NewCryptoOrderForm added in v1.0.92

func NewCryptoOrderForm(instrument CryptoTradingInstrument, side ActionStrict, type_ string, timeInForce string, amount float64) *CryptoOrderForm

NewCryptoOrderForm instantiates a new CryptoOrderForm object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewCryptoOrderFormWithDefaults added in v1.0.92

func NewCryptoOrderFormWithDefaults() *CryptoOrderForm

NewCryptoOrderFormWithDefaults instantiates a new CryptoOrderForm object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*CryptoOrderForm) GetAmount added in v1.0.92

func (o *CryptoOrderForm) GetAmount() float64

GetAmount returns the Amount field value

func (*CryptoOrderForm) GetAmountOk added in v1.0.92

func (o *CryptoOrderForm) GetAmountOk() (*float64, bool)

GetAmountOk returns a tuple with the Amount field value and a boolean to check if the value has been set.

func (*CryptoOrderForm) GetExpirationDate added in v1.0.92

func (o *CryptoOrderForm) GetExpirationDate() time.Time

GetExpirationDate returns the ExpirationDate field value if set, zero value otherwise.

func (*CryptoOrderForm) GetExpirationDateOk added in v1.0.92

func (o *CryptoOrderForm) GetExpirationDateOk() (*time.Time, bool)

GetExpirationDateOk returns a tuple with the ExpirationDate field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CryptoOrderForm) GetInstrument added in v1.0.92

func (o *CryptoOrderForm) GetInstrument() CryptoTradingInstrument

GetInstrument returns the Instrument field value

func (*CryptoOrderForm) GetInstrumentOk added in v1.0.92

func (o *CryptoOrderForm) GetInstrumentOk() (*CryptoTradingInstrument, bool)

GetInstrumentOk returns a tuple with the Instrument field value and a boolean to check if the value has been set.

func (*CryptoOrderForm) GetLimitPrice added in v1.0.92

func (o *CryptoOrderForm) GetLimitPrice() float64

GetLimitPrice returns the LimitPrice field value if set, zero value otherwise.

func (*CryptoOrderForm) GetLimitPriceOk added in v1.0.92

func (o *CryptoOrderForm) GetLimitPriceOk() (*float64, bool)

GetLimitPriceOk returns a tuple with the LimitPrice field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CryptoOrderForm) GetPostOnly added in v1.0.92

func (o *CryptoOrderForm) GetPostOnly() bool

GetPostOnly returns the PostOnly field value if set, zero value otherwise.

func (*CryptoOrderForm) GetPostOnlyOk added in v1.0.92

func (o *CryptoOrderForm) GetPostOnlyOk() (*bool, bool)

GetPostOnlyOk returns a tuple with the PostOnly field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CryptoOrderForm) GetSide added in v1.0.92

func (o *CryptoOrderForm) GetSide() ActionStrict

GetSide returns the Side field value

func (*CryptoOrderForm) GetSideOk added in v1.0.92

func (o *CryptoOrderForm) GetSideOk() (*ActionStrict, bool)

GetSideOk returns a tuple with the Side field value and a boolean to check if the value has been set.

func (*CryptoOrderForm) GetStopPrice added in v1.0.92

func (o *CryptoOrderForm) GetStopPrice() float64

GetStopPrice returns the StopPrice field value if set, zero value otherwise.

func (*CryptoOrderForm) GetStopPriceOk added in v1.0.92

func (o *CryptoOrderForm) GetStopPriceOk() (*float64, bool)

GetStopPriceOk returns a tuple with the StopPrice field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CryptoOrderForm) GetTimeInForce added in v1.0.92

func (o *CryptoOrderForm) GetTimeInForce() string

GetTimeInForce returns the TimeInForce field value

func (*CryptoOrderForm) GetTimeInForceOk added in v1.0.92

func (o *CryptoOrderForm) GetTimeInForceOk() (*string, bool)

GetTimeInForceOk returns a tuple with the TimeInForce field value and a boolean to check if the value has been set.

func (*CryptoOrderForm) GetType added in v1.0.92

func (o *CryptoOrderForm) GetType() string

GetType returns the Type field value

func (*CryptoOrderForm) GetTypeOk added in v1.0.92

func (o *CryptoOrderForm) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (*CryptoOrderForm) HasExpirationDate added in v1.0.92

func (o *CryptoOrderForm) HasExpirationDate() bool

HasExpirationDate returns a boolean if a field has been set.

func (*CryptoOrderForm) HasLimitPrice added in v1.0.92

func (o *CryptoOrderForm) HasLimitPrice() bool

HasLimitPrice returns a boolean if a field has been set.

func (*CryptoOrderForm) HasPostOnly added in v1.0.92

func (o *CryptoOrderForm) HasPostOnly() bool

HasPostOnly returns a boolean if a field has been set.

func (*CryptoOrderForm) HasStopPrice added in v1.0.92

func (o *CryptoOrderForm) HasStopPrice() bool

HasStopPrice returns a boolean if a field has been set.

func (CryptoOrderForm) MarshalJSON added in v1.0.92

func (o CryptoOrderForm) MarshalJSON() ([]byte, error)

func (*CryptoOrderForm) SetAmount added in v1.0.92

func (o *CryptoOrderForm) SetAmount(v float64)

SetAmount sets field value

func (*CryptoOrderForm) SetExpirationDate added in v1.0.92

func (o *CryptoOrderForm) SetExpirationDate(v time.Time)

SetExpirationDate gets a reference to the given time.Time and assigns it to the ExpirationDate field.

func (*CryptoOrderForm) SetInstrument added in v1.0.92

func (o *CryptoOrderForm) SetInstrument(v CryptoTradingInstrument)

SetInstrument sets field value

func (*CryptoOrderForm) SetLimitPrice added in v1.0.92

func (o *CryptoOrderForm) SetLimitPrice(v float64)

SetLimitPrice gets a reference to the given float64 and assigns it to the LimitPrice field.

func (*CryptoOrderForm) SetPostOnly added in v1.0.92

func (o *CryptoOrderForm) SetPostOnly(v bool)

SetPostOnly gets a reference to the given bool and assigns it to the PostOnly field.

func (*CryptoOrderForm) SetSide added in v1.0.92

func (o *CryptoOrderForm) SetSide(v ActionStrict)

SetSide sets field value

func (*CryptoOrderForm) SetStopPrice added in v1.0.92

func (o *CryptoOrderForm) SetStopPrice(v float64)

SetStopPrice gets a reference to the given float64 and assigns it to the StopPrice field.

func (*CryptoOrderForm) SetTimeInForce added in v1.0.92

func (o *CryptoOrderForm) SetTimeInForce(v string)

SetTimeInForce sets field value

func (*CryptoOrderForm) SetType added in v1.0.92

func (o *CryptoOrderForm) SetType(v string)

SetType sets field value

type CryptoOrderPreview added in v1.0.92

type CryptoOrderPreview struct {
	EstimatedFee         *CryptoOrderPreviewEstimatedFee `json:"estimated_fee,omitempty"`
	AdditionalProperties map[string]interface{}
}

CryptoOrderPreview Preview of an order.

func NewCryptoOrderPreview added in v1.0.92

func NewCryptoOrderPreview() *CryptoOrderPreview

NewCryptoOrderPreview instantiates a new CryptoOrderPreview object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewCryptoOrderPreviewWithDefaults added in v1.0.92

func NewCryptoOrderPreviewWithDefaults() *CryptoOrderPreview

NewCryptoOrderPreviewWithDefaults instantiates a new CryptoOrderPreview object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*CryptoOrderPreview) GetEstimatedFee added in v1.0.92

GetEstimatedFee returns the EstimatedFee field value if set, zero value otherwise.

func (*CryptoOrderPreview) GetEstimatedFeeOk added in v1.0.92

func (o *CryptoOrderPreview) GetEstimatedFeeOk() (*CryptoOrderPreviewEstimatedFee, bool)

GetEstimatedFeeOk returns a tuple with the EstimatedFee field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CryptoOrderPreview) HasEstimatedFee added in v1.0.92

func (o *CryptoOrderPreview) HasEstimatedFee() bool

HasEstimatedFee returns a boolean if a field has been set.

func (CryptoOrderPreview) MarshalJSON added in v1.0.92

func (o CryptoOrderPreview) MarshalJSON() ([]byte, error)

func (*CryptoOrderPreview) SetEstimatedFee added in v1.0.92

func (o *CryptoOrderPreview) SetEstimatedFee(v CryptoOrderPreviewEstimatedFee)

SetEstimatedFee gets a reference to the given CryptoOrderPreviewEstimatedFee and assigns it to the EstimatedFee field.

func (*CryptoOrderPreview) UnmarshalJSON added in v1.0.92

func (o *CryptoOrderPreview) UnmarshalJSON(bytes []byte) (err error)

type CryptoOrderPreviewEstimatedFee added in v1.0.92

type CryptoOrderPreviewEstimatedFee struct {
	// Symbol to identify a cryptocurrency or fiat currency on a crypto exchange. Fiat currencies symbols are ISO-4217 codes.
	Currency             string  `json:"currency"`
	Amount               float64 `json:"amount"`
	AdditionalProperties map[string]interface{}
}

CryptoOrderPreviewEstimatedFee The estimated order fee.

func NewCryptoOrderPreviewEstimatedFee added in v1.0.92

func NewCryptoOrderPreviewEstimatedFee(currency string, amount float64) *CryptoOrderPreviewEstimatedFee

NewCryptoOrderPreviewEstimatedFee instantiates a new CryptoOrderPreviewEstimatedFee object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewCryptoOrderPreviewEstimatedFeeWithDefaults added in v1.0.92

func NewCryptoOrderPreviewEstimatedFeeWithDefaults() *CryptoOrderPreviewEstimatedFee

NewCryptoOrderPreviewEstimatedFeeWithDefaults instantiates a new CryptoOrderPreviewEstimatedFee object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*CryptoOrderPreviewEstimatedFee) GetAmount added in v1.0.92

func (o *CryptoOrderPreviewEstimatedFee) GetAmount() float64

GetAmount returns the Amount field value

func (*CryptoOrderPreviewEstimatedFee) GetAmountOk added in v1.0.92

func (o *CryptoOrderPreviewEstimatedFee) GetAmountOk() (*float64, bool)

GetAmountOk returns a tuple with the Amount field value and a boolean to check if the value has been set.

func (*CryptoOrderPreviewEstimatedFee) GetCurrency added in v1.0.92

func (o *CryptoOrderPreviewEstimatedFee) GetCurrency() string

GetCurrency returns the Currency field value

func (*CryptoOrderPreviewEstimatedFee) GetCurrencyOk added in v1.0.92

func (o *CryptoOrderPreviewEstimatedFee) GetCurrencyOk() (*string, bool)

GetCurrencyOk returns a tuple with the Currency field value and a boolean to check if the value has been set.

func (CryptoOrderPreviewEstimatedFee) MarshalJSON added in v1.0.92

func (o CryptoOrderPreviewEstimatedFee) MarshalJSON() ([]byte, error)

func (*CryptoOrderPreviewEstimatedFee) SetAmount added in v1.0.92

func (o *CryptoOrderPreviewEstimatedFee) SetAmount(v float64)

SetAmount sets field value

func (*CryptoOrderPreviewEstimatedFee) SetCurrency added in v1.0.92

func (o *CryptoOrderPreviewEstimatedFee) SetCurrency(v string)

SetCurrency sets field value

func (*CryptoOrderPreviewEstimatedFee) UnmarshalJSON added in v1.0.92

func (o *CryptoOrderPreviewEstimatedFee) UnmarshalJSON(bytes []byte) (err error)

type CryptoTradingInstrument added in v1.0.92

type CryptoTradingInstrument struct {
	// The instrument's trading ticker symbol
	Symbol string `json:"symbol"`
	// The instrument's type
	Type                 string `json:"type"`
	AdditionalProperties map[string]interface{}
}

CryptoTradingInstrument struct for CryptoTradingInstrument

func NewCryptoTradingInstrument added in v1.0.92

func NewCryptoTradingInstrument(symbol string, type_ string) *CryptoTradingInstrument

NewCryptoTradingInstrument instantiates a new CryptoTradingInstrument object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewCryptoTradingInstrumentWithDefaults added in v1.0.92

func NewCryptoTradingInstrumentWithDefaults() *CryptoTradingInstrument

NewCryptoTradingInstrumentWithDefaults instantiates a new CryptoTradingInstrument object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*CryptoTradingInstrument) GetSymbol added in v1.0.92

func (o *CryptoTradingInstrument) GetSymbol() string

GetSymbol returns the Symbol field value

func (*CryptoTradingInstrument) GetSymbolOk added in v1.0.92

func (o *CryptoTradingInstrument) GetSymbolOk() (*string, bool)

GetSymbolOk returns a tuple with the Symbol field value and a boolean to check if the value has been set.

func (*CryptoTradingInstrument) GetType added in v1.0.92

func (o *CryptoTradingInstrument) GetType() string

GetType returns the Type field value

func (*CryptoTradingInstrument) GetTypeOk added in v1.0.92

func (o *CryptoTradingInstrument) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (CryptoTradingInstrument) MarshalJSON added in v1.0.92

func (o CryptoTradingInstrument) MarshalJSON() ([]byte, error)

func (*CryptoTradingInstrument) SetSymbol added in v1.0.92

func (o *CryptoTradingInstrument) SetSymbol(v string)

SetSymbol sets field value

func (*CryptoTradingInstrument) SetType added in v1.0.92

func (o *CryptoTradingInstrument) SetType(v string)

SetType sets field value

func (*CryptoTradingInstrument) UnmarshalJSON added in v1.0.92

func (o *CryptoTradingInstrument) UnmarshalJSON(bytes []byte) (err error)

type CryptocurrencyPair added in v1.0.56

type CryptocurrencyPair struct {
	// Cryptocurrency pair instrument symbol
	Symbol *string `json:"symbol,omitempty"`
	// The base currency of a pair (e.g., \"BTC\" in BTC/USD). Either fiat or cryptocurrency symbol, for fiat use ISO-4217 codes.
	Base string `json:"base"`
	// The quote currency of a pair (e.g., \"USD\" in BTC/USD). Either fiat or cryptocurrency symbol, for fiat use ISO-4217 codes.
	Quote                string         `json:"quote"`
	Increment            NullableString `json:"increment,omitempty"`
	AdditionalProperties map[string]interface{}
}

CryptocurrencyPair A cryptocurrency pair instrument.

func NewCryptocurrencyPair added in v1.0.56

func NewCryptocurrencyPair(base string, quote string) *CryptocurrencyPair

NewCryptocurrencyPair instantiates a new CryptocurrencyPair object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewCryptocurrencyPairWithDefaults added in v1.0.56

func NewCryptocurrencyPairWithDefaults() *CryptocurrencyPair

NewCryptocurrencyPairWithDefaults instantiates a new CryptocurrencyPair object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*CryptocurrencyPair) GetBase added in v1.0.56

func (o *CryptocurrencyPair) GetBase() string

GetBase returns the Base field value

func (*CryptocurrencyPair) GetBaseOk added in v1.0.56

func (o *CryptocurrencyPair) GetBaseOk() (*string, bool)

GetBaseOk returns a tuple with the Base field value and a boolean to check if the value has been set.

func (*CryptocurrencyPair) GetIncrement added in v1.0.119

func (o *CryptocurrencyPair) GetIncrement() string

GetIncrement returns the Increment field value if set, zero value otherwise (both if not set or set to explicit null).

func (*CryptocurrencyPair) GetIncrementOk added in v1.0.119

func (o *CryptocurrencyPair) GetIncrementOk() (*string, bool)

GetIncrementOk returns a tuple with the Increment field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CryptocurrencyPair) GetQuote added in v1.0.56

func (o *CryptocurrencyPair) GetQuote() string

GetQuote returns the Quote field value

func (*CryptocurrencyPair) GetQuoteOk added in v1.0.56

func (o *CryptocurrencyPair) GetQuoteOk() (*string, bool)

GetQuoteOk returns a tuple with the Quote field value and a boolean to check if the value has been set.

func (*CryptocurrencyPair) GetSymbol added in v1.0.60

func (o *CryptocurrencyPair) GetSymbol() string

GetSymbol returns the Symbol field value if set, zero value otherwise.

func (*CryptocurrencyPair) GetSymbolOk added in v1.0.60

func (o *CryptocurrencyPair) GetSymbolOk() (*string, bool)

GetSymbolOk returns a tuple with the Symbol field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CryptocurrencyPair) HasIncrement added in v1.0.119

func (o *CryptocurrencyPair) HasIncrement() bool

HasIncrement returns a boolean if a field has been set.

func (*CryptocurrencyPair) HasSymbol added in v1.0.60

func (o *CryptocurrencyPair) HasSymbol() bool

HasSymbol returns a boolean if a field has been set.

func (CryptocurrencyPair) MarshalJSON added in v1.0.56

func (o CryptocurrencyPair) MarshalJSON() ([]byte, error)

func (*CryptocurrencyPair) SetBase added in v1.0.56

func (o *CryptocurrencyPair) SetBase(v string)

SetBase sets field value

func (*CryptocurrencyPair) SetIncrement added in v1.0.119

func (o *CryptocurrencyPair) SetIncrement(v string)

SetIncrement gets a reference to the given NullableString and assigns it to the Increment field.

func (*CryptocurrencyPair) SetIncrementNil added in v1.0.119

func (o *CryptocurrencyPair) SetIncrementNil()

SetIncrementNil sets the value for Increment to be an explicit nil

func (*CryptocurrencyPair) SetQuote added in v1.0.56

func (o *CryptocurrencyPair) SetQuote(v string)

SetQuote sets field value

func (*CryptocurrencyPair) SetSymbol added in v1.0.60

func (o *CryptocurrencyPair) SetSymbol(v string)

SetSymbol gets a reference to the given string and assigns it to the Symbol field.

func (*CryptocurrencyPair) UnmarshalJSON added in v1.0.56

func (o *CryptocurrencyPair) UnmarshalJSON(bytes []byte) (err error)

func (*CryptocurrencyPair) UnsetIncrement added in v1.0.119

func (o *CryptocurrencyPair) UnsetIncrement()

UnsetIncrement ensures that no value is present for Increment, not even an explicit nil

type CryptocurrencyPairQuote added in v1.0.60

type CryptocurrencyPairQuote struct {
	// The highest price a buyer is willing to pay.
	Bid float64 `json:"bid"`
	// The lowest price a seller is willing to accept.
	Ask float64 `json:"ask"`
	// The market mid price.
	Mid *float64 `json:"mid,omitempty"`
	// The timestamp of the quote.
	Timestamp            *time.Time `json:"timestamp,omitempty"`
	AdditionalProperties map[string]interface{}
}

CryptocurrencyPairQuote struct for CryptocurrencyPairQuote

func NewCryptocurrencyPairQuote added in v1.0.60

func NewCryptocurrencyPairQuote(bid float64, ask float64) *CryptocurrencyPairQuote

NewCryptocurrencyPairQuote instantiates a new CryptocurrencyPairQuote object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewCryptocurrencyPairQuoteWithDefaults added in v1.0.60

func NewCryptocurrencyPairQuoteWithDefaults() *CryptocurrencyPairQuote

NewCryptocurrencyPairQuoteWithDefaults instantiates a new CryptocurrencyPairQuote object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*CryptocurrencyPairQuote) GetAsk added in v1.0.60

func (o *CryptocurrencyPairQuote) GetAsk() float64

GetAsk returns the Ask field value

func (*CryptocurrencyPairQuote) GetAskOk added in v1.0.60

func (o *CryptocurrencyPairQuote) GetAskOk() (*float64, bool)

GetAskOk returns a tuple with the Ask field value and a boolean to check if the value has been set.

func (*CryptocurrencyPairQuote) GetBid added in v1.0.60

func (o *CryptocurrencyPairQuote) GetBid() float64

GetBid returns the Bid field value

func (*CryptocurrencyPairQuote) GetBidOk added in v1.0.60

func (o *CryptocurrencyPairQuote) GetBidOk() (*float64, bool)

GetBidOk returns a tuple with the Bid field value and a boolean to check if the value has been set.

func (*CryptocurrencyPairQuote) GetMid added in v1.0.60

func (o *CryptocurrencyPairQuote) GetMid() float64

GetMid returns the Mid field value if set, zero value otherwise.

func (*CryptocurrencyPairQuote) GetMidOk added in v1.0.60

func (o *CryptocurrencyPairQuote) GetMidOk() (*float64, bool)

GetMidOk returns a tuple with the Mid field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CryptocurrencyPairQuote) GetTimestamp added in v1.0.60

func (o *CryptocurrencyPairQuote) GetTimestamp() time.Time

GetTimestamp returns the Timestamp field value if set, zero value otherwise.

func (*CryptocurrencyPairQuote) GetTimestampOk added in v1.0.60

func (o *CryptocurrencyPairQuote) GetTimestampOk() (*time.Time, bool)

GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CryptocurrencyPairQuote) HasMid added in v1.0.60

func (o *CryptocurrencyPairQuote) HasMid() bool

HasMid returns a boolean if a field has been set.

func (*CryptocurrencyPairQuote) HasTimestamp added in v1.0.60

func (o *CryptocurrencyPairQuote) HasTimestamp() bool

HasTimestamp returns a boolean if a field has been set.

func (CryptocurrencyPairQuote) MarshalJSON added in v1.0.60

func (o CryptocurrencyPairQuote) MarshalJSON() ([]byte, error)

func (*CryptocurrencyPairQuote) SetAsk added in v1.0.60

func (o *CryptocurrencyPairQuote) SetAsk(v float64)

SetAsk sets field value

func (*CryptocurrencyPairQuote) SetBid added in v1.0.60

func (o *CryptocurrencyPairQuote) SetBid(v float64)

SetBid sets field value

func (*CryptocurrencyPairQuote) SetMid added in v1.0.60

func (o *CryptocurrencyPairQuote) SetMid(v float64)

SetMid gets a reference to the given float64 and assigns it to the Mid field.

func (*CryptocurrencyPairQuote) SetTimestamp added in v1.0.60

func (o *CryptocurrencyPairQuote) SetTimestamp(v time.Time)

SetTimestamp gets a reference to the given time.Time and assigns it to the Timestamp field.

func (*CryptocurrencyPairQuote) UnmarshalJSON added in v1.0.60

func (o *CryptocurrencyPairQuote) UnmarshalJSON(bytes []byte) (err error)

type Currency

type Currency struct {
	// Unique identifier for the currency. This is the UUID used to reference the currency in SnapTrade.
	Id *string `json:"id,omitempty"`
	// The ISO-4217 currency code for the currency.
	Code *string `json:"code,omitempty"`
	// A human-friendly name of the currency.
	Name                 *string `json:"name,omitempty"`
	AdditionalProperties map[string]interface{}
}

Currency Describes a currency object.

func NewCurrency

func NewCurrency() *Currency

NewCurrency instantiates a new Currency object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewCurrencyWithDefaults

func NewCurrencyWithDefaults() *Currency

NewCurrencyWithDefaults instantiates a new Currency object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Currency) GetCode

func (o *Currency) GetCode() string

GetCode returns the Code field value if set, zero value otherwise.

func (*Currency) GetCodeOk

func (o *Currency) GetCodeOk() (*string, bool)

GetCodeOk returns a tuple with the Code field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Currency) GetId

func (o *Currency) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*Currency) GetIdOk

func (o *Currency) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Currency) GetName

func (o *Currency) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*Currency) GetNameOk

func (o *Currency) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Currency) HasCode

func (o *Currency) HasCode() bool

HasCode returns a boolean if a field has been set.

func (*Currency) HasId

func (o *Currency) HasId() bool

HasId returns a boolean if a field has been set.

func (*Currency) HasName

func (o *Currency) HasName() bool

HasName returns a boolean if a field has been set.

func (Currency) MarshalJSON

func (o Currency) MarshalJSON() ([]byte, error)

func (*Currency) SetCode

func (o *Currency) SetCode(v string)

SetCode gets a reference to the given string and assigns it to the Code field.

func (*Currency) SetId

func (o *Currency) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*Currency) SetName

func (o *Currency) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*Currency) UnmarshalJSON

func (o *Currency) UnmarshalJSON(bytes []byte) (err error)

type DeleteUserResponse

type DeleteUserResponse struct {
	// This is always `deleted` when a user is queued for deletion.
	Status *string `json:"status,omitempty"`
	// Human friendly message about the deletion status.
	Detail *string `json:"detail,omitempty"`
	// SnapTrade User ID. This is chosen by the API partner and can be any string that is a) unique to the user, and b) immutable for the user. It is recommended to NOT use email addresses for this property because they are usually not immutable.
	UserId               *string `json:"userId,omitempty"`
	AdditionalProperties map[string]interface{}
}

DeleteUserResponse struct for DeleteUserResponse

func NewDeleteUserResponse

func NewDeleteUserResponse() *DeleteUserResponse

NewDeleteUserResponse instantiates a new DeleteUserResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewDeleteUserResponseWithDefaults

func NewDeleteUserResponseWithDefaults() *DeleteUserResponse

NewDeleteUserResponseWithDefaults instantiates a new DeleteUserResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*DeleteUserResponse) GetDetail added in v1.0.6

func (o *DeleteUserResponse) GetDetail() string

GetDetail returns the Detail field value if set, zero value otherwise.

func (*DeleteUserResponse) GetDetailOk added in v1.0.6

func (o *DeleteUserResponse) GetDetailOk() (*string, bool)

GetDetailOk returns a tuple with the Detail field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DeleteUserResponse) GetStatus

func (o *DeleteUserResponse) GetStatus() string

GetStatus returns the Status field value if set, zero value otherwise.

func (*DeleteUserResponse) GetStatusOk

func (o *DeleteUserResponse) GetStatusOk() (*string, bool)

GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DeleteUserResponse) GetUserId

func (o *DeleteUserResponse) GetUserId() string

GetUserId returns the UserId field value if set, zero value otherwise.

func (*DeleteUserResponse) GetUserIdOk

func (o *DeleteUserResponse) GetUserIdOk() (*string, bool)

GetUserIdOk returns a tuple with the UserId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DeleteUserResponse) HasDetail added in v1.0.6

func (o *DeleteUserResponse) HasDetail() bool

HasDetail returns a boolean if a field has been set.

func (*DeleteUserResponse) HasStatus

func (o *DeleteUserResponse) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (*DeleteUserResponse) HasUserId

func (o *DeleteUserResponse) HasUserId() bool

HasUserId returns a boolean if a field has been set.

func (DeleteUserResponse) MarshalJSON

func (o DeleteUserResponse) MarshalJSON() ([]byte, error)

func (*DeleteUserResponse) SetDetail added in v1.0.6

func (o *DeleteUserResponse) SetDetail(v string)

SetDetail gets a reference to the given string and assigns it to the Detail field.

func (*DeleteUserResponse) SetStatus

func (o *DeleteUserResponse) SetStatus(v string)

SetStatus gets a reference to the given string and assigns it to the Status field.

func (*DeleteUserResponse) SetUserId

func (o *DeleteUserResponse) SetUserId(v string)

SetUserId gets a reference to the given string and assigns it to the UserId field.

func (*DeleteUserResponse) UnmarshalJSON

func (o *DeleteUserResponse) UnmarshalJSON(bytes []byte) (err error)

type DividendAtDate

type DividendAtDate struct {
	// The ticker of the symbol that the dividend came from
	Symbol NullableString `json:"symbol,omitempty"`
	// The amount received from the dividend
	Amount NullableFloat32 `json:"amount,omitempty"`
	// The currency of the amount
	Currency             *string `json:"currency,omitempty"`
	AdditionalProperties map[string]interface{}
}

DividendAtDate struct for DividendAtDate

func NewDividendAtDate

func NewDividendAtDate() *DividendAtDate

NewDividendAtDate instantiates a new DividendAtDate object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewDividendAtDateWithDefaults

func NewDividendAtDateWithDefaults() *DividendAtDate

NewDividendAtDateWithDefaults instantiates a new DividendAtDate object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*DividendAtDate) GetAmount

func (o *DividendAtDate) GetAmount() float32

GetAmount returns the Amount field value if set, zero value otherwise (both if not set or set to explicit null).

func (*DividendAtDate) GetAmountOk

func (o *DividendAtDate) GetAmountOk() (*float32, bool)

GetAmountOk returns a tuple with the Amount field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*DividendAtDate) GetCurrency

func (o *DividendAtDate) GetCurrency() string

GetCurrency returns the Currency field value if set, zero value otherwise.

func (*DividendAtDate) GetCurrencyOk

func (o *DividendAtDate) GetCurrencyOk() (*string, bool)

GetCurrencyOk returns a tuple with the Currency field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DividendAtDate) GetSymbol

func (o *DividendAtDate) GetSymbol() string

GetSymbol returns the Symbol field value if set, zero value otherwise (both if not set or set to explicit null).

func (*DividendAtDate) GetSymbolOk

func (o *DividendAtDate) GetSymbolOk() (*string, bool)

GetSymbolOk returns a tuple with the Symbol field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*DividendAtDate) HasAmount

func (o *DividendAtDate) HasAmount() bool

HasAmount returns a boolean if a field has been set.

func (*DividendAtDate) HasCurrency

func (o *DividendAtDate) HasCurrency() bool

HasCurrency returns a boolean if a field has been set.

func (*DividendAtDate) HasSymbol

func (o *DividendAtDate) HasSymbol() bool

HasSymbol returns a boolean if a field has been set.

func (DividendAtDate) MarshalJSON

func (o DividendAtDate) MarshalJSON() ([]byte, error)

func (*DividendAtDate) SetAmount

func (o *DividendAtDate) SetAmount(v float32)

SetAmount gets a reference to the given NullableFloat32 and assigns it to the Amount field.

func (*DividendAtDate) SetAmountNil

func (o *DividendAtDate) SetAmountNil()

SetAmountNil sets the value for Amount to be an explicit nil

func (*DividendAtDate) SetCurrency

func (o *DividendAtDate) SetCurrency(v string)

SetCurrency gets a reference to the given string and assigns it to the Currency field.

func (*DividendAtDate) SetSymbol

func (o *DividendAtDate) SetSymbol(v string)

SetSymbol gets a reference to the given NullableString and assigns it to the Symbol field.

func (*DividendAtDate) SetSymbolNil

func (o *DividendAtDate) SetSymbolNil()

SetSymbolNil sets the value for Symbol to be an explicit nil

func (*DividendAtDate) UnmarshalJSON

func (o *DividendAtDate) UnmarshalJSON(bytes []byte) (err error)

func (*DividendAtDate) UnsetAmount

func (o *DividendAtDate) UnsetAmount()

UnsetAmount ensures that no value is present for Amount, not even an explicit nil

func (*DividendAtDate) UnsetSymbol

func (o *DividendAtDate) UnsetSymbol()

UnsetSymbol ensures that no value is present for Symbol, not even an explicit nil

type EncryptedResponse

type EncryptedResponse struct {
	EncryptedSharedKey   *string                                `json:"encryptedSharedKey,omitempty"`
	EncryptedMessageData *EncryptedResponseEncryptedMessageData `json:"encryptedMessageData,omitempty"`
}

EncryptedResponse This response consists of 2 different components that must be decrypted to obtain the decrypted message * Decrypting the encryptedSharedKey The encrypted shared key is a shared key that was randomly generated by SnapTrade and encrypted using the users SSH public key provided when registering the user It is needed to decrypt the message in step 2. To decrypt the shared key, the user should have access to their SSH private key stored locally in their device An example Python code on how to decrypt the shared key is shown below ``` def decrypt_rsa_message(self, encrypted_message): from Crypto.Cipher import PKCS1_OAEP from Crypto.PublicKey import RSA from base64 import b64decode f = open('private.pem', 'r') private_key = RSA.import_key(f.read()) cipher = PKCS1_OAEP.new(private_key) return cipher.decrypt(b64decode(encrypted_message.encode())).decode() ``` * Decrypting the encryptedMessageData The data meant to be returned by an endpoint can be obtained by decrypting the encrypted message An encrypted message is a message that is encrypted using AES - MODE OCB with the shared key obtained in step one An example code to decrypt the encrypted message is shown below ``` def decrypt_aes_message(self, shared_key, encrypted_message): from Crypto.Cipher import AES from base64 import b64decode encrypted_msg = b64decode(encrypted_message[\"encryptedMessage\"].encode()) tag = b64decode(encrypted_message[\"tag\"].encode()) nonce = b64decode(encrypted_message[\"nonce\"].encode()) cipher = AES.new(shared_key.encode(), AES.MODE_OCB, nonce=nonce) return cipher.decrypt_and_verify(encrypted_msg, tag).decode() ```

func NewEncryptedResponse

func NewEncryptedResponse() *EncryptedResponse

NewEncryptedResponse instantiates a new EncryptedResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewEncryptedResponseWithDefaults

func NewEncryptedResponseWithDefaults() *EncryptedResponse

NewEncryptedResponseWithDefaults instantiates a new EncryptedResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*EncryptedResponse) GetEncryptedMessageData

func (o *EncryptedResponse) GetEncryptedMessageData() EncryptedResponseEncryptedMessageData

GetEncryptedMessageData returns the EncryptedMessageData field value if set, zero value otherwise.

func (*EncryptedResponse) GetEncryptedMessageDataOk

func (o *EncryptedResponse) GetEncryptedMessageDataOk() (*EncryptedResponseEncryptedMessageData, bool)

GetEncryptedMessageDataOk returns a tuple with the EncryptedMessageData field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EncryptedResponse) GetEncryptedSharedKey

func (o *EncryptedResponse) GetEncryptedSharedKey() string

GetEncryptedSharedKey returns the EncryptedSharedKey field value if set, zero value otherwise.

func (*EncryptedResponse) GetEncryptedSharedKeyOk

func (o *EncryptedResponse) GetEncryptedSharedKeyOk() (*string, bool)

GetEncryptedSharedKeyOk returns a tuple with the EncryptedSharedKey field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EncryptedResponse) HasEncryptedMessageData

func (o *EncryptedResponse) HasEncryptedMessageData() bool

HasEncryptedMessageData returns a boolean if a field has been set.

func (*EncryptedResponse) HasEncryptedSharedKey

func (o *EncryptedResponse) HasEncryptedSharedKey() bool

HasEncryptedSharedKey returns a boolean if a field has been set.

func (EncryptedResponse) MarshalJSON

func (o EncryptedResponse) MarshalJSON() ([]byte, error)

func (*EncryptedResponse) SetEncryptedMessageData

func (o *EncryptedResponse) SetEncryptedMessageData(v EncryptedResponseEncryptedMessageData)

SetEncryptedMessageData gets a reference to the given EncryptedResponseEncryptedMessageData and assigns it to the EncryptedMessageData field.

func (*EncryptedResponse) SetEncryptedSharedKey

func (o *EncryptedResponse) SetEncryptedSharedKey(v string)

SetEncryptedSharedKey gets a reference to the given string and assigns it to the EncryptedSharedKey field.

type EncryptedResponseEncryptedMessageData

type EncryptedResponseEncryptedMessageData struct {
	EncryptedMessage     *string `json:"encryptedMessage,omitempty"`
	Tag                  *string `json:"tag,omitempty"`
	Nonce                *string `json:"nonce,omitempty"`
	AdditionalProperties map[string]interface{}
}

EncryptedResponseEncryptedMessageData struct for EncryptedResponseEncryptedMessageData

func NewEncryptedResponseEncryptedMessageData

func NewEncryptedResponseEncryptedMessageData() *EncryptedResponseEncryptedMessageData

NewEncryptedResponseEncryptedMessageData instantiates a new EncryptedResponseEncryptedMessageData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewEncryptedResponseEncryptedMessageDataWithDefaults

func NewEncryptedResponseEncryptedMessageDataWithDefaults() *EncryptedResponseEncryptedMessageData

NewEncryptedResponseEncryptedMessageDataWithDefaults instantiates a new EncryptedResponseEncryptedMessageData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*EncryptedResponseEncryptedMessageData) GetEncryptedMessage

func (o *EncryptedResponseEncryptedMessageData) GetEncryptedMessage() string

GetEncryptedMessage returns the EncryptedMessage field value if set, zero value otherwise.

func (*EncryptedResponseEncryptedMessageData) GetEncryptedMessageOk

func (o *EncryptedResponseEncryptedMessageData) GetEncryptedMessageOk() (*string, bool)

GetEncryptedMessageOk returns a tuple with the EncryptedMessage field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EncryptedResponseEncryptedMessageData) GetNonce

GetNonce returns the Nonce field value if set, zero value otherwise.

func (*EncryptedResponseEncryptedMessageData) GetNonceOk

GetNonceOk returns a tuple with the Nonce field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EncryptedResponseEncryptedMessageData) GetTag

GetTag returns the Tag field value if set, zero value otherwise.

func (*EncryptedResponseEncryptedMessageData) GetTagOk

GetTagOk returns a tuple with the Tag field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EncryptedResponseEncryptedMessageData) HasEncryptedMessage

func (o *EncryptedResponseEncryptedMessageData) HasEncryptedMessage() bool

HasEncryptedMessage returns a boolean if a field has been set.

func (*EncryptedResponseEncryptedMessageData) HasNonce

HasNonce returns a boolean if a field has been set.

func (*EncryptedResponseEncryptedMessageData) HasTag

HasTag returns a boolean if a field has been set.

func (EncryptedResponseEncryptedMessageData) MarshalJSON

func (o EncryptedResponseEncryptedMessageData) MarshalJSON() ([]byte, error)

func (*EncryptedResponseEncryptedMessageData) SetEncryptedMessage

func (o *EncryptedResponseEncryptedMessageData) SetEncryptedMessage(v string)

SetEncryptedMessage gets a reference to the given string and assigns it to the EncryptedMessage field.

func (*EncryptedResponseEncryptedMessageData) SetNonce

SetNonce gets a reference to the given string and assigns it to the Nonce field.

func (*EncryptedResponseEncryptedMessageData) SetTag

SetTag gets a reference to the given string and assigns it to the Tag field.

func (*EncryptedResponseEncryptedMessageData) UnmarshalJSON

func (o *EncryptedResponseEncryptedMessageData) UnmarshalJSON(bytes []byte) (err error)

type Exchange

type Exchange struct {
	// Unique ID for the exchange in SnapTrade.
	Id *string `json:"id,omitempty"`
	// A short name for the exchange. For standardized exchange code, please us the `mic_code` field.
	Code *string `json:"code,omitempty"`
	// The [Market Identifier Code](https://en.wikipedia.org/wiki/Market_Identifier_Code) (MIC) for the exchange.
	MicCode *string `json:"mic_code,omitempty"`
	// The full name of the exchange.
	Name *string `json:"name,omitempty"`
	// The timezone for the trading hours (`start_time` and `close_time`) of the exchange.
	Timezone *string `json:"timezone,omitempty"`
	// The time when the exchange opens for trading.
	StartTime *string `json:"start_time,omitempty"`
	// The time when the exchange closes for trading.
	CloseTime *string `json:"close_time,omitempty"`
	// The suffix to be appended to the symbol when trading on this exchange. For example, the suffix for the Toronto Stock Exchange is `.TO`. See `UniversalSymbol->symbol` and `UniversalSymbol->raw_symbol` for more detail.
	Suffix               NullableString `json:"suffix,omitempty"`
	AdditionalProperties map[string]interface{}
}

Exchange Describes a single stock or crypto exchange.

func NewExchange

func NewExchange() *Exchange

NewExchange instantiates a new Exchange object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewExchangeWithDefaults

func NewExchangeWithDefaults() *Exchange

NewExchangeWithDefaults instantiates a new Exchange object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Exchange) GetCloseTime

func (o *Exchange) GetCloseTime() string

GetCloseTime returns the CloseTime field value if set, zero value otherwise.

func (*Exchange) GetCloseTimeOk

func (o *Exchange) GetCloseTimeOk() (*string, bool)

GetCloseTimeOk returns a tuple with the CloseTime field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Exchange) GetCode

func (o *Exchange) GetCode() string

GetCode returns the Code field value if set, zero value otherwise.

func (*Exchange) GetCodeOk

func (o *Exchange) GetCodeOk() (*string, bool)

GetCodeOk returns a tuple with the Code field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Exchange) GetId

func (o *Exchange) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*Exchange) GetIdOk

func (o *Exchange) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Exchange) GetMicCode

func (o *Exchange) GetMicCode() string

GetMicCode returns the MicCode field value if set, zero value otherwise.

func (*Exchange) GetMicCodeOk

func (o *Exchange) GetMicCodeOk() (*string, bool)

GetMicCodeOk returns a tuple with the MicCode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Exchange) GetName

func (o *Exchange) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*Exchange) GetNameOk

func (o *Exchange) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Exchange) GetStartTime

func (o *Exchange) GetStartTime() string

GetStartTime returns the StartTime field value if set, zero value otherwise.

func (*Exchange) GetStartTimeOk

func (o *Exchange) GetStartTimeOk() (*string, bool)

GetStartTimeOk returns a tuple with the StartTime field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Exchange) GetSuffix

func (o *Exchange) GetSuffix() string

GetSuffix returns the Suffix field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Exchange) GetSuffixOk

func (o *Exchange) GetSuffixOk() (*string, bool)

GetSuffixOk returns a tuple with the Suffix field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Exchange) GetTimezone

func (o *Exchange) GetTimezone() string

GetTimezone returns the Timezone field value if set, zero value otherwise.

func (*Exchange) GetTimezoneOk

func (o *Exchange) GetTimezoneOk() (*string, bool)

GetTimezoneOk returns a tuple with the Timezone field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Exchange) HasCloseTime

func (o *Exchange) HasCloseTime() bool

HasCloseTime returns a boolean if a field has been set.

func (*Exchange) HasCode

func (o *Exchange) HasCode() bool

HasCode returns a boolean if a field has been set.

func (*Exchange) HasId

func (o *Exchange) HasId() bool

HasId returns a boolean if a field has been set.

func (*Exchange) HasMicCode

func (o *Exchange) HasMicCode() bool

HasMicCode returns a boolean if a field has been set.

func (*Exchange) HasName

func (o *Exchange) HasName() bool

HasName returns a boolean if a field has been set.

func (*Exchange) HasStartTime

func (o *Exchange) HasStartTime() bool

HasStartTime returns a boolean if a field has been set.

func (*Exchange) HasSuffix

func (o *Exchange) HasSuffix() bool

HasSuffix returns a boolean if a field has been set.

func (*Exchange) HasTimezone

func (o *Exchange) HasTimezone() bool

HasTimezone returns a boolean if a field has been set.

func (Exchange) MarshalJSON

func (o Exchange) MarshalJSON() ([]byte, error)

func (*Exchange) SetCloseTime

func (o *Exchange) SetCloseTime(v string)

SetCloseTime gets a reference to the given string and assigns it to the CloseTime field.

func (*Exchange) SetCode

func (o *Exchange) SetCode(v string)

SetCode gets a reference to the given string and assigns it to the Code field.

func (*Exchange) SetId

func (o *Exchange) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*Exchange) SetMicCode

func (o *Exchange) SetMicCode(v string)

SetMicCode gets a reference to the given string and assigns it to the MicCode field.

func (*Exchange) SetName

func (o *Exchange) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*Exchange) SetStartTime

func (o *Exchange) SetStartTime(v string)

SetStartTime gets a reference to the given string and assigns it to the StartTime field.

func (*Exchange) SetSuffix

func (o *Exchange) SetSuffix(v string)

SetSuffix gets a reference to the given NullableString and assigns it to the Suffix field.

func (*Exchange) SetSuffixNil

func (o *Exchange) SetSuffixNil()

SetSuffixNil sets the value for Suffix to be an explicit nil

func (*Exchange) SetTimezone

func (o *Exchange) SetTimezone(v string)

SetTimezone gets a reference to the given string and assigns it to the Timezone field.

func (*Exchange) UnmarshalJSON

func (o *Exchange) UnmarshalJSON(bytes []byte) (err error)

func (*Exchange) UnsetSuffix

func (o *Exchange) UnsetSuffix()

UnsetSuffix ensures that no value is present for Suffix, not even an explicit nil

type ExchangeRatePairs

type ExchangeRatePairs struct {
	Src                  *Currency `json:"src,omitempty"`
	Dst                  *Currency `json:"dst,omitempty"`
	ExchangeRate         *float32  `json:"exchange_rate,omitempty"`
	AdditionalProperties map[string]interface{}
}

ExchangeRatePairs The exchange rate of a pair of currencies

func NewExchangeRatePairs

func NewExchangeRatePairs() *ExchangeRatePairs

NewExchangeRatePairs instantiates a new ExchangeRatePairs object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewExchangeRatePairsWithDefaults

func NewExchangeRatePairsWithDefaults() *ExchangeRatePairs

NewExchangeRatePairsWithDefaults instantiates a new ExchangeRatePairs object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ExchangeRatePairs) GetDst

func (o *ExchangeRatePairs) GetDst() Currency

GetDst returns the Dst field value if set, zero value otherwise.

func (*ExchangeRatePairs) GetDstOk

func (o *ExchangeRatePairs) GetDstOk() (*Currency, bool)

GetDstOk returns a tuple with the Dst field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ExchangeRatePairs) GetExchangeRate

func (o *ExchangeRatePairs) GetExchangeRate() float32

GetExchangeRate returns the ExchangeRate field value if set, zero value otherwise.

func (*ExchangeRatePairs) GetExchangeRateOk

func (o *ExchangeRatePairs) GetExchangeRateOk() (*float32, bool)

GetExchangeRateOk returns a tuple with the ExchangeRate field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ExchangeRatePairs) GetSrc

func (o *ExchangeRatePairs) GetSrc() Currency

GetSrc returns the Src field value if set, zero value otherwise.

func (*ExchangeRatePairs) GetSrcOk

func (o *ExchangeRatePairs) GetSrcOk() (*Currency, bool)

GetSrcOk returns a tuple with the Src field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ExchangeRatePairs) HasDst

func (o *ExchangeRatePairs) HasDst() bool

HasDst returns a boolean if a field has been set.

func (*ExchangeRatePairs) HasExchangeRate

func (o *ExchangeRatePairs) HasExchangeRate() bool

HasExchangeRate returns a boolean if a field has been set.

func (*ExchangeRatePairs) HasSrc

func (o *ExchangeRatePairs) HasSrc() bool

HasSrc returns a boolean if a field has been set.

func (ExchangeRatePairs) MarshalJSON

func (o ExchangeRatePairs) MarshalJSON() ([]byte, error)

func (*ExchangeRatePairs) SetDst

func (o *ExchangeRatePairs) SetDst(v Currency)

SetDst gets a reference to the given Currency and assigns it to the Dst field.

func (*ExchangeRatePairs) SetExchangeRate

func (o *ExchangeRatePairs) SetExchangeRate(v float32)

SetExchangeRate gets a reference to the given float32 and assigns it to the ExchangeRate field.

func (*ExchangeRatePairs) SetSrc

func (o *ExchangeRatePairs) SetSrc(v Currency)

SetSrc gets a reference to the given Currency and assigns it to the Src field.

func (*ExchangeRatePairs) UnmarshalJSON

func (o *ExchangeRatePairs) UnmarshalJSON(bytes []byte) (err error)

type ExperimentalEndpointsApiGetUserAccountOrdersV2Request added in v1.0.117

type ExperimentalEndpointsApiGetUserAccountOrdersV2Request struct {
	ApiService *ExperimentalEndpointsApiService
	// contains filtered or unexported fields
}

func (*ExperimentalEndpointsApiGetUserAccountOrdersV2Request) Days added in v1.0.117

Number of days in the past to fetch the most recent orders. Defaults to the last 30 days if no value is passed in.

func (ExperimentalEndpointsApiGetUserAccountOrdersV2Request) Execute added in v1.0.117

func (*ExperimentalEndpointsApiGetUserAccountOrdersV2Request) State added in v1.0.117

defaults value is set to \"all\"

type ExperimentalEndpointsApiGetUserAccountRecentOrdersV2Request added in v1.0.117

type ExperimentalEndpointsApiGetUserAccountRecentOrdersV2Request struct {
	ApiService *ExperimentalEndpointsApiService
	// contains filtered or unexported fields
}

func (ExperimentalEndpointsApiGetUserAccountRecentOrdersV2Request) Execute added in v1.0.117

func (*ExperimentalEndpointsApiGetUserAccountRecentOrdersV2Request) OnlyExecuted added in v1.0.117

Defaults to true. Indicates if request should fetch only executed orders. Set to false to retrieve non executed orders as well

type ExperimentalEndpointsApiService added in v1.0.117

type ExperimentalEndpointsApiService service

ExperimentalEndpointsApiService ExperimentalEndpointsApi service

func (*ExperimentalEndpointsApiService) GetUserAccountOrdersV2 added in v1.0.117

func (a *ExperimentalEndpointsApiService) GetUserAccountOrdersV2(userId string, userSecret string, accountId string) ExperimentalEndpointsApiGetUserAccountOrdersV2Request

GetUserAccountOrdersV2 List account orders v2

Returns a list of recent orders in the specified account.

The V2 order response format will include all legs of each order in the `legs` list field. If the order is single legged, `legs` will be a list of one leg.

If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param userId
@param userSecret
@param accountId
@return ExperimentalEndpointsApiGetUserAccountOrdersV2Request

func (*ExperimentalEndpointsApiService) GetUserAccountOrdersV2Execute added in v1.0.117

Execute executes the request

@return AccountOrdersV2Response

func (*ExperimentalEndpointsApiService) GetUserAccountRecentOrdersV2 added in v1.0.117

func (a *ExperimentalEndpointsApiService) GetUserAccountRecentOrdersV2(userId string, userSecret string, accountId string) ExperimentalEndpointsApiGetUserAccountRecentOrdersV2Request

GetUserAccountRecentOrdersV2 List account recent orders (V2, last 24 hours only)

A lightweight endpoint that returns a list of orders executed in the last 24 hours in the specified account using the V2 order format. This endpoint is realtime and can be used to quickly check if account state has recently changed due to an execution, or check status of recently placed orders. Differs from /orders in that it is realtime, and only checks the last 24 hours as opposed to the last 30 days. By default only returns executed orders, but that can be changed by setting *only_executed* to false. **Because of the cost of realtime requests, each call to this endpoint incurs an additional charge. You can find the exact cost for your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing)**

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param userId
@param userSecret
@param accountId
@return ExperimentalEndpointsApiGetUserAccountRecentOrdersV2Request

func (*ExperimentalEndpointsApiService) GetUserAccountRecentOrdersV2Execute added in v1.0.117

Execute executes the request

@return AccountOrdersV2Response

type FigiInstrument

type FigiInstrument struct {
	// This identifier is unique per security per trading venue. See section 1.4.1 of the [FIGI Standard](https://www.openfigi.com/assets/local/figi-allocation-rules.pdf) for more information.
	FigiCode NullableString `json:"figi_code,omitempty"`
	// This enables users to link multiple FIGIs for the same security in order to obtain an aggregated view across all countries and all exchanges. For example, `AAPL` has a different FIGI for each exchange/trading venue it is traded on. The `figi_share_class` is the same for all of these FIGIs. See section 1.4.3 of the [FIGI Standard](https://www.openfigi.com/assets/local/figi-allocation-rules.pdf) for more information.
	FigiShareClass       NullableString `json:"figi_share_class,omitempty"`
	AdditionalProperties map[string]interface{}
}

FigiInstrument Financial Instrument Global Identifier (FIGI) information for the security. See [OpenFIGI](https://www.openfigi.com/) for more information.

func NewFigiInstrument

func NewFigiInstrument() *FigiInstrument

NewFigiInstrument instantiates a new FigiInstrument object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewFigiInstrumentWithDefaults

func NewFigiInstrumentWithDefaults() *FigiInstrument

NewFigiInstrumentWithDefaults instantiates a new FigiInstrument object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*FigiInstrument) GetFigiCode

func (o *FigiInstrument) GetFigiCode() string

GetFigiCode returns the FigiCode field value if set, zero value otherwise (both if not set or set to explicit null).

func (*FigiInstrument) GetFigiCodeOk

func (o *FigiInstrument) GetFigiCodeOk() (*string, bool)

GetFigiCodeOk returns a tuple with the FigiCode field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*FigiInstrument) GetFigiShareClass

func (o *FigiInstrument) GetFigiShareClass() string

GetFigiShareClass returns the FigiShareClass field value if set, zero value otherwise (both if not set or set to explicit null).

func (*FigiInstrument) GetFigiShareClassOk

func (o *FigiInstrument) GetFigiShareClassOk() (*string, bool)

GetFigiShareClassOk returns a tuple with the FigiShareClass field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*FigiInstrument) HasFigiCode

func (o *FigiInstrument) HasFigiCode() bool

HasFigiCode returns a boolean if a field has been set.

func (*FigiInstrument) HasFigiShareClass

func (o *FigiInstrument) HasFigiShareClass() bool

HasFigiShareClass returns a boolean if a field has been set.

func (FigiInstrument) MarshalJSON

func (o FigiInstrument) MarshalJSON() ([]byte, error)

func (*FigiInstrument) SetFigiCode

func (o *FigiInstrument) SetFigiCode(v string)

SetFigiCode gets a reference to the given NullableString and assigns it to the FigiCode field.

func (*FigiInstrument) SetFigiCodeNil

func (o *FigiInstrument) SetFigiCodeNil()

SetFigiCodeNil sets the value for FigiCode to be an explicit nil

func (*FigiInstrument) SetFigiShareClass

func (o *FigiInstrument) SetFigiShareClass(v string)

SetFigiShareClass gets a reference to the given NullableString and assigns it to the FigiShareClass field.

func (*FigiInstrument) SetFigiShareClassNil

func (o *FigiInstrument) SetFigiShareClassNil()

SetFigiShareClassNil sets the value for FigiShareClass to be an explicit nil

func (*FigiInstrument) UnmarshalJSON

func (o *FigiInstrument) UnmarshalJSON(bytes []byte) (err error)

func (*FigiInstrument) UnsetFigiCode

func (o *FigiInstrument) UnsetFigiCode()

UnsetFigiCode ensures that no value is present for FigiCode, not even an explicit nil

func (*FigiInstrument) UnsetFigiShareClass

func (o *FigiInstrument) UnsetFigiShareClass()

UnsetFigiShareClass ensures that no value is present for FigiShareClass, not even an explicit nil

type GenericOpenAPIError

type GenericOpenAPIError struct {
	// contains filtered or unexported fields
}

GenericOpenAPIError Provides access to the body, error and model on returned errors.

func (GenericOpenAPIError) Body

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error

func (e GenericOpenAPIError) Error() string

Error returns non-empty string if there was an error.

func (GenericOpenAPIError) Model

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

type HoldingsStatus

type HoldingsStatus struct {
	// Indicates if the initial sync of holdings has been completed. For accounts with a large number of positions/orders/transactions, the initial sync may take a while to complete.
	InitialSyncCompleted *bool `json:"initial_sync_completed,omitempty"`
	// The last time holdings were successfully synced by SnapTrade.
	LastSuccessfulSync NullableTime `json:"last_successful_sync,omitempty"`
}

HoldingsStatus Status of account holdings sync. SnapTrade syncs holdings from the brokerage under the following conditions: 1. Initial connection - SnapTrade syncs all holdings (positions, balances, recent orders, and transactions) immediately after the connection is established. 2. Daily sync - Once a day SnapTrade refreshes all holdings from the brokerage. 3. Manual sync - You can trigger a refresh of holdings with the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint.

func NewHoldingsStatus

func NewHoldingsStatus() *HoldingsStatus

NewHoldingsStatus instantiates a new HoldingsStatus object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewHoldingsStatusWithDefaults

func NewHoldingsStatusWithDefaults() *HoldingsStatus

NewHoldingsStatusWithDefaults instantiates a new HoldingsStatus object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*HoldingsStatus) GetInitialSyncCompleted

func (o *HoldingsStatus) GetInitialSyncCompleted() bool

GetInitialSyncCompleted returns the InitialSyncCompleted field value if set, zero value otherwise.

func (*HoldingsStatus) GetInitialSyncCompletedOk

func (o *HoldingsStatus) GetInitialSyncCompletedOk() (*bool, bool)

GetInitialSyncCompletedOk returns a tuple with the InitialSyncCompleted field value if set, nil otherwise and a boolean to check if the value has been set.

func (*HoldingsStatus) GetLastSuccessfulSync

func (o *HoldingsStatus) GetLastSuccessfulSync() time.Time

GetLastSuccessfulSync returns the LastSuccessfulSync field value if set, zero value otherwise (both if not set or set to explicit null).

func (*HoldingsStatus) GetLastSuccessfulSyncOk

func (o *HoldingsStatus) GetLastSuccessfulSyncOk() (*time.Time, bool)

GetLastSuccessfulSyncOk returns a tuple with the LastSuccessfulSync field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*HoldingsStatus) HasInitialSyncCompleted

func (o *HoldingsStatus) HasInitialSyncCompleted() bool

HasInitialSyncCompleted returns a boolean if a field has been set.

func (*HoldingsStatus) HasLastSuccessfulSync

func (o *HoldingsStatus) HasLastSuccessfulSync() bool

HasLastSuccessfulSync returns a boolean if a field has been set.

func (HoldingsStatus) MarshalJSON

func (o HoldingsStatus) MarshalJSON() ([]byte, error)

func (*HoldingsStatus) SetInitialSyncCompleted

func (o *HoldingsStatus) SetInitialSyncCompleted(v bool)

SetInitialSyncCompleted gets a reference to the given bool and assigns it to the InitialSyncCompleted field.

func (*HoldingsStatus) SetLastSuccessfulSync

func (o *HoldingsStatus) SetLastSuccessfulSync(v time.Time)

SetLastSuccessfulSync gets a reference to the given NullableTime.Time and assigns it to the LastSuccessfulSync field.

func (*HoldingsStatus) SetLastSuccessfulSyncNil

func (o *HoldingsStatus) SetLastSuccessfulSyncNil()

SetLastSuccessfulSyncNil sets the value for LastSuccessfulSync to be an explicit nil

func (*HoldingsStatus) UnsetLastSuccessfulSync

func (o *HoldingsStatus) UnsetLastSuccessfulSync()

UnsetLastSuccessfulSync ensures that no value is present for LastSuccessfulSync, not even an explicit nil

type LoginRedirectURI

type LoginRedirectURI struct {
	// Connection Portal link to redirect user to connect a brokerage account.
	RedirectURI *string `json:"redirectURI,omitempty"`
	// ID to identify the connection portal session.
	SessionId *string `json:"sessionId,omitempty"`
}

LoginRedirectURI Redirect uri upon successful login

func NewLoginRedirectURI

func NewLoginRedirectURI() *LoginRedirectURI

NewLoginRedirectURI instantiates a new LoginRedirectURI object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewLoginRedirectURIWithDefaults

func NewLoginRedirectURIWithDefaults() *LoginRedirectURI

NewLoginRedirectURIWithDefaults instantiates a new LoginRedirectURI object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*LoginRedirectURI) GetRedirectURI

func (o *LoginRedirectURI) GetRedirectURI() string

GetRedirectURI returns the RedirectURI field value if set, zero value otherwise.

func (*LoginRedirectURI) GetRedirectURIOk

func (o *LoginRedirectURI) GetRedirectURIOk() (*string, bool)

GetRedirectURIOk returns a tuple with the RedirectURI field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LoginRedirectURI) GetSessionId

func (o *LoginRedirectURI) GetSessionId() string

GetSessionId returns the SessionId field value if set, zero value otherwise.

func (*LoginRedirectURI) GetSessionIdOk

func (o *LoginRedirectURI) GetSessionIdOk() (*string, bool)

GetSessionIdOk returns a tuple with the SessionId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LoginRedirectURI) HasRedirectURI

func (o *LoginRedirectURI) HasRedirectURI() bool

HasRedirectURI returns a boolean if a field has been set.

func (*LoginRedirectURI) HasSessionId

func (o *LoginRedirectURI) HasSessionId() bool

HasSessionId returns a boolean if a field has been set.

func (LoginRedirectURI) MarshalJSON

func (o LoginRedirectURI) MarshalJSON() ([]byte, error)

func (*LoginRedirectURI) SetRedirectURI

func (o *LoginRedirectURI) SetRedirectURI(v string)

SetRedirectURI gets a reference to the given string and assigns it to the RedirectURI field.

func (*LoginRedirectURI) SetSessionId

func (o *LoginRedirectURI) SetSessionId(v string)

SetSessionId gets a reference to the given string and assigns it to the SessionId field.

type ManualTrade

type ManualTrade struct {
	// Unique identifier for the submitted order through SnapTrade.
	Id *string `json:"id,omitempty"`
	// Unique identifier for the connected brokerage account. This is the UUID used to reference the account in SnapTrade.
	Account     *string            `json:"account,omitempty"`
	OrderType   *OrderTypeStrict   `json:"order_type,omitempty"`
	TimeInForce *TimeInForceStrict `json:"time_in_force,omitempty"`
	Symbol      *ManualTradeSymbol `json:"symbol,omitempty"`
	Action      *ActionStrict      `json:"action,omitempty"`
	Units       NullableFloat32    `json:"units,omitempty"`
	// Trade Price if limit or stop limit order
	Price                NullableFloat32 `json:"price,omitempty"`
	AdditionalProperties map[string]interface{}
}

ManualTrade Contains the details of a submitted order.

func NewManualTrade

func NewManualTrade() *ManualTrade

NewManualTrade instantiates a new ManualTrade object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewManualTradeWithDefaults

func NewManualTradeWithDefaults() *ManualTrade

NewManualTradeWithDefaults instantiates a new ManualTrade object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ManualTrade) GetAccount

func (o *ManualTrade) GetAccount() string

GetAccount returns the Account field value if set, zero value otherwise.

func (*ManualTrade) GetAccountOk

func (o *ManualTrade) GetAccountOk() (*string, bool)

GetAccountOk returns a tuple with the Account field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ManualTrade) GetAction

func (o *ManualTrade) GetAction() ActionStrict

GetAction returns the Action field value if set, zero value otherwise.

func (*ManualTrade) GetActionOk

func (o *ManualTrade) GetActionOk() (*ActionStrict, bool)

GetActionOk returns a tuple with the Action field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ManualTrade) GetId

func (o *ManualTrade) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*ManualTrade) GetIdOk

func (o *ManualTrade) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ManualTrade) GetOrderType

func (o *ManualTrade) GetOrderType() OrderTypeStrict

GetOrderType returns the OrderType field value if set, zero value otherwise.

func (*ManualTrade) GetOrderTypeOk

func (o *ManualTrade) GetOrderTypeOk() (*OrderTypeStrict, bool)

GetOrderTypeOk returns a tuple with the OrderType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ManualTrade) GetPrice

func (o *ManualTrade) GetPrice() float32

GetPrice returns the Price field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ManualTrade) GetPriceOk

func (o *ManualTrade) GetPriceOk() (*float32, bool)

GetPriceOk returns a tuple with the Price field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ManualTrade) GetSymbol

func (o *ManualTrade) GetSymbol() ManualTradeSymbol

GetSymbol returns the Symbol field value if set, zero value otherwise.

func (*ManualTrade) GetSymbolOk

func (o *ManualTrade) GetSymbolOk() (*ManualTradeSymbol, bool)

GetSymbolOk returns a tuple with the Symbol field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ManualTrade) GetTimeInForce

func (o *ManualTrade) GetTimeInForce() TimeInForceStrict

GetTimeInForce returns the TimeInForce field value if set, zero value otherwise.

func (*ManualTrade) GetTimeInForceOk

func (o *ManualTrade) GetTimeInForceOk() (*TimeInForceStrict, bool)

GetTimeInForceOk returns a tuple with the TimeInForce field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ManualTrade) GetUnits

func (o *ManualTrade) GetUnits() float32

GetUnits returns the Units field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ManualTrade) GetUnitsOk

func (o *ManualTrade) GetUnitsOk() (*float32, bool)

GetUnitsOk returns a tuple with the Units field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ManualTrade) HasAccount

func (o *ManualTrade) HasAccount() bool

HasAccount returns a boolean if a field has been set.

func (*ManualTrade) HasAction

func (o *ManualTrade) HasAction() bool

HasAction returns a boolean if a field has been set.

func (*ManualTrade) HasId

func (o *ManualTrade) HasId() bool

HasId returns a boolean if a field has been set.

func (*ManualTrade) HasOrderType

func (o *ManualTrade) HasOrderType() bool

HasOrderType returns a boolean if a field has been set.

func (*ManualTrade) HasPrice

func (o *ManualTrade) HasPrice() bool

HasPrice returns a boolean if a field has been set.

func (*ManualTrade) HasSymbol

func (o *ManualTrade) HasSymbol() bool

HasSymbol returns a boolean if a field has been set.

func (*ManualTrade) HasTimeInForce

func (o *ManualTrade) HasTimeInForce() bool

HasTimeInForce returns a boolean if a field has been set.

func (*ManualTrade) HasUnits

func (o *ManualTrade) HasUnits() bool

HasUnits returns a boolean if a field has been set.

func (ManualTrade) MarshalJSON

func (o ManualTrade) MarshalJSON() ([]byte, error)

func (*ManualTrade) SetAccount

func (o *ManualTrade) SetAccount(v string)

SetAccount gets a reference to the given string and assigns it to the Account field.

func (*ManualTrade) SetAction

func (o *ManualTrade) SetAction(v ActionStrict)

SetAction gets a reference to the given ActionStrict and assigns it to the Action field.

func (*ManualTrade) SetId

func (o *ManualTrade) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*ManualTrade) SetOrderType

func (o *ManualTrade) SetOrderType(v OrderTypeStrict)

SetOrderType gets a reference to the given OrderTypeStrict and assigns it to the OrderType field.

func (*ManualTrade) SetPrice

func (o *ManualTrade) SetPrice(v float32)

SetPrice gets a reference to the given NullableFloat32 and assigns it to the Price field.

func (*ManualTrade) SetPriceNil

func (o *ManualTrade) SetPriceNil()

SetPriceNil sets the value for Price to be an explicit nil

func (*ManualTrade) SetSymbol

func (o *ManualTrade) SetSymbol(v ManualTradeSymbol)

SetSymbol gets a reference to the given ManualTradeSymbol and assigns it to the Symbol field.

func (*ManualTrade) SetTimeInForce

func (o *ManualTrade) SetTimeInForce(v TimeInForceStrict)

SetTimeInForce gets a reference to the given TimeInForceStrict and assigns it to the TimeInForce field.

func (*ManualTrade) SetUnits

func (o *ManualTrade) SetUnits(v float32)

SetUnits gets a reference to the given NullableFloat32 and assigns it to the Units field.

func (*ManualTrade) SetUnitsNil

func (o *ManualTrade) SetUnitsNil()

SetUnitsNil sets the value for Units to be an explicit nil

func (*ManualTrade) UnmarshalJSON

func (o *ManualTrade) UnmarshalJSON(bytes []byte) (err error)

func (*ManualTrade) UnsetPrice

func (o *ManualTrade) UnsetPrice()

UnsetPrice ensures that no value is present for Price, not even an explicit nil

func (*ManualTrade) UnsetUnits

func (o *ManualTrade) UnsetUnits()

UnsetUnits ensures that no value is present for Units, not even an explicit nil

type ManualTradeAndImpact

type ManualTradeAndImpact struct {
	Trade *ManualTrade `json:"trade,omitempty"`
	// List of impacts of the trade on the account. The list always contains one value at the moment.
	TradeImpacts             []ManualTradeImpact `json:"trade_impacts,omitempty"`
	CombinedRemainingBalance *ManualTradeBalance `json:"combined_remaining_balance,omitempty"`
	AdditionalProperties     map[string]interface{}
}

ManualTradeAndImpact struct for ManualTradeAndImpact

func NewManualTradeAndImpact

func NewManualTradeAndImpact() *ManualTradeAndImpact

NewManualTradeAndImpact instantiates a new ManualTradeAndImpact object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewManualTradeAndImpactWithDefaults

func NewManualTradeAndImpactWithDefaults() *ManualTradeAndImpact

NewManualTradeAndImpactWithDefaults instantiates a new ManualTradeAndImpact object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ManualTradeAndImpact) GetCombinedRemainingBalance

func (o *ManualTradeAndImpact) GetCombinedRemainingBalance() ManualTradeBalance

GetCombinedRemainingBalance returns the CombinedRemainingBalance field value if set, zero value otherwise.

func (*ManualTradeAndImpact) GetCombinedRemainingBalanceOk

func (o *ManualTradeAndImpact) GetCombinedRemainingBalanceOk() (*ManualTradeBalance, bool)

GetCombinedRemainingBalanceOk returns a tuple with the CombinedRemainingBalance field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ManualTradeAndImpact) GetTrade

func (o *ManualTradeAndImpact) GetTrade() ManualTrade

GetTrade returns the Trade field value if set, zero value otherwise.

func (*ManualTradeAndImpact) GetTradeImpacts

func (o *ManualTradeAndImpact) GetTradeImpacts() []ManualTradeImpact

GetTradeImpacts returns the TradeImpacts field value if set, zero value otherwise.

func (*ManualTradeAndImpact) GetTradeImpactsOk

func (o *ManualTradeAndImpact) GetTradeImpactsOk() ([]ManualTradeImpact, bool)

GetTradeImpactsOk returns a tuple with the TradeImpacts field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ManualTradeAndImpact) GetTradeOk

func (o *ManualTradeAndImpact) GetTradeOk() (*ManualTrade, bool)

GetTradeOk returns a tuple with the Trade field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ManualTradeAndImpact) HasCombinedRemainingBalance

func (o *ManualTradeAndImpact) HasCombinedRemainingBalance() bool

HasCombinedRemainingBalance returns a boolean if a field has been set.

func (*ManualTradeAndImpact) HasTrade

func (o *ManualTradeAndImpact) HasTrade() bool

HasTrade returns a boolean if a field has been set.

func (*ManualTradeAndImpact) HasTradeImpacts

func (o *ManualTradeAndImpact) HasTradeImpacts() bool

HasTradeImpacts returns a boolean if a field has been set.

func (ManualTradeAndImpact) MarshalJSON

func (o ManualTradeAndImpact) MarshalJSON() ([]byte, error)

func (*ManualTradeAndImpact) SetCombinedRemainingBalance

func (o *ManualTradeAndImpact) SetCombinedRemainingBalance(v ManualTradeBalance)

SetCombinedRemainingBalance gets a reference to the given ManualTradeBalance and assigns it to the CombinedRemainingBalance field.

func (*ManualTradeAndImpact) SetTrade

func (o *ManualTradeAndImpact) SetTrade(v ManualTrade)

SetTrade gets a reference to the given ManualTrade and assigns it to the Trade field.

func (*ManualTradeAndImpact) SetTradeImpacts

func (o *ManualTradeAndImpact) SetTradeImpacts(v []ManualTradeImpact)

SetTradeImpacts gets a reference to the given []ManualTradeImpact and assigns it to the TradeImpacts field.

func (*ManualTradeAndImpact) UnmarshalJSON

func (o *ManualTradeAndImpact) UnmarshalJSON(bytes []byte) (err error)

type ManualTradeBalance

type ManualTradeBalance struct {
	Account  *AccountSimple `json:"account,omitempty"`
	Currency *Currency      `json:"currency,omitempty"`
	// Estimated amount of cash remaining in the account after the trade. At the moment this is the same as `remaining_cash` under `trade_impacts`.
	Cash                 NullableFloat32 `json:"cash,omitempty"`
	AdditionalProperties map[string]interface{}
}

ManualTradeBalance Estimated remaining balance of the account after the trade is executed.

func NewManualTradeBalance

func NewManualTradeBalance() *ManualTradeBalance

NewManualTradeBalance instantiates a new ManualTradeBalance object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewManualTradeBalanceWithDefaults

func NewManualTradeBalanceWithDefaults() *ManualTradeBalance

NewManualTradeBalanceWithDefaults instantiates a new ManualTradeBalance object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ManualTradeBalance) GetAccount

func (o *ManualTradeBalance) GetAccount() AccountSimple

GetAccount returns the Account field value if set, zero value otherwise.

func (*ManualTradeBalance) GetAccountOk

func (o *ManualTradeBalance) GetAccountOk() (*AccountSimple, bool)

GetAccountOk returns a tuple with the Account field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ManualTradeBalance) GetCash

func (o *ManualTradeBalance) GetCash() float32

GetCash returns the Cash field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ManualTradeBalance) GetCashOk

func (o *ManualTradeBalance) GetCashOk() (*float32, bool)

GetCashOk returns a tuple with the Cash field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ManualTradeBalance) GetCurrency

func (o *ManualTradeBalance) GetCurrency() Currency

GetCurrency returns the Currency field value if set, zero value otherwise.

func (*ManualTradeBalance) GetCurrencyOk

func (o *ManualTradeBalance) GetCurrencyOk() (*Currency, bool)

GetCurrencyOk returns a tuple with the Currency field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ManualTradeBalance) HasAccount

func (o *ManualTradeBalance) HasAccount() bool

HasAccount returns a boolean if a field has been set.

func (*ManualTradeBalance) HasCash

func (o *ManualTradeBalance) HasCash() bool

HasCash returns a boolean if a field has been set.

func (*ManualTradeBalance) HasCurrency

func (o *ManualTradeBalance) HasCurrency() bool

HasCurrency returns a boolean if a field has been set.

func (ManualTradeBalance) MarshalJSON

func (o ManualTradeBalance) MarshalJSON() ([]byte, error)

func (*ManualTradeBalance) SetAccount

func (o *ManualTradeBalance) SetAccount(v AccountSimple)

SetAccount gets a reference to the given AccountSimple and assigns it to the Account field.

func (*ManualTradeBalance) SetCash

func (o *ManualTradeBalance) SetCash(v float32)

SetCash gets a reference to the given NullableFloat32 and assigns it to the Cash field.

func (*ManualTradeBalance) SetCashNil

func (o *ManualTradeBalance) SetCashNil()

SetCashNil sets the value for Cash to be an explicit nil

func (*ManualTradeBalance) SetCurrency

func (o *ManualTradeBalance) SetCurrency(v Currency)

SetCurrency gets a reference to the given Currency and assigns it to the Currency field.

func (*ManualTradeBalance) UnmarshalJSON

func (o *ManualTradeBalance) UnmarshalJSON(bytes []byte) (err error)

func (*ManualTradeBalance) UnsetCash

func (o *ManualTradeBalance) UnsetCash()

UnsetCash ensures that no value is present for Cash, not even an explicit nil

type ManualTradeForm

type ManualTradeForm struct {
	// Unique identifier for the connected brokerage account. This is the UUID used to reference the account in SnapTrade.
	AccountId string       `json:"account_id"`
	Action    ActionStrict `json:"action"`
	// Unique identifier for the symbol within SnapTrade. This is the ID used to reference the symbol in SnapTrade API calls.
	UniversalSymbolId string            `json:"universal_symbol_id"`
	OrderType         OrderTypeStrict   `json:"order_type"`
	TimeInForce       TimeInForceStrict `json:"time_in_force"`
	// The limit price for `Limit` and `StopLimit` orders.
	Price NullableFloat32 `json:"price,omitempty"`
	// The price at which a stop order is triggered for `Stop` and `StopLimit` orders.
	Stop          NullableFloat32                      `json:"stop,omitempty"`
	Units         NullableFloat32                      `json:"units,omitempty"`
	NotionalValue NullableManualTradeFormNotionalValue `json:"notional_value,omitempty"`
}

ManualTradeForm Inputs for placing an order with the brokerage.

func NewManualTradeForm

func NewManualTradeForm(accountId string, action ActionStrict, universalSymbolId string, orderType OrderTypeStrict, timeInForce TimeInForceStrict) *ManualTradeForm

NewManualTradeForm instantiates a new ManualTradeForm object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewManualTradeFormWithDefaults

func NewManualTradeFormWithDefaults() *ManualTradeForm

NewManualTradeFormWithDefaults instantiates a new ManualTradeForm object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ManualTradeForm) GetAccountId

func (o *ManualTradeForm) GetAccountId() string

GetAccountId returns the AccountId field value

func (*ManualTradeForm) GetAccountIdOk

func (o *ManualTradeForm) GetAccountIdOk() (*string, bool)

GetAccountIdOk returns a tuple with the AccountId field value and a boolean to check if the value has been set.

func (*ManualTradeForm) GetAction

func (o *ManualTradeForm) GetAction() ActionStrict

GetAction returns the Action field value

func (*ManualTradeForm) GetActionOk

func (o *ManualTradeForm) GetActionOk() (*ActionStrict, bool)

GetActionOk returns a tuple with the Action field value and a boolean to check if the value has been set.

func (*ManualTradeForm) GetNotionalValue

func (o *ManualTradeForm) GetNotionalValue() ManualTradeFormNotionalValue

GetNotionalValue returns the NotionalValue field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ManualTradeForm) GetNotionalValueOk

func (o *ManualTradeForm) GetNotionalValueOk() (*ManualTradeFormNotionalValue, bool)

GetNotionalValueOk returns a tuple with the NotionalValue field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ManualTradeForm) GetOrderType

func (o *ManualTradeForm) GetOrderType() OrderTypeStrict

GetOrderType returns the OrderType field value

func (*ManualTradeForm) GetOrderTypeOk

func (o *ManualTradeForm) GetOrderTypeOk() (*OrderTypeStrict, bool)

GetOrderTypeOk returns a tuple with the OrderType field value and a boolean to check if the value has been set.

func (*ManualTradeForm) GetPrice

func (o *ManualTradeForm) GetPrice() float32

GetPrice returns the Price field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ManualTradeForm) GetPriceOk

func (o *ManualTradeForm) GetPriceOk() (*float32, bool)

GetPriceOk returns a tuple with the Price field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ManualTradeForm) GetStop

func (o *ManualTradeForm) GetStop() float32

GetStop returns the Stop field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ManualTradeForm) GetStopOk

func (o *ManualTradeForm) GetStopOk() (*float32, bool)

GetStopOk returns a tuple with the Stop field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ManualTradeForm) GetTimeInForce

func (o *ManualTradeForm) GetTimeInForce() TimeInForceStrict

GetTimeInForce returns the TimeInForce field value

func (*ManualTradeForm) GetTimeInForceOk

func (o *ManualTradeForm) GetTimeInForceOk() (*TimeInForceStrict, bool)

GetTimeInForceOk returns a tuple with the TimeInForce field value and a boolean to check if the value has been set.

func (*ManualTradeForm) GetUnits

func (o *ManualTradeForm) GetUnits() float32

GetUnits returns the Units field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ManualTradeForm) GetUnitsOk

func (o *ManualTradeForm) GetUnitsOk() (*float32, bool)

GetUnitsOk returns a tuple with the Units field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ManualTradeForm) GetUniversalSymbolId

func (o *ManualTradeForm) GetUniversalSymbolId() string

GetUniversalSymbolId returns the UniversalSymbolId field value

func (*ManualTradeForm) GetUniversalSymbolIdOk

func (o *ManualTradeForm) GetUniversalSymbolIdOk() (*string, bool)

GetUniversalSymbolIdOk returns a tuple with the UniversalSymbolId field value and a boolean to check if the value has been set.

func (*ManualTradeForm) HasNotionalValue

func (o *ManualTradeForm) HasNotionalValue() bool

HasNotionalValue returns a boolean if a field has been set.

func (*ManualTradeForm) HasPrice

func (o *ManualTradeForm) HasPrice() bool

HasPrice returns a boolean if a field has been set.

func (*ManualTradeForm) HasStop

func (o *ManualTradeForm) HasStop() bool

HasStop returns a boolean if a field has been set.

func (*ManualTradeForm) HasUnits

func (o *ManualTradeForm) HasUnits() bool

HasUnits returns a boolean if a field has been set.

func (ManualTradeForm) MarshalJSON

func (o ManualTradeForm) MarshalJSON() ([]byte, error)

func (*ManualTradeForm) SetAccountId

func (o *ManualTradeForm) SetAccountId(v string)

SetAccountId sets field value

func (*ManualTradeForm) SetAction

func (o *ManualTradeForm) SetAction(v ActionStrict)

SetAction sets field value

func (*ManualTradeForm) SetNotionalValue

func (o *ManualTradeForm) SetNotionalValue(v ManualTradeFormNotionalValue)

SetNotionalValue gets a reference to the given NullableManualTradeFormNotionalValue and assigns it to the NotionalValue field.

func (*ManualTradeForm) SetNotionalValueNil

func (o *ManualTradeForm) SetNotionalValueNil()

SetNotionalValueNil sets the value for NotionalValue to be an explicit nil

func (*ManualTradeForm) SetOrderType

func (o *ManualTradeForm) SetOrderType(v OrderTypeStrict)

SetOrderType sets field value

func (*ManualTradeForm) SetPrice

func (o *ManualTradeForm) SetPrice(v float32)

SetPrice gets a reference to the given NullableFloat32 and assigns it to the Price field.

func (*ManualTradeForm) SetPriceNil

func (o *ManualTradeForm) SetPriceNil()

SetPriceNil sets the value for Price to be an explicit nil

func (*ManualTradeForm) SetStop

func (o *ManualTradeForm) SetStop(v float32)

SetStop gets a reference to the given NullableFloat32 and assigns it to the Stop field.

func (*ManualTradeForm) SetStopNil

func (o *ManualTradeForm) SetStopNil()

SetStopNil sets the value for Stop to be an explicit nil

func (*ManualTradeForm) SetTimeInForce

func (o *ManualTradeForm) SetTimeInForce(v TimeInForceStrict)

SetTimeInForce sets field value

func (*ManualTradeForm) SetUnits

func (o *ManualTradeForm) SetUnits(v float32)

SetUnits gets a reference to the given NullableFloat32 and assigns it to the Units field.

func (*ManualTradeForm) SetUnitsNil

func (o *ManualTradeForm) SetUnitsNil()

SetUnitsNil sets the value for Units to be an explicit nil

func (*ManualTradeForm) SetUniversalSymbolId

func (o *ManualTradeForm) SetUniversalSymbolId(v string)

SetUniversalSymbolId sets field value

func (*ManualTradeForm) UnsetNotionalValue

func (o *ManualTradeForm) UnsetNotionalValue()

UnsetNotionalValue ensures that no value is present for NotionalValue, not even an explicit nil

func (*ManualTradeForm) UnsetPrice

func (o *ManualTradeForm) UnsetPrice()

UnsetPrice ensures that no value is present for Price, not even an explicit nil

func (*ManualTradeForm) UnsetStop

func (o *ManualTradeForm) UnsetStop()

UnsetStop ensures that no value is present for Stop, not even an explicit nil

func (*ManualTradeForm) UnsetUnits

func (o *ManualTradeForm) UnsetUnits()

UnsetUnits ensures that no value is present for Units, not even an explicit nil

type ManualTradeFormBracket added in v1.0.55

type ManualTradeFormBracket struct {
	Action      ActionStrictWithOptions `json:"action"`
	Instrument  TradingInstrument       `json:"instrument"`
	OrderType   OrderTypeStrict         `json:"order_type"`
	TimeInForce TimeInForceStrict       `json:"time_in_force"`
	// The limit price for `Limit` and `StopLimit` orders.
	Price NullableFloat32 `json:"price,omitempty"`
	// The price at which a stop order is triggered for `Stop` and `StopLimit` orders.
	Stop NullableFloat32 `json:"stop,omitempty"`
	// Number of shares for the order. This can be a decimal for fractional orders. Must be `null` if `notional_value` is provided.
	Units      *float32   `json:"units,omitempty"`
	StopLoss   StopLoss   `json:"stop_loss"`
	TakeProfit TakeProfit `json:"take_profit"`
}

ManualTradeFormBracket Inputs for placing an order with the brokerage.

func NewManualTradeFormBracket added in v1.0.55

func NewManualTradeFormBracket(action ActionStrictWithOptions, instrument TradingInstrument, orderType OrderTypeStrict, timeInForce TimeInForceStrict, stopLoss StopLoss, takeProfit TakeProfit) *ManualTradeFormBracket

NewManualTradeFormBracket instantiates a new ManualTradeFormBracket object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewManualTradeFormBracketWithDefaults added in v1.0.55

func NewManualTradeFormBracketWithDefaults() *ManualTradeFormBracket

NewManualTradeFormBracketWithDefaults instantiates a new ManualTradeFormBracket object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ManualTradeFormBracket) GetAction added in v1.0.55

GetAction returns the Action field value

func (*ManualTradeFormBracket) GetActionOk added in v1.0.55

GetActionOk returns a tuple with the Action field value and a boolean to check if the value has been set.

func (*ManualTradeFormBracket) GetInstrument added in v1.0.59

func (o *ManualTradeFormBracket) GetInstrument() TradingInstrument

GetInstrument returns the Instrument field value

func (*ManualTradeFormBracket) GetInstrumentOk added in v1.0.59

func (o *ManualTradeFormBracket) GetInstrumentOk() (*TradingInstrument, bool)

GetInstrumentOk returns a tuple with the Instrument field value and a boolean to check if the value has been set.

func (*ManualTradeFormBracket) GetOrderType added in v1.0.55

func (o *ManualTradeFormBracket) GetOrderType() OrderTypeStrict

GetOrderType returns the OrderType field value

func (*ManualTradeFormBracket) GetOrderTypeOk added in v1.0.55

func (o *ManualTradeFormBracket) GetOrderTypeOk() (*OrderTypeStrict, bool)

GetOrderTypeOk returns a tuple with the OrderType field value and a boolean to check if the value has been set.

func (*ManualTradeFormBracket) GetPrice added in v1.0.55

func (o *ManualTradeFormBracket) GetPrice() float32

GetPrice returns the Price field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ManualTradeFormBracket) GetPriceOk added in v1.0.55

func (o *ManualTradeFormBracket) GetPriceOk() (*float32, bool)

GetPriceOk returns a tuple with the Price field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ManualTradeFormBracket) GetStop added in v1.0.55

func (o *ManualTradeFormBracket) GetStop() float32

GetStop returns the Stop field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ManualTradeFormBracket) GetStopLoss added in v1.0.55

func (o *ManualTradeFormBracket) GetStopLoss() StopLoss

GetStopLoss returns the StopLoss field value

func (*ManualTradeFormBracket) GetStopLossOk added in v1.0.55

func (o *ManualTradeFormBracket) GetStopLossOk() (*StopLoss, bool)

GetStopLossOk returns a tuple with the StopLoss field value and a boolean to check if the value has been set.

func (*ManualTradeFormBracket) GetStopOk added in v1.0.55

func (o *ManualTradeFormBracket) GetStopOk() (*float32, bool)

GetStopOk returns a tuple with the Stop field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ManualTradeFormBracket) GetTakeProfit added in v1.0.55

func (o *ManualTradeFormBracket) GetTakeProfit() TakeProfit

GetTakeProfit returns the TakeProfit field value

func (*ManualTradeFormBracket) GetTakeProfitOk added in v1.0.55

func (o *ManualTradeFormBracket) GetTakeProfitOk() (*TakeProfit, bool)

GetTakeProfitOk returns a tuple with the TakeProfit field value and a boolean to check if the value has been set.

func (*ManualTradeFormBracket) GetTimeInForce added in v1.0.55

func (o *ManualTradeFormBracket) GetTimeInForce() TimeInForceStrict

GetTimeInForce returns the TimeInForce field value

func (*ManualTradeFormBracket) GetTimeInForceOk added in v1.0.55

func (o *ManualTradeFormBracket) GetTimeInForceOk() (*TimeInForceStrict, bool)

GetTimeInForceOk returns a tuple with the TimeInForce field value and a boolean to check if the value has been set.

func (*ManualTradeFormBracket) GetUnits added in v1.0.55

func (o *ManualTradeFormBracket) GetUnits() float32

GetUnits returns the Units field value if set, zero value otherwise.

func (*ManualTradeFormBracket) GetUnitsOk added in v1.0.55

func (o *ManualTradeFormBracket) GetUnitsOk() (*float32, bool)

GetUnitsOk returns a tuple with the Units field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ManualTradeFormBracket) HasPrice added in v1.0.55

func (o *ManualTradeFormBracket) HasPrice() bool

HasPrice returns a boolean if a field has been set.

func (*ManualTradeFormBracket) HasStop added in v1.0.55

func (o *ManualTradeFormBracket) HasStop() bool

HasStop returns a boolean if a field has been set.

func (*ManualTradeFormBracket) HasUnits added in v1.0.55

func (o *ManualTradeFormBracket) HasUnits() bool

HasUnits returns a boolean if a field has been set.

func (ManualTradeFormBracket) MarshalJSON added in v1.0.55

func (o ManualTradeFormBracket) MarshalJSON() ([]byte, error)

func (*ManualTradeFormBracket) SetAction added in v1.0.55

SetAction sets field value

func (*ManualTradeFormBracket) SetInstrument added in v1.0.59

func (o *ManualTradeFormBracket) SetInstrument(v TradingInstrument)

SetInstrument sets field value

func (*ManualTradeFormBracket) SetOrderType added in v1.0.55

func (o *ManualTradeFormBracket) SetOrderType(v OrderTypeStrict)

SetOrderType sets field value

func (*ManualTradeFormBracket) SetPrice added in v1.0.55

func (o *ManualTradeFormBracket) SetPrice(v float32)

SetPrice gets a reference to the given NullableFloat32 and assigns it to the Price field.

func (*ManualTradeFormBracket) SetPriceNil added in v1.0.55

func (o *ManualTradeFormBracket) SetPriceNil()

SetPriceNil sets the value for Price to be an explicit nil

func (*ManualTradeFormBracket) SetStop added in v1.0.55

func (o *ManualTradeFormBracket) SetStop(v float32)

SetStop gets a reference to the given NullableFloat32 and assigns it to the Stop field.

func (*ManualTradeFormBracket) SetStopLoss added in v1.0.55

func (o *ManualTradeFormBracket) SetStopLoss(v StopLoss)

SetStopLoss sets field value

func (*ManualTradeFormBracket) SetStopNil added in v1.0.55

func (o *ManualTradeFormBracket) SetStopNil()

SetStopNil sets the value for Stop to be an explicit nil

func (*ManualTradeFormBracket) SetTakeProfit added in v1.0.55

func (o *ManualTradeFormBracket) SetTakeProfit(v TakeProfit)

SetTakeProfit sets field value

func (*ManualTradeFormBracket) SetTimeInForce added in v1.0.55

func (o *ManualTradeFormBracket) SetTimeInForce(v TimeInForceStrict)

SetTimeInForce sets field value

func (*ManualTradeFormBracket) SetUnits added in v1.0.55

func (o *ManualTradeFormBracket) SetUnits(v float32)

SetUnits gets a reference to the given float32 and assigns it to the Units field.

func (*ManualTradeFormBracket) UnsetPrice added in v1.0.55

func (o *ManualTradeFormBracket) UnsetPrice()

UnsetPrice ensures that no value is present for Price, not even an explicit nil

func (*ManualTradeFormBracket) UnsetStop added in v1.0.55

func (o *ManualTradeFormBracket) UnsetStop()

UnsetStop ensures that no value is present for Stop, not even an explicit nil

type ManualTradeFormNotionalValue

type ManualTradeFormNotionalValue struct {
}

ManualTradeFormNotionalValue struct for ManualTradeFormNotionalValue

func NewManualTradeFormNotionalValue

func NewManualTradeFormNotionalValue() *ManualTradeFormNotionalValue

NewManualTradeFormNotionalValue instantiates a new ManualTradeFormNotionalValue object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewManualTradeFormNotionalValueWithDefaults

func NewManualTradeFormNotionalValueWithDefaults() *ManualTradeFormNotionalValue

NewManualTradeFormNotionalValueWithDefaults instantiates a new ManualTradeFormNotionalValue object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (ManualTradeFormNotionalValue) MarshalJSON

func (o ManualTradeFormNotionalValue) MarshalJSON() ([]byte, error)

type ManualTradeFormWithOptions added in v1.0.18

type ManualTradeFormWithOptions struct {
	// Unique identifier for the connected brokerage account. This is the UUID used to reference the account in SnapTrade.
	AccountId string                  `json:"account_id"`
	Action    ActionStrictWithOptions `json:"action"`
	// The universal symbol ID of the security to trade. Must be 'null' if `symbol` is provided, otherwise must be provided.
	UniversalSymbolId NullableString `json:"universal_symbol_id,omitempty"`
	// The security's trading ticker symbol. If 'symbol' is provided, then 'universal_symbol_id' must be 'null'.
	Symbol         NullableString    `json:"symbol,omitempty"`
	OrderType      OrderTypeStrict   `json:"order_type"`
	TimeInForce    TimeInForceStrict `json:"time_in_force"`
	TradingSession *TradingSession   `json:"trading_session,omitempty"`
	// The limit price for `Limit` and `StopLimit` orders.
	Price NullableFloat32 `json:"price,omitempty"`
	// The price at which a stop order is triggered for `Stop` and `StopLimit` orders.
	Stop NullableFloat32 `json:"stop,omitempty"`
	// For Equity orders, this represents the number of shares for the order. This can be a decimal for fractional orders. Must be `null` if `notional_value` is provided. If placing an Option order, this field represents the number of contracts to buy or sell. (e.g., 1 contract = 100 shares).
	Units         NullableFloat32                      `json:"units,omitempty"`
	NotionalValue NullableManualTradeFormNotionalValue `json:"notional_value,omitempty"`
}

ManualTradeFormWithOptions Inputs for placing an order with the brokerage.

func NewManualTradeFormWithOptions added in v1.0.18

func NewManualTradeFormWithOptions(accountId string, action ActionStrictWithOptions, orderType OrderTypeStrict, timeInForce TimeInForceStrict) *ManualTradeFormWithOptions

NewManualTradeFormWithOptions instantiates a new ManualTradeFormWithOptions object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewManualTradeFormWithOptionsWithDefaults added in v1.0.18

func NewManualTradeFormWithOptionsWithDefaults() *ManualTradeFormWithOptions

NewManualTradeFormWithOptionsWithDefaults instantiates a new ManualTradeFormWithOptions object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ManualTradeFormWithOptions) GetAccountId added in v1.0.18

func (o *ManualTradeFormWithOptions) GetAccountId() string

GetAccountId returns the AccountId field value

func (*ManualTradeFormWithOptions) GetAccountIdOk added in v1.0.18

func (o *ManualTradeFormWithOptions) GetAccountIdOk() (*string, bool)

GetAccountIdOk returns a tuple with the AccountId field value and a boolean to check if the value has been set.

func (*ManualTradeFormWithOptions) GetAction added in v1.0.18

GetAction returns the Action field value

func (*ManualTradeFormWithOptions) GetActionOk added in v1.0.18

GetActionOk returns a tuple with the Action field value and a boolean to check if the value has been set.

func (*ManualTradeFormWithOptions) GetNotionalValue added in v1.0.18

GetNotionalValue returns the NotionalValue field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ManualTradeFormWithOptions) GetNotionalValueOk added in v1.0.18

func (o *ManualTradeFormWithOptions) GetNotionalValueOk() (*ManualTradeFormNotionalValue, bool)

GetNotionalValueOk returns a tuple with the NotionalValue field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ManualTradeFormWithOptions) GetOrderType added in v1.0.18

func (o *ManualTradeFormWithOptions) GetOrderType() OrderTypeStrict

GetOrderType returns the OrderType field value

func (*ManualTradeFormWithOptions) GetOrderTypeOk added in v1.0.18

func (o *ManualTradeFormWithOptions) GetOrderTypeOk() (*OrderTypeStrict, bool)

GetOrderTypeOk returns a tuple with the OrderType field value and a boolean to check if the value has been set.

func (*ManualTradeFormWithOptions) GetPrice added in v1.0.18

func (o *ManualTradeFormWithOptions) GetPrice() float32

GetPrice returns the Price field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ManualTradeFormWithOptions) GetPriceOk added in v1.0.18

func (o *ManualTradeFormWithOptions) GetPriceOk() (*float32, bool)

GetPriceOk returns a tuple with the Price field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ManualTradeFormWithOptions) GetStop added in v1.0.18

func (o *ManualTradeFormWithOptions) GetStop() float32

GetStop returns the Stop field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ManualTradeFormWithOptions) GetStopOk added in v1.0.18

func (o *ManualTradeFormWithOptions) GetStopOk() (*float32, bool)

GetStopOk returns a tuple with the Stop field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ManualTradeFormWithOptions) GetSymbol added in v1.0.18

func (o *ManualTradeFormWithOptions) GetSymbol() string

GetSymbol returns the Symbol field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ManualTradeFormWithOptions) GetSymbolOk added in v1.0.18

func (o *ManualTradeFormWithOptions) GetSymbolOk() (*string, bool)

GetSymbolOk returns a tuple with the Symbol field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ManualTradeFormWithOptions) GetTimeInForce added in v1.0.18

func (o *ManualTradeFormWithOptions) GetTimeInForce() TimeInForceStrict

GetTimeInForce returns the TimeInForce field value

func (*ManualTradeFormWithOptions) GetTimeInForceOk added in v1.0.18

func (o *ManualTradeFormWithOptions) GetTimeInForceOk() (*TimeInForceStrict, bool)

GetTimeInForceOk returns a tuple with the TimeInForce field value and a boolean to check if the value has been set.

func (*ManualTradeFormWithOptions) GetTradingSession added in v1.0.115

func (o *ManualTradeFormWithOptions) GetTradingSession() TradingSession

GetTradingSession returns the TradingSession field value if set, zero value otherwise.

func (*ManualTradeFormWithOptions) GetTradingSessionOk added in v1.0.115

func (o *ManualTradeFormWithOptions) GetTradingSessionOk() (*TradingSession, bool)

GetTradingSessionOk returns a tuple with the TradingSession field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ManualTradeFormWithOptions) GetUnits added in v1.0.18

func (o *ManualTradeFormWithOptions) GetUnits() float32

GetUnits returns the Units field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ManualTradeFormWithOptions) GetUnitsOk added in v1.0.18

func (o *ManualTradeFormWithOptions) GetUnitsOk() (*float32, bool)

GetUnitsOk returns a tuple with the Units field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ManualTradeFormWithOptions) GetUniversalSymbolId added in v1.0.18

func (o *ManualTradeFormWithOptions) GetUniversalSymbolId() string

GetUniversalSymbolId returns the UniversalSymbolId field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ManualTradeFormWithOptions) GetUniversalSymbolIdOk added in v1.0.18

func (o *ManualTradeFormWithOptions) GetUniversalSymbolIdOk() (*string, bool)

GetUniversalSymbolIdOk returns a tuple with the UniversalSymbolId field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ManualTradeFormWithOptions) HasNotionalValue added in v1.0.18

func (o *ManualTradeFormWithOptions) HasNotionalValue() bool

HasNotionalValue returns a boolean if a field has been set.

func (*ManualTradeFormWithOptions) HasPrice added in v1.0.18

func (o *ManualTradeFormWithOptions) HasPrice() bool

HasPrice returns a boolean if a field has been set.

func (*ManualTradeFormWithOptions) HasStop added in v1.0.18

func (o *ManualTradeFormWithOptions) HasStop() bool

HasStop returns a boolean if a field has been set.

func (*ManualTradeFormWithOptions) HasSymbol added in v1.0.18

func (o *ManualTradeFormWithOptions) HasSymbol() bool

HasSymbol returns a boolean if a field has been set.

func (*ManualTradeFormWithOptions) HasTradingSession added in v1.0.115

func (o *ManualTradeFormWithOptions) HasTradingSession() bool

HasTradingSession returns a boolean if a field has been set.

func (*ManualTradeFormWithOptions) HasUnits added in v1.0.18

func (o *ManualTradeFormWithOptions) HasUnits() bool

HasUnits returns a boolean if a field has been set.

func (*ManualTradeFormWithOptions) HasUniversalSymbolId added in v1.0.18

func (o *ManualTradeFormWithOptions) HasUniversalSymbolId() bool

HasUniversalSymbolId returns a boolean if a field has been set.

func (ManualTradeFormWithOptions) MarshalJSON added in v1.0.18

func (o ManualTradeFormWithOptions) MarshalJSON() ([]byte, error)

func (*ManualTradeFormWithOptions) SetAccountId added in v1.0.18

func (o *ManualTradeFormWithOptions) SetAccountId(v string)

SetAccountId sets field value

func (*ManualTradeFormWithOptions) SetAction added in v1.0.18

SetAction sets field value

func (*ManualTradeFormWithOptions) SetNotionalValue added in v1.0.18

SetNotionalValue gets a reference to the given NullableManualTradeFormNotionalValue and assigns it to the NotionalValue field.

func (*ManualTradeFormWithOptions) SetNotionalValueNil added in v1.0.18

func (o *ManualTradeFormWithOptions) SetNotionalValueNil()

SetNotionalValueNil sets the value for NotionalValue to be an explicit nil

func (*ManualTradeFormWithOptions) SetOrderType added in v1.0.18

func (o *ManualTradeFormWithOptions) SetOrderType(v OrderTypeStrict)

SetOrderType sets field value

func (*ManualTradeFormWithOptions) SetPrice added in v1.0.18

func (o *ManualTradeFormWithOptions) SetPrice(v float32)

SetPrice gets a reference to the given NullableFloat32 and assigns it to the Price field.

func (*ManualTradeFormWithOptions) SetPriceNil added in v1.0.18

func (o *ManualTradeFormWithOptions) SetPriceNil()

SetPriceNil sets the value for Price to be an explicit nil

func (*ManualTradeFormWithOptions) SetStop added in v1.0.18

func (o *ManualTradeFormWithOptions) SetStop(v float32)

SetStop gets a reference to the given NullableFloat32 and assigns it to the Stop field.

func (*ManualTradeFormWithOptions) SetStopNil added in v1.0.18

func (o *ManualTradeFormWithOptions) SetStopNil()

SetStopNil sets the value for Stop to be an explicit nil

func (*ManualTradeFormWithOptions) SetSymbol added in v1.0.18

func (o *ManualTradeFormWithOptions) SetSymbol(v string)

SetSymbol gets a reference to the given NullableString and assigns it to the Symbol field.

func (*ManualTradeFormWithOptions) SetSymbolNil added in v1.0.18

func (o *ManualTradeFormWithOptions) SetSymbolNil()

SetSymbolNil sets the value for Symbol to be an explicit nil

func (*ManualTradeFormWithOptions) SetTimeInForce added in v1.0.18

func (o *ManualTradeFormWithOptions) SetTimeInForce(v TimeInForceStrict)

SetTimeInForce sets field value

func (*ManualTradeFormWithOptions) SetTradingSession added in v1.0.115

func (o *ManualTradeFormWithOptions) SetTradingSession(v TradingSession)

SetTradingSession gets a reference to the given TradingSession and assigns it to the TradingSession field.

func (*ManualTradeFormWithOptions) SetUnits added in v1.0.18

func (o *ManualTradeFormWithOptions) SetUnits(v float32)

SetUnits gets a reference to the given NullableFloat32 and assigns it to the Units field.

func (*ManualTradeFormWithOptions) SetUnitsNil added in v1.0.18

func (o *ManualTradeFormWithOptions) SetUnitsNil()

SetUnitsNil sets the value for Units to be an explicit nil

func (*ManualTradeFormWithOptions) SetUniversalSymbolId added in v1.0.18

func (o *ManualTradeFormWithOptions) SetUniversalSymbolId(v string)

SetUniversalSymbolId gets a reference to the given NullableString and assigns it to the UniversalSymbolId field.

func (*ManualTradeFormWithOptions) SetUniversalSymbolIdNil added in v1.0.18

func (o *ManualTradeFormWithOptions) SetUniversalSymbolIdNil()

SetUniversalSymbolIdNil sets the value for UniversalSymbolId to be an explicit nil

func (*ManualTradeFormWithOptions) UnsetNotionalValue added in v1.0.18

func (o *ManualTradeFormWithOptions) UnsetNotionalValue()

UnsetNotionalValue ensures that no value is present for NotionalValue, not even an explicit nil

func (*ManualTradeFormWithOptions) UnsetPrice added in v1.0.18

func (o *ManualTradeFormWithOptions) UnsetPrice()

UnsetPrice ensures that no value is present for Price, not even an explicit nil

func (*ManualTradeFormWithOptions) UnsetStop added in v1.0.18

func (o *ManualTradeFormWithOptions) UnsetStop()

UnsetStop ensures that no value is present for Stop, not even an explicit nil

func (*ManualTradeFormWithOptions) UnsetSymbol added in v1.0.18

func (o *ManualTradeFormWithOptions) UnsetSymbol()

UnsetSymbol ensures that no value is present for Symbol, not even an explicit nil

func (*ManualTradeFormWithOptions) UnsetUnits added in v1.0.18

func (o *ManualTradeFormWithOptions) UnsetUnits()

UnsetUnits ensures that no value is present for Units, not even an explicit nil

func (*ManualTradeFormWithOptions) UnsetUniversalSymbolId added in v1.0.18

func (o *ManualTradeFormWithOptions) UnsetUniversalSymbolId()

UnsetUniversalSymbolId ensures that no value is present for UniversalSymbolId, not even an explicit nil

type ManualTradeImpact added in v1.0.10

type ManualTradeImpact struct {
	// Unique identifier for the connected brokerage account. This is the UUID used to reference the account in SnapTrade.
	Account *string `json:"account,omitempty"`
	// Unique identifier for the currency. This is the UUID used to reference the currency in SnapTrade.
	Currency *string `json:"currency,omitempty"`
	// Estimated amount of cash remaining in the account after the trade.
	RemainingCash NullableFloat32 `json:"remaining_cash,omitempty"`
	// Estimated commission for the trade.
	EstimatedCommission NullableFloat32 `json:"estimated_commission,omitempty"`
	// Estimated foreign transaction fees for the trade.
	ForexFees            NullableFloat32 `json:"forex_fees,omitempty"`
	AdditionalProperties map[string]interface{}
}

ManualTradeImpact struct for ManualTradeImpact

func NewManualTradeImpact added in v1.0.10

func NewManualTradeImpact() *ManualTradeImpact

NewManualTradeImpact instantiates a new ManualTradeImpact object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewManualTradeImpactWithDefaults added in v1.0.10

func NewManualTradeImpactWithDefaults() *ManualTradeImpact

NewManualTradeImpactWithDefaults instantiates a new ManualTradeImpact object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ManualTradeImpact) GetAccount added in v1.0.10

func (o *ManualTradeImpact) GetAccount() string

GetAccount returns the Account field value if set, zero value otherwise.

func (*ManualTradeImpact) GetAccountOk added in v1.0.10

func (o *ManualTradeImpact) GetAccountOk() (*string, bool)

GetAccountOk returns a tuple with the Account field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ManualTradeImpact) GetCurrency added in v1.0.10

func (o *ManualTradeImpact) GetCurrency() string

GetCurrency returns the Currency field value if set, zero value otherwise.

func (*ManualTradeImpact) GetCurrencyOk added in v1.0.10

func (o *ManualTradeImpact) GetCurrencyOk() (*string, bool)

GetCurrencyOk returns a tuple with the Currency field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ManualTradeImpact) GetEstimatedCommission added in v1.0.10

func (o *ManualTradeImpact) GetEstimatedCommission() float32

GetEstimatedCommission returns the EstimatedCommission field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ManualTradeImpact) GetEstimatedCommissionOk added in v1.0.10

func (o *ManualTradeImpact) GetEstimatedCommissionOk() (*float32, bool)

GetEstimatedCommissionOk returns a tuple with the EstimatedCommission field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ManualTradeImpact) GetForexFees added in v1.0.10

func (o *ManualTradeImpact) GetForexFees() float32

GetForexFees returns the ForexFees field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ManualTradeImpact) GetForexFeesOk added in v1.0.10

func (o *ManualTradeImpact) GetForexFeesOk() (*float32, bool)

GetForexFeesOk returns a tuple with the ForexFees field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ManualTradeImpact) GetRemainingCash added in v1.0.10

func (o *ManualTradeImpact) GetRemainingCash() float32

GetRemainingCash returns the RemainingCash field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ManualTradeImpact) GetRemainingCashOk added in v1.0.10

func (o *ManualTradeImpact) GetRemainingCashOk() (*float32, bool)

GetRemainingCashOk returns a tuple with the RemainingCash field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ManualTradeImpact) HasAccount added in v1.0.10

func (o *ManualTradeImpact) HasAccount() bool

HasAccount returns a boolean if a field has been set.

func (*ManualTradeImpact) HasCurrency added in v1.0.10

func (o *ManualTradeImpact) HasCurrency() bool

HasCurrency returns a boolean if a field has been set.

func (*ManualTradeImpact) HasEstimatedCommission added in v1.0.10

func (o *ManualTradeImpact) HasEstimatedCommission() bool

HasEstimatedCommission returns a boolean if a field has been set.

func (*ManualTradeImpact) HasForexFees added in v1.0.10

func (o *ManualTradeImpact) HasForexFees() bool

HasForexFees returns a boolean if a field has been set.

func (*ManualTradeImpact) HasRemainingCash added in v1.0.10

func (o *ManualTradeImpact) HasRemainingCash() bool

HasRemainingCash returns a boolean if a field has been set.

func (ManualTradeImpact) MarshalJSON added in v1.0.10

func (o ManualTradeImpact) MarshalJSON() ([]byte, error)

func (*ManualTradeImpact) SetAccount added in v1.0.10

func (o *ManualTradeImpact) SetAccount(v string)

SetAccount gets a reference to the given string and assigns it to the Account field.

func (*ManualTradeImpact) SetCurrency added in v1.0.10

func (o *ManualTradeImpact) SetCurrency(v string)

SetCurrency gets a reference to the given string and assigns it to the Currency field.

func (*ManualTradeImpact) SetEstimatedCommission added in v1.0.10

func (o *ManualTradeImpact) SetEstimatedCommission(v float32)

SetEstimatedCommission gets a reference to the given NullableFloat32 and assigns it to the EstimatedCommission field.

func (*ManualTradeImpact) SetEstimatedCommissionNil added in v1.0.10

func (o *ManualTradeImpact) SetEstimatedCommissionNil()

SetEstimatedCommissionNil sets the value for EstimatedCommission to be an explicit nil

func (*ManualTradeImpact) SetForexFees added in v1.0.10

func (o *ManualTradeImpact) SetForexFees(v float32)

SetForexFees gets a reference to the given NullableFloat32 and assigns it to the ForexFees field.

func (*ManualTradeImpact) SetForexFeesNil added in v1.0.10

func (o *ManualTradeImpact) SetForexFeesNil()

SetForexFeesNil sets the value for ForexFees to be an explicit nil

func (*ManualTradeImpact) SetRemainingCash added in v1.0.10

func (o *ManualTradeImpact) SetRemainingCash(v float32)

SetRemainingCash gets a reference to the given NullableFloat32 and assigns it to the RemainingCash field.

func (*ManualTradeImpact) SetRemainingCashNil added in v1.0.10

func (o *ManualTradeImpact) SetRemainingCashNil()

SetRemainingCashNil sets the value for RemainingCash to be an explicit nil

func (*ManualTradeImpact) UnmarshalJSON added in v1.0.10

func (o *ManualTradeImpact) UnmarshalJSON(bytes []byte) (err error)

func (*ManualTradeImpact) UnsetEstimatedCommission added in v1.0.10

func (o *ManualTradeImpact) UnsetEstimatedCommission()

UnsetEstimatedCommission ensures that no value is present for EstimatedCommission, not even an explicit nil

func (*ManualTradeImpact) UnsetForexFees added in v1.0.10

func (o *ManualTradeImpact) UnsetForexFees()

UnsetForexFees ensures that no value is present for ForexFees, not even an explicit nil

func (*ManualTradeImpact) UnsetRemainingCash added in v1.0.10

func (o *ManualTradeImpact) UnsetRemainingCash()

UnsetRemainingCash ensures that no value is present for RemainingCash, not even an explicit nil

type ManualTradeReplaceForm added in v1.0.59

type ManualTradeReplaceForm struct {
	// Order ID returned by brokerage. This is the unique identifier for the order in the brokerage system.
	BrokerageOrderId string            `json:"brokerage_order_id"`
	Action           ActionStrict      `json:"action"`
	OrderType        OrderTypeStrict   `json:"order_type"`
	TimeInForce      TimeInForceStrict `json:"time_in_force"`
	// The limit price for `Limit` and `StopLimit` orders.
	Price NullableFloat32 `json:"price,omitempty"`
	// The security's trading ticker symbol
	Symbol *string `json:"symbol,omitempty"`
	// The price at which a stop order is triggered for `Stop` and `StopLimit` orders.
	Stop  NullableFloat32 `json:"stop,omitempty"`
	Units NullableFloat32 `json:"units,omitempty"`
}

ManualTradeReplaceForm Inputs for replacing an order with the brokerage.

func NewManualTradeReplaceForm added in v1.0.59

func NewManualTradeReplaceForm(brokerageOrderId string, action ActionStrict, orderType OrderTypeStrict, timeInForce TimeInForceStrict) *ManualTradeReplaceForm

NewManualTradeReplaceForm instantiates a new ManualTradeReplaceForm object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewManualTradeReplaceFormWithDefaults added in v1.0.59

func NewManualTradeReplaceFormWithDefaults() *ManualTradeReplaceForm

NewManualTradeReplaceFormWithDefaults instantiates a new ManualTradeReplaceForm object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ManualTradeReplaceForm) GetAction added in v1.0.59

func (o *ManualTradeReplaceForm) GetAction() ActionStrict

GetAction returns the Action field value

func (*ManualTradeReplaceForm) GetActionOk added in v1.0.59

func (o *ManualTradeReplaceForm) GetActionOk() (*ActionStrict, bool)

GetActionOk returns a tuple with the Action field value and a boolean to check if the value has been set.

func (*ManualTradeReplaceForm) GetBrokerageOrderId added in v1.0.92

func (o *ManualTradeReplaceForm) GetBrokerageOrderId() string

GetBrokerageOrderId returns the BrokerageOrderId field value

func (*ManualTradeReplaceForm) GetBrokerageOrderIdOk added in v1.0.92

func (o *ManualTradeReplaceForm) GetBrokerageOrderIdOk() (*string, bool)

GetBrokerageOrderIdOk returns a tuple with the BrokerageOrderId field value and a boolean to check if the value has been set.

func (*ManualTradeReplaceForm) GetOrderType added in v1.0.59

func (o *ManualTradeReplaceForm) GetOrderType() OrderTypeStrict

GetOrderType returns the OrderType field value

func (*ManualTradeReplaceForm) GetOrderTypeOk added in v1.0.59

func (o *ManualTradeReplaceForm) GetOrderTypeOk() (*OrderTypeStrict, bool)

GetOrderTypeOk returns a tuple with the OrderType field value and a boolean to check if the value has been set.

func (*ManualTradeReplaceForm) GetPrice added in v1.0.59

func (o *ManualTradeReplaceForm) GetPrice() float32

GetPrice returns the Price field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ManualTradeReplaceForm) GetPriceOk added in v1.0.59

func (o *ManualTradeReplaceForm) GetPriceOk() (*float32, bool)

GetPriceOk returns a tuple with the Price field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ManualTradeReplaceForm) GetStop added in v1.0.59

func (o *ManualTradeReplaceForm) GetStop() float32

GetStop returns the Stop field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ManualTradeReplaceForm) GetStopOk added in v1.0.59

func (o *ManualTradeReplaceForm) GetStopOk() (*float32, bool)

GetStopOk returns a tuple with the Stop field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ManualTradeReplaceForm) GetSymbol added in v1.0.64

func (o *ManualTradeReplaceForm) GetSymbol() string

GetSymbol returns the Symbol field value if set, zero value otherwise.

func (*ManualTradeReplaceForm) GetSymbolOk added in v1.0.64

func (o *ManualTradeReplaceForm) GetSymbolOk() (*string, bool)

GetSymbolOk returns a tuple with the Symbol field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ManualTradeReplaceForm) GetTimeInForce added in v1.0.59

func (o *ManualTradeReplaceForm) GetTimeInForce() TimeInForceStrict

GetTimeInForce returns the TimeInForce field value

func (*ManualTradeReplaceForm) GetTimeInForceOk added in v1.0.59

func (o *ManualTradeReplaceForm) GetTimeInForceOk() (*TimeInForceStrict, bool)

GetTimeInForceOk returns a tuple with the TimeInForce field value and a boolean to check if the value has been set.

func (*ManualTradeReplaceForm) GetUnits added in v1.0.59

func (o *ManualTradeReplaceForm) GetUnits() float32

GetUnits returns the Units field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ManualTradeReplaceForm) GetUnitsOk added in v1.0.59

func (o *ManualTradeReplaceForm) GetUnitsOk() (*float32, bool)

GetUnitsOk returns a tuple with the Units field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ManualTradeReplaceForm) HasPrice added in v1.0.59

func (o *ManualTradeReplaceForm) HasPrice() bool

HasPrice returns a boolean if a field has been set.

func (*ManualTradeReplaceForm) HasStop added in v1.0.59

func (o *ManualTradeReplaceForm) HasStop() bool

HasStop returns a boolean if a field has been set.

func (*ManualTradeReplaceForm) HasSymbol added in v1.0.64

func (o *ManualTradeReplaceForm) HasSymbol() bool

HasSymbol returns a boolean if a field has been set.

func (*ManualTradeReplaceForm) HasUnits added in v1.0.59

func (o *ManualTradeReplaceForm) HasUnits() bool

HasUnits returns a boolean if a field has been set.

func (ManualTradeReplaceForm) MarshalJSON added in v1.0.59

func (o ManualTradeReplaceForm) MarshalJSON() ([]byte, error)

func (*ManualTradeReplaceForm) SetAction added in v1.0.59

func (o *ManualTradeReplaceForm) SetAction(v ActionStrict)

SetAction sets field value

func (*ManualTradeReplaceForm) SetBrokerageOrderId added in v1.0.92

func (o *ManualTradeReplaceForm) SetBrokerageOrderId(v string)

SetBrokerageOrderId sets field value

func (*ManualTradeReplaceForm) SetOrderType added in v1.0.59

func (o *ManualTradeReplaceForm) SetOrderType(v OrderTypeStrict)

SetOrderType sets field value

func (*ManualTradeReplaceForm) SetPrice added in v1.0.59

func (o *ManualTradeReplaceForm) SetPrice(v float32)

SetPrice gets a reference to the given NullableFloat32 and assigns it to the Price field.

func (*ManualTradeReplaceForm) SetPriceNil added in v1.0.59

func (o *ManualTradeReplaceForm) SetPriceNil()

SetPriceNil sets the value for Price to be an explicit nil

func (*ManualTradeReplaceForm) SetStop added in v1.0.59

func (o *ManualTradeReplaceForm) SetStop(v float32)

SetStop gets a reference to the given NullableFloat32 and assigns it to the Stop field.

func (*ManualTradeReplaceForm) SetStopNil added in v1.0.59

func (o *ManualTradeReplaceForm) SetStopNil()

SetStopNil sets the value for Stop to be an explicit nil

func (*ManualTradeReplaceForm) SetSymbol added in v1.0.64

func (o *ManualTradeReplaceForm) SetSymbol(v string)

SetSymbol gets a reference to the given string and assigns it to the Symbol field.

func (*ManualTradeReplaceForm) SetTimeInForce added in v1.0.59

func (o *ManualTradeReplaceForm) SetTimeInForce(v TimeInForceStrict)

SetTimeInForce sets field value

func (*ManualTradeReplaceForm) SetUnits added in v1.0.59

func (o *ManualTradeReplaceForm) SetUnits(v float32)

SetUnits gets a reference to the given NullableFloat32 and assigns it to the Units field.

func (*ManualTradeReplaceForm) SetUnitsNil added in v1.0.59

func (o *ManualTradeReplaceForm) SetUnitsNil()

SetUnitsNil sets the value for Units to be an explicit nil

func (*ManualTradeReplaceForm) UnsetPrice added in v1.0.59

func (o *ManualTradeReplaceForm) UnsetPrice()

UnsetPrice ensures that no value is present for Price, not even an explicit nil

func (*ManualTradeReplaceForm) UnsetStop added in v1.0.59

func (o *ManualTradeReplaceForm) UnsetStop()

UnsetStop ensures that no value is present for Stop, not even an explicit nil

func (*ManualTradeReplaceForm) UnsetUnits added in v1.0.59

func (o *ManualTradeReplaceForm) UnsetUnits()

UnsetUnits ensures that no value is present for Units, not even an explicit nil

type ManualTradeSymbol

type ManualTradeSymbol struct {
	// Unique identifier for the symbol within SnapTrade. This is the ID used to reference the symbol in SnapTrade API calls.
	UniversalSymbolId *string   `json:"universal_symbol_id,omitempty"`
	Currency          *Currency `json:"currency,omitempty"`
	// This field is deprecated and should not be used.
	// Deprecated
	LocalId *string `json:"local_id,omitempty"`
	// This field is deprecated and should not be used.
	// Deprecated
	Description NullableString `json:"description,omitempty"`
	// This field is deprecated and should not be used.
	// Deprecated
	Symbol *string `json:"symbol,omitempty"`
	// A unique ID for the security within SnapTrade, scoped to the brokerage account that the security belongs to. This is a legacy field and should not be used. Do not rely on this being a stable ID as it can change.
	// Deprecated
	BrokerageSymbolId    *string `json:"brokerage_symbol_id,omitempty"`
	AdditionalProperties map[string]interface{}
}

ManualTradeSymbol Information about the security for the order.

func NewManualTradeSymbol

func NewManualTradeSymbol() *ManualTradeSymbol

NewManualTradeSymbol instantiates a new ManualTradeSymbol object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewManualTradeSymbolWithDefaults

func NewManualTradeSymbolWithDefaults() *ManualTradeSymbol

NewManualTradeSymbolWithDefaults instantiates a new ManualTradeSymbol object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ManualTradeSymbol) GetBrokerageSymbolId

func (o *ManualTradeSymbol) GetBrokerageSymbolId() string

GetBrokerageSymbolId returns the BrokerageSymbolId field value if set, zero value otherwise. Deprecated

func (*ManualTradeSymbol) GetBrokerageSymbolIdOk

func (o *ManualTradeSymbol) GetBrokerageSymbolIdOk() (*string, bool)

GetBrokerageSymbolIdOk returns a tuple with the BrokerageSymbolId field value if set, nil otherwise and a boolean to check if the value has been set. Deprecated

func (*ManualTradeSymbol) GetCurrency

func (o *ManualTradeSymbol) GetCurrency() Currency

GetCurrency returns the Currency field value if set, zero value otherwise.

func (*ManualTradeSymbol) GetCurrencyOk

func (o *ManualTradeSymbol) GetCurrencyOk() (*Currency, bool)

GetCurrencyOk returns a tuple with the Currency field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ManualTradeSymbol) GetDescription

func (o *ManualTradeSymbol) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). Deprecated

func (*ManualTradeSymbol) GetDescriptionOk

func (o *ManualTradeSymbol) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned Deprecated

func (*ManualTradeSymbol) GetLocalId

func (o *ManualTradeSymbol) GetLocalId() string

GetLocalId returns the LocalId field value if set, zero value otherwise. Deprecated

func (*ManualTradeSymbol) GetLocalIdOk

func (o *ManualTradeSymbol) GetLocalIdOk() (*string, bool)

GetLocalIdOk returns a tuple with the LocalId field value if set, nil otherwise and a boolean to check if the value has been set. Deprecated

func (*ManualTradeSymbol) GetSymbol

func (o *ManualTradeSymbol) GetSymbol() string

GetSymbol returns the Symbol field value if set, zero value otherwise. Deprecated

func (*ManualTradeSymbol) GetSymbolOk

func (o *ManualTradeSymbol) GetSymbolOk() (*string, bool)

GetSymbolOk returns a tuple with the Symbol field value if set, nil otherwise and a boolean to check if the value has been set. Deprecated

func (*ManualTradeSymbol) GetUniversalSymbolId

func (o *ManualTradeSymbol) GetUniversalSymbolId() string

GetUniversalSymbolId returns the UniversalSymbolId field value if set, zero value otherwise.

func (*ManualTradeSymbol) GetUniversalSymbolIdOk

func (o *ManualTradeSymbol) GetUniversalSymbolIdOk() (*string, bool)

GetUniversalSymbolIdOk returns a tuple with the UniversalSymbolId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ManualTradeSymbol) HasBrokerageSymbolId

func (o *ManualTradeSymbol) HasBrokerageSymbolId() bool

HasBrokerageSymbolId returns a boolean if a field has been set.

func (*ManualTradeSymbol) HasCurrency

func (o *ManualTradeSymbol) HasCurrency() bool

HasCurrency returns a boolean if a field has been set.

func (*ManualTradeSymbol) HasDescription

func (o *ManualTradeSymbol) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*ManualTradeSymbol) HasLocalId

func (o *ManualTradeSymbol) HasLocalId() bool

HasLocalId returns a boolean if a field has been set.

func (*ManualTradeSymbol) HasSymbol

func (o *ManualTradeSymbol) HasSymbol() bool

HasSymbol returns a boolean if a field has been set.

func (*ManualTradeSymbol) HasUniversalSymbolId

func (o *ManualTradeSymbol) HasUniversalSymbolId() bool

HasUniversalSymbolId returns a boolean if a field has been set.

func (ManualTradeSymbol) MarshalJSON

func (o ManualTradeSymbol) MarshalJSON() ([]byte, error)

func (*ManualTradeSymbol) SetBrokerageSymbolId

func (o *ManualTradeSymbol) SetBrokerageSymbolId(v string)

SetBrokerageSymbolId gets a reference to the given string and assigns it to the BrokerageSymbolId field. Deprecated

func (*ManualTradeSymbol) SetCurrency

func (o *ManualTradeSymbol) SetCurrency(v Currency)

SetCurrency gets a reference to the given Currency and assigns it to the Currency field.

func (*ManualTradeSymbol) SetDescription

func (o *ManualTradeSymbol) SetDescription(v string)

SetDescription gets a reference to the given NullableString and assigns it to the Description field. Deprecated

func (*ManualTradeSymbol) SetDescriptionNil

func (o *ManualTradeSymbol) SetDescriptionNil()

SetDescriptionNil sets the value for Description to be an explicit nil

func (*ManualTradeSymbol) SetLocalId

func (o *ManualTradeSymbol) SetLocalId(v string)

SetLocalId gets a reference to the given string and assigns it to the LocalId field. Deprecated

func (*ManualTradeSymbol) SetSymbol

func (o *ManualTradeSymbol) SetSymbol(v string)

SetSymbol gets a reference to the given string and assigns it to the Symbol field. Deprecated

func (*ManualTradeSymbol) SetUniversalSymbolId

func (o *ManualTradeSymbol) SetUniversalSymbolId(v string)

SetUniversalSymbolId gets a reference to the given string and assigns it to the UniversalSymbolId field.

func (*ManualTradeSymbol) UnmarshalJSON

func (o *ManualTradeSymbol) UnmarshalJSON(bytes []byte) (err error)

func (*ManualTradeSymbol) UnsetDescription

func (o *ManualTradeSymbol) UnsetDescription()

UnsetDescription ensures that no value is present for Description, not even an explicit nil

type MlegActionStrict added in v1.0.68

type MlegActionStrict string

MlegActionStrict The action describes the intent and side of a trade. For equities, this is either `BUY` or `SELL`. For options, this is one of `BUY_TO_OPEN`, `BUY_TO_CLOSE`, `SELL_TO_OPEN`, `SELL_TO_CLOSE`.

const (
	MLEGACTIONSTRICT_BUY           MlegActionStrict = "BUY"
	MLEGACTIONSTRICT_SELL          MlegActionStrict = "SELL"
	MLEGACTIONSTRICT_BUY_TO_OPEN   MlegActionStrict = "BUY_TO_OPEN"
	MLEGACTIONSTRICT_BUY_TO_CLOSE  MlegActionStrict = "BUY_TO_CLOSE"
	MLEGACTIONSTRICT_SELL_TO_OPEN  MlegActionStrict = "SELL_TO_OPEN"
	MLEGACTIONSTRICT_SELL_TO_CLOSE MlegActionStrict = "SELL_TO_CLOSE"
)

List of MlegActionStrict

func NewMlegActionStrictFromValue added in v1.0.68

func NewMlegActionStrictFromValue(v string) (*MlegActionStrict, error)

NewMlegActionStrictFromValue returns a pointer to a valid MlegActionStrict for the value passed as argument, or an error if the value passed is not allowed by the enum

func (MlegActionStrict) IsValid added in v1.0.68

func (v MlegActionStrict) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (MlegActionStrict) Ptr added in v1.0.68

Ptr returns reference to MlegActionStrict value

func (*MlegActionStrict) UnmarshalJSON added in v1.0.68

func (v *MlegActionStrict) UnmarshalJSON(src []byte) error

type MlegInstrumentType added in v1.0.70

type MlegInstrumentType string

MlegInstrumentType The instrument's type

const (
	MLEGINSTRUMENTTYPE_OPTION MlegInstrumentType = "OPTION"
	MLEGINSTRUMENTTYPE_EQUITY MlegInstrumentType = "EQUITY"
)

List of MlegInstrumentType

func NewMlegInstrumentTypeFromValue added in v1.0.70

func NewMlegInstrumentTypeFromValue(v string) (*MlegInstrumentType, error)

NewMlegInstrumentTypeFromValue returns a pointer to a valid MlegInstrumentType for the value passed as argument, or an error if the value passed is not allowed by the enum

func (MlegInstrumentType) IsValid added in v1.0.70

func (v MlegInstrumentType) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (MlegInstrumentType) Ptr added in v1.0.70

Ptr returns reference to MlegInstrumentType value

func (*MlegInstrumentType) UnmarshalJSON added in v1.0.70

func (v *MlegInstrumentType) UnmarshalJSON(src []byte) error

type MlegLeg added in v1.0.68

type MlegLeg struct {
	Instrument MlegTradingInstrument `json:"instrument"`
	Action     MlegActionStrict      `json:"action"`
	// The quantity to trade. For options this represents the number of contracts. For equity this represents the number of shares.
	Units                int32 `json:"units"`
	AdditionalProperties map[string]interface{}
}

MlegLeg struct for MlegLeg

func NewMlegLeg added in v1.0.68

func NewMlegLeg(instrument MlegTradingInstrument, action MlegActionStrict, units int32) *MlegLeg

NewMlegLeg instantiates a new MlegLeg object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewMlegLegWithDefaults added in v1.0.68

func NewMlegLegWithDefaults() *MlegLeg

NewMlegLegWithDefaults instantiates a new MlegLeg object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*MlegLeg) GetAction added in v1.0.68

func (o *MlegLeg) GetAction() MlegActionStrict

GetAction returns the Action field value

func (*MlegLeg) GetActionOk added in v1.0.68

func (o *MlegLeg) GetActionOk() (*MlegActionStrict, bool)

GetActionOk returns a tuple with the Action field value and a boolean to check if the value has been set.

func (*MlegLeg) GetInstrument added in v1.0.68

func (o *MlegLeg) GetInstrument() MlegTradingInstrument

GetInstrument returns the Instrument field value

func (*MlegLeg) GetInstrumentOk added in v1.0.68

func (o *MlegLeg) GetInstrumentOk() (*MlegTradingInstrument, bool)

GetInstrumentOk returns a tuple with the Instrument field value and a boolean to check if the value has been set.

func (*MlegLeg) GetUnits added in v1.0.68

func (o *MlegLeg) GetUnits() int32

GetUnits returns the Units field value

func (*MlegLeg) GetUnitsOk added in v1.0.68

func (o *MlegLeg) GetUnitsOk() (*int32, bool)

GetUnitsOk returns a tuple with the Units field value and a boolean to check if the value has been set.

func (MlegLeg) MarshalJSON added in v1.0.68

func (o MlegLeg) MarshalJSON() ([]byte, error)

func (*MlegLeg) SetAction added in v1.0.68

func (o *MlegLeg) SetAction(v MlegActionStrict)

SetAction sets field value

func (*MlegLeg) SetInstrument added in v1.0.68

func (o *MlegLeg) SetInstrument(v MlegTradingInstrument)

SetInstrument sets field value

func (*MlegLeg) SetUnits added in v1.0.68

func (o *MlegLeg) SetUnits(v int32)

SetUnits sets field value

func (*MlegLeg) UnmarshalJSON added in v1.0.68

func (o *MlegLeg) UnmarshalJSON(bytes []byte) (err error)

type MlegOrderResponse added in v1.0.68

type MlegOrderResponse struct {
	// Order ID returned by brokerage. This is the unique identifier for the order in the brokerage system.
	BrokerageOrderId     string               `json:"brokerage_order_id"`
	Orders               []AccountOrderRecord `json:"orders"`
	AdditionalProperties map[string]interface{}
}

MlegOrderResponse struct for MlegOrderResponse

func NewMlegOrderResponse added in v1.0.68

func NewMlegOrderResponse(brokerageOrderId string, orders []AccountOrderRecord) *MlegOrderResponse

NewMlegOrderResponse instantiates a new MlegOrderResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewMlegOrderResponseWithDefaults added in v1.0.68

func NewMlegOrderResponseWithDefaults() *MlegOrderResponse

NewMlegOrderResponseWithDefaults instantiates a new MlegOrderResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*MlegOrderResponse) GetBrokerageOrderId added in v1.0.68

func (o *MlegOrderResponse) GetBrokerageOrderId() string

GetBrokerageOrderId returns the BrokerageOrderId field value

func (*MlegOrderResponse) GetBrokerageOrderIdOk added in v1.0.68

func (o *MlegOrderResponse) GetBrokerageOrderIdOk() (*string, bool)

GetBrokerageOrderIdOk returns a tuple with the BrokerageOrderId field value and a boolean to check if the value has been set.

func (*MlegOrderResponse) GetOrders added in v1.0.68

func (o *MlegOrderResponse) GetOrders() []AccountOrderRecord

GetOrders returns the Orders field value

func (*MlegOrderResponse) GetOrdersOk added in v1.0.68

func (o *MlegOrderResponse) GetOrdersOk() ([]AccountOrderRecord, bool)

GetOrdersOk returns a tuple with the Orders field value and a boolean to check if the value has been set.

func (MlegOrderResponse) MarshalJSON added in v1.0.68

func (o MlegOrderResponse) MarshalJSON() ([]byte, error)

func (*MlegOrderResponse) SetBrokerageOrderId added in v1.0.68

func (o *MlegOrderResponse) SetBrokerageOrderId(v string)

SetBrokerageOrderId sets field value

func (*MlegOrderResponse) SetOrders added in v1.0.68

func (o *MlegOrderResponse) SetOrders(v []AccountOrderRecord)

SetOrders sets field value

func (*MlegOrderResponse) UnmarshalJSON added in v1.0.68

func (o *MlegOrderResponse) UnmarshalJSON(bytes []byte) (err error)

type MlegOrderTypeStrict added in v1.0.69

type MlegOrderTypeStrict string

MlegOrderTypeStrict The type of order to place.

const (
	MLEGORDERTYPESTRICT_MARKET           MlegOrderTypeStrict = "MARKET"
	MLEGORDERTYPESTRICT_LIMIT            MlegOrderTypeStrict = "LIMIT"
	MLEGORDERTYPESTRICT_STOP_LOSS_MARKET MlegOrderTypeStrict = "STOP_LOSS_MARKET"
	MLEGORDERTYPESTRICT_STOP_LOSS_LIMIT  MlegOrderTypeStrict = "STOP_LOSS_LIMIT"
)

List of MlegOrderTypeStrict

func NewMlegOrderTypeStrictFromValue added in v1.0.69

func NewMlegOrderTypeStrictFromValue(v string) (*MlegOrderTypeStrict, error)

NewMlegOrderTypeStrictFromValue returns a pointer to a valid MlegOrderTypeStrict for the value passed as argument, or an error if the value passed is not allowed by the enum

func (MlegOrderTypeStrict) IsValid added in v1.0.69

func (v MlegOrderTypeStrict) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (MlegOrderTypeStrict) Ptr added in v1.0.69

Ptr returns reference to MlegOrderTypeStrict value

func (*MlegOrderTypeStrict) UnmarshalJSON added in v1.0.69

func (v *MlegOrderTypeStrict) UnmarshalJSON(src []byte) error

type MlegPriceEffectStrict added in v1.0.88

type MlegPriceEffectStrict string

MlegPriceEffectStrict The desired price_effect for LIMIT and STOP_LOSS_LIMIT orders

const (
	MLEGPRICEEFFECTSTRICT_CREDIT MlegPriceEffectStrict = "CREDIT"
	MLEGPRICEEFFECTSTRICT_DEBIT  MlegPriceEffectStrict = "DEBIT"
	MLEGPRICEEFFECTSTRICT_EVEN   MlegPriceEffectStrict = "EVEN"
)

List of MlegPriceEffectStrict

func NewMlegPriceEffectStrictFromValue added in v1.0.88

func NewMlegPriceEffectStrictFromValue(v string) (*MlegPriceEffectStrict, error)

NewMlegPriceEffectStrictFromValue returns a pointer to a valid MlegPriceEffectStrict for the value passed as argument, or an error if the value passed is not allowed by the enum

func (MlegPriceEffectStrict) IsValid added in v1.0.88

func (v MlegPriceEffectStrict) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (MlegPriceEffectStrict) Ptr added in v1.0.88

Ptr returns reference to MlegPriceEffectStrict value

func (*MlegPriceEffectStrict) UnmarshalJSON added in v1.0.88

func (v *MlegPriceEffectStrict) UnmarshalJSON(src []byte) error

type MlegTradeForm added in v1.0.71

type MlegTradeForm struct {
	OrderType   MlegOrderTypeStrict `json:"order_type"`
	TimeInForce TimeInForceStrict   `json:"time_in_force"`
	// The limit price. Required if the order type is LIMIT, STOP_LOSS_LIMIT.
	LimitPrice NullableFloat64 `json:"limit_price,omitempty"`
	// The stop price. Required if the order type is STOP_LOSS_MARKET, STOP_LOSS_LIMIT.
	StopPrice   NullableFloat64               `json:"stop_price,omitempty"`
	PriceEffect NullableMlegPriceEffectStrict `json:"price_effect,omitempty"`
	Legs        []MlegLeg                     `json:"legs"`
}

MlegTradeForm Inputs for placing a multi-leg order with the brokerage.

func NewMlegTradeForm added in v1.0.71

func NewMlegTradeForm(orderType MlegOrderTypeStrict, timeInForce TimeInForceStrict, legs []MlegLeg) *MlegTradeForm

NewMlegTradeForm instantiates a new MlegTradeForm object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewMlegTradeFormWithDefaults added in v1.0.71

func NewMlegTradeFormWithDefaults() *MlegTradeForm

NewMlegTradeFormWithDefaults instantiates a new MlegTradeForm object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*MlegTradeForm) GetLegs added in v1.0.71

func (o *MlegTradeForm) GetLegs() []MlegLeg

GetLegs returns the Legs field value

func (*MlegTradeForm) GetLegsOk added in v1.0.71

func (o *MlegTradeForm) GetLegsOk() ([]MlegLeg, bool)

GetLegsOk returns a tuple with the Legs field value and a boolean to check if the value has been set.

func (*MlegTradeForm) GetLimitPrice added in v1.0.71

func (o *MlegTradeForm) GetLimitPrice() float64

GetLimitPrice returns the LimitPrice field value if set, zero value otherwise (both if not set or set to explicit null).

func (*MlegTradeForm) GetLimitPriceOk added in v1.0.71

func (o *MlegTradeForm) GetLimitPriceOk() (*float64, bool)

GetLimitPriceOk returns a tuple with the LimitPrice field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*MlegTradeForm) GetOrderType added in v1.0.71

func (o *MlegTradeForm) GetOrderType() MlegOrderTypeStrict

GetOrderType returns the OrderType field value

func (*MlegTradeForm) GetOrderTypeOk added in v1.0.71

func (o *MlegTradeForm) GetOrderTypeOk() (*MlegOrderTypeStrict, bool)

GetOrderTypeOk returns a tuple with the OrderType field value and a boolean to check if the value has been set.

func (*MlegTradeForm) GetPriceEffect added in v1.0.77

func (o *MlegTradeForm) GetPriceEffect() MlegPriceEffectStrict

GetPriceEffect returns the PriceEffect field value if set, zero value otherwise (both if not set or set to explicit null).

func (*MlegTradeForm) GetPriceEffectOk added in v1.0.77

func (o *MlegTradeForm) GetPriceEffectOk() (*MlegPriceEffectStrict, bool)

GetPriceEffectOk returns a tuple with the PriceEffect field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*MlegTradeForm) GetStopPrice added in v1.0.71

func (o *MlegTradeForm) GetStopPrice() float64

GetStopPrice returns the StopPrice field value if set, zero value otherwise (both if not set or set to explicit null).

func (*MlegTradeForm) GetStopPriceOk added in v1.0.71

func (o *MlegTradeForm) GetStopPriceOk() (*float64, bool)

GetStopPriceOk returns a tuple with the StopPrice field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*MlegTradeForm) GetTimeInForce added in v1.0.71

func (o *MlegTradeForm) GetTimeInForce() TimeInForceStrict

GetTimeInForce returns the TimeInForce field value

func (*MlegTradeForm) GetTimeInForceOk added in v1.0.71

func (o *MlegTradeForm) GetTimeInForceOk() (*TimeInForceStrict, bool)

GetTimeInForceOk returns a tuple with the TimeInForce field value and a boolean to check if the value has been set.

func (*MlegTradeForm) HasLimitPrice added in v1.0.71

func (o *MlegTradeForm) HasLimitPrice() bool

HasLimitPrice returns a boolean if a field has been set.

func (*MlegTradeForm) HasPriceEffect added in v1.0.77

func (o *MlegTradeForm) HasPriceEffect() bool

HasPriceEffect returns a boolean if a field has been set.

func (*MlegTradeForm) HasStopPrice added in v1.0.71

func (o *MlegTradeForm) HasStopPrice() bool

HasStopPrice returns a boolean if a field has been set.

func (MlegTradeForm) MarshalJSON added in v1.0.71

func (o MlegTradeForm) MarshalJSON() ([]byte, error)

func (*MlegTradeForm) SetLegs added in v1.0.71

func (o *MlegTradeForm) SetLegs(v []MlegLeg)

SetLegs sets field value

func (*MlegTradeForm) SetLimitPrice added in v1.0.71

func (o *MlegTradeForm) SetLimitPrice(v float64)

SetLimitPrice gets a reference to the given NullableFloat64 and assigns it to the LimitPrice field.

func (*MlegTradeForm) SetLimitPriceNil added in v1.0.71

func (o *MlegTradeForm) SetLimitPriceNil()

SetLimitPriceNil sets the value for LimitPrice to be an explicit nil

func (*MlegTradeForm) SetOrderType added in v1.0.71

func (o *MlegTradeForm) SetOrderType(v MlegOrderTypeStrict)

SetOrderType sets field value

func (*MlegTradeForm) SetPriceEffect added in v1.0.77

func (o *MlegTradeForm) SetPriceEffect(v MlegPriceEffectStrict)

SetPriceEffect gets a reference to the given NullableMlegPriceEffectStrict and assigns it to the PriceEffect field.

func (*MlegTradeForm) SetPriceEffectNil added in v1.0.77

func (o *MlegTradeForm) SetPriceEffectNil()

SetPriceEffectNil sets the value for PriceEffect to be an explicit nil

func (*MlegTradeForm) SetStopPrice added in v1.0.71

func (o *MlegTradeForm) SetStopPrice(v float64)

SetStopPrice gets a reference to the given NullableFloat64 and assigns it to the StopPrice field.

func (*MlegTradeForm) SetStopPriceNil added in v1.0.71

func (o *MlegTradeForm) SetStopPriceNil()

SetStopPriceNil sets the value for StopPrice to be an explicit nil

func (*MlegTradeForm) SetTimeInForce added in v1.0.71

func (o *MlegTradeForm) SetTimeInForce(v TimeInForceStrict)

SetTimeInForce sets field value

func (*MlegTradeForm) UnsetLimitPrice added in v1.0.71

func (o *MlegTradeForm) UnsetLimitPrice()

UnsetLimitPrice ensures that no value is present for LimitPrice, not even an explicit nil

func (*MlegTradeForm) UnsetPriceEffect added in v1.0.77

func (o *MlegTradeForm) UnsetPriceEffect()

UnsetPriceEffect ensures that no value is present for PriceEffect, not even an explicit nil

func (*MlegTradeForm) UnsetStopPrice added in v1.0.71

func (o *MlegTradeForm) UnsetStopPrice()

UnsetStopPrice ensures that no value is present for StopPrice, not even an explicit nil

type MlegTradingInstrument added in v1.0.68

type MlegTradingInstrument struct {
	// The security's trading ticker symbol. This currently supports stock symbols and Options symbols in the 21 character OCC format. For example `AAPL  131124C00240000` represents a call option on AAPL expiring on 2024-11-13 with a strike price of $240. For more information on the OCC format, see [here](https://en.wikipedia.org/wiki/Option_symbol#OCC_format)
	Symbol               string             `json:"symbol"`
	InstrumentType       MlegInstrumentType `json:"instrument_type"`
	AdditionalProperties map[string]interface{}
}

MlegTradingInstrument struct for MlegTradingInstrument

func NewMlegTradingInstrument added in v1.0.68

func NewMlegTradingInstrument(symbol string, instrumentType MlegInstrumentType) *MlegTradingInstrument

NewMlegTradingInstrument instantiates a new MlegTradingInstrument object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewMlegTradingInstrumentWithDefaults added in v1.0.68

func NewMlegTradingInstrumentWithDefaults() *MlegTradingInstrument

NewMlegTradingInstrumentWithDefaults instantiates a new MlegTradingInstrument object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*MlegTradingInstrument) GetInstrumentType added in v1.0.70

func (o *MlegTradingInstrument) GetInstrumentType() MlegInstrumentType

GetInstrumentType returns the InstrumentType field value

func (*MlegTradingInstrument) GetInstrumentTypeOk added in v1.0.70

func (o *MlegTradingInstrument) GetInstrumentTypeOk() (*MlegInstrumentType, bool)

GetInstrumentTypeOk returns a tuple with the InstrumentType field value and a boolean to check if the value has been set.

func (*MlegTradingInstrument) GetSymbol added in v1.0.68

func (o *MlegTradingInstrument) GetSymbol() string

GetSymbol returns the Symbol field value

func (*MlegTradingInstrument) GetSymbolOk added in v1.0.68

func (o *MlegTradingInstrument) GetSymbolOk() (*string, bool)

GetSymbolOk returns a tuple with the Symbol field value and a boolean to check if the value has been set.

func (MlegTradingInstrument) MarshalJSON added in v1.0.68

func (o MlegTradingInstrument) MarshalJSON() ([]byte, error)

func (*MlegTradingInstrument) SetInstrumentType added in v1.0.70

func (o *MlegTradingInstrument) SetInstrumentType(v MlegInstrumentType)

SetInstrumentType sets field value

func (*MlegTradingInstrument) SetSymbol added in v1.0.68

func (o *MlegTradingInstrument) SetSymbol(v string)

SetSymbol sets field value

func (*MlegTradingInstrument) UnmarshalJSON added in v1.0.68

func (o *MlegTradingInstrument) UnmarshalJSON(bytes []byte) (err error)

type Model400FailedRequestResponse

type Model400FailedRequestResponse struct {
	DefaultDetail        interface{} `json:"default_detail,omitempty"`
	DefaultCode          interface{} `json:"default_code,omitempty"`
	AdditionalProperties map[string]interface{}
}

Model400FailedRequestResponse Example for failed request response

func NewModel400FailedRequestResponse

func NewModel400FailedRequestResponse() *Model400FailedRequestResponse

NewModel400FailedRequestResponse instantiates a new Model400FailedRequestResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewModel400FailedRequestResponseWithDefaults

func NewModel400FailedRequestResponseWithDefaults() *Model400FailedRequestResponse

NewModel400FailedRequestResponseWithDefaults instantiates a new Model400FailedRequestResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Model400FailedRequestResponse) GetDefaultCode

func (o *Model400FailedRequestResponse) GetDefaultCode() interface{}

GetDefaultCode returns the DefaultCode field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Model400FailedRequestResponse) GetDefaultCodeOk

func (o *Model400FailedRequestResponse) GetDefaultCodeOk() (*interface{}, bool)

GetDefaultCodeOk returns a tuple with the DefaultCode field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Model400FailedRequestResponse) GetDefaultDetail

func (o *Model400FailedRequestResponse) GetDefaultDetail() interface{}

GetDefaultDetail returns the DefaultDetail field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Model400FailedRequestResponse) GetDefaultDetailOk

func (o *Model400FailedRequestResponse) GetDefaultDetailOk() (*interface{}, bool)

GetDefaultDetailOk returns a tuple with the DefaultDetail field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Model400FailedRequestResponse) HasDefaultCode

func (o *Model400FailedRequestResponse) HasDefaultCode() bool

HasDefaultCode returns a boolean if a field has been set.

func (*Model400FailedRequestResponse) HasDefaultDetail

func (o *Model400FailedRequestResponse) HasDefaultDetail() bool

HasDefaultDetail returns a boolean if a field has been set.

func (Model400FailedRequestResponse) MarshalJSON

func (o Model400FailedRequestResponse) MarshalJSON() ([]byte, error)

func (*Model400FailedRequestResponse) SetDefaultCode

func (o *Model400FailedRequestResponse) SetDefaultCode(v interface{})

SetDefaultCode gets a reference to the given interface{} and assigns it to the DefaultCode field.

func (*Model400FailedRequestResponse) SetDefaultDetail

func (o *Model400FailedRequestResponse) SetDefaultDetail(v interface{})

SetDefaultDetail gets a reference to the given interface{} and assigns it to the DefaultDetail field.

func (*Model400FailedRequestResponse) UnmarshalJSON

func (o *Model400FailedRequestResponse) UnmarshalJSON(bytes []byte) (err error)

type Model401FailedRequestResponse

type Model401FailedRequestResponse struct {
	DefaultDetail        interface{} `json:"default_detail,omitempty"`
	DefaultCode          interface{} `json:"default_code,omitempty"`
	AdditionalProperties map[string]interface{}
}

Model401FailedRequestResponse Example for failed request response

func NewModel401FailedRequestResponse

func NewModel401FailedRequestResponse() *Model401FailedRequestResponse

NewModel401FailedRequestResponse instantiates a new Model401FailedRequestResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewModel401FailedRequestResponseWithDefaults

func NewModel401FailedRequestResponseWithDefaults() *Model401FailedRequestResponse

NewModel401FailedRequestResponseWithDefaults instantiates a new Model401FailedRequestResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Model401FailedRequestResponse) GetDefaultCode

func (o *Model401FailedRequestResponse) GetDefaultCode() interface{}

GetDefaultCode returns the DefaultCode field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Model401FailedRequestResponse) GetDefaultCodeOk

func (o *Model401FailedRequestResponse) GetDefaultCodeOk() (*interface{}, bool)

GetDefaultCodeOk returns a tuple with the DefaultCode field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Model401FailedRequestResponse) GetDefaultDetail

func (o *Model401FailedRequestResponse) GetDefaultDetail() interface{}

GetDefaultDetail returns the DefaultDetail field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Model401FailedRequestResponse) GetDefaultDetailOk

func (o *Model401FailedRequestResponse) GetDefaultDetailOk() (*interface{}, bool)

GetDefaultDetailOk returns a tuple with the DefaultDetail field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Model401FailedRequestResponse) HasDefaultCode

func (o *Model401FailedRequestResponse) HasDefaultCode() bool

HasDefaultCode returns a boolean if a field has been set.

func (*Model401FailedRequestResponse) HasDefaultDetail

func (o *Model401FailedRequestResponse) HasDefaultDetail() bool

HasDefaultDetail returns a boolean if a field has been set.

func (Model401FailedRequestResponse) MarshalJSON

func (o Model401FailedRequestResponse) MarshalJSON() ([]byte, error)

func (*Model401FailedRequestResponse) SetDefaultCode

func (o *Model401FailedRequestResponse) SetDefaultCode(v interface{})

SetDefaultCode gets a reference to the given interface{} and assigns it to the DefaultCode field.

func (*Model401FailedRequestResponse) SetDefaultDetail

func (o *Model401FailedRequestResponse) SetDefaultDetail(v interface{})

SetDefaultDetail gets a reference to the given interface{} and assigns it to the DefaultDetail field.

func (*Model401FailedRequestResponse) UnmarshalJSON

func (o *Model401FailedRequestResponse) UnmarshalJSON(bytes []byte) (err error)

type Model402BrokerageAuthAlreadyDisabledException

type Model402BrokerageAuthAlreadyDisabledException struct {
	Detail               interface{} `json:"detail,omitempty"`
	Code                 interface{} `json:"code,omitempty"`
	AdditionalProperties map[string]interface{}
}

Model402BrokerageAuthAlreadyDisabledException This connection is already disabled.

func NewModel402BrokerageAuthAlreadyDisabledException

func NewModel402BrokerageAuthAlreadyDisabledException() *Model402BrokerageAuthAlreadyDisabledException

NewModel402BrokerageAuthAlreadyDisabledException instantiates a new Model402BrokerageAuthAlreadyDisabledException object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewModel402BrokerageAuthAlreadyDisabledExceptionWithDefaults

func NewModel402BrokerageAuthAlreadyDisabledExceptionWithDefaults() *Model402BrokerageAuthAlreadyDisabledException

NewModel402BrokerageAuthAlreadyDisabledExceptionWithDefaults instantiates a new Model402BrokerageAuthAlreadyDisabledException object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Model402BrokerageAuthAlreadyDisabledException) GetCode

func (o *Model402BrokerageAuthAlreadyDisabledException) GetCode() interface{}

GetCode returns the Code field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Model402BrokerageAuthAlreadyDisabledException) GetCodeOk

func (o *Model402BrokerageAuthAlreadyDisabledException) GetCodeOk() (*interface{}, bool)

GetCodeOk returns a tuple with the Code field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Model402BrokerageAuthAlreadyDisabledException) GetDetail

func (o *Model402BrokerageAuthAlreadyDisabledException) GetDetail() interface{}

GetDetail returns the Detail field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Model402BrokerageAuthAlreadyDisabledException) GetDetailOk

func (o *Model402BrokerageAuthAlreadyDisabledException) GetDetailOk() (*interface{}, bool)

GetDetailOk returns a tuple with the Detail field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Model402BrokerageAuthAlreadyDisabledException) HasCode

HasCode returns a boolean if a field has been set.

func (*Model402BrokerageAuthAlreadyDisabledException) HasDetail

HasDetail returns a boolean if a field has been set.

func (Model402BrokerageAuthAlreadyDisabledException) MarshalJSON

func (*Model402BrokerageAuthAlreadyDisabledException) SetCode

func (o *Model402BrokerageAuthAlreadyDisabledException) SetCode(v interface{})

SetCode gets a reference to the given interface{} and assigns it to the Code field.

func (*Model402BrokerageAuthAlreadyDisabledException) SetDetail

func (o *Model402BrokerageAuthAlreadyDisabledException) SetDetail(v interface{})

SetDetail gets a reference to the given interface{} and assigns it to the Detail field.

func (*Model402BrokerageAuthAlreadyDisabledException) UnmarshalJSON

func (o *Model402BrokerageAuthAlreadyDisabledException) UnmarshalJSON(bytes []byte) (err error)

type Model402BrokerageAuthDisabledResponse

type Model402BrokerageAuthDisabledResponse struct {
	Detail               interface{} `json:"detail,omitempty"`
	Code                 interface{} `json:"code,omitempty"`
	AdditionalProperties map[string]interface{}
}

Model402BrokerageAuthDisabledResponse Cannot perform action because connection is disabled

func NewModel402BrokerageAuthDisabledResponse

func NewModel402BrokerageAuthDisabledResponse() *Model402BrokerageAuthDisabledResponse

NewModel402BrokerageAuthDisabledResponse instantiates a new Model402BrokerageAuthDisabledResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewModel402BrokerageAuthDisabledResponseWithDefaults

func NewModel402BrokerageAuthDisabledResponseWithDefaults() *Model402BrokerageAuthDisabledResponse

NewModel402BrokerageAuthDisabledResponseWithDefaults instantiates a new Model402BrokerageAuthDisabledResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Model402BrokerageAuthDisabledResponse) GetCode

func (o *Model402BrokerageAuthDisabledResponse) GetCode() interface{}

GetCode returns the Code field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Model402BrokerageAuthDisabledResponse) GetCodeOk

func (o *Model402BrokerageAuthDisabledResponse) GetCodeOk() (*interface{}, bool)

GetCodeOk returns a tuple with the Code field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Model402BrokerageAuthDisabledResponse) GetDetail

func (o *Model402BrokerageAuthDisabledResponse) GetDetail() interface{}

GetDetail returns the Detail field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Model402BrokerageAuthDisabledResponse) GetDetailOk

func (o *Model402BrokerageAuthDisabledResponse) GetDetailOk() (*interface{}, bool)

GetDetailOk returns a tuple with the Detail field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Model402BrokerageAuthDisabledResponse) HasCode

HasCode returns a boolean if a field has been set.

func (*Model402BrokerageAuthDisabledResponse) HasDetail

HasDetail returns a boolean if a field has been set.

func (Model402BrokerageAuthDisabledResponse) MarshalJSON

func (o Model402BrokerageAuthDisabledResponse) MarshalJSON() ([]byte, error)

func (*Model402BrokerageAuthDisabledResponse) SetCode

func (o *Model402BrokerageAuthDisabledResponse) SetCode(v interface{})

SetCode gets a reference to the given interface{} and assigns it to the Code field.

func (*Model402BrokerageAuthDisabledResponse) SetDetail

func (o *Model402BrokerageAuthDisabledResponse) SetDetail(v interface{})

SetDetail gets a reference to the given interface{} and assigns it to the Detail field.

func (*Model402BrokerageAuthDisabledResponse) UnmarshalJSON

func (o *Model402BrokerageAuthDisabledResponse) UnmarshalJSON(bytes []byte) (err error)

type Model403FailedRequestResponse

type Model403FailedRequestResponse struct {
	DefaultDetail        interface{} `json:"default_detail,omitempty"`
	DefaultCode          interface{} `json:"default_code,omitempty"`
	AdditionalProperties map[string]interface{}
}

Model403FailedRequestResponse Example for failed request response

func NewModel403FailedRequestResponse

func NewModel403FailedRequestResponse() *Model403FailedRequestResponse

NewModel403FailedRequestResponse instantiates a new Model403FailedRequestResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewModel403FailedRequestResponseWithDefaults

func NewModel403FailedRequestResponseWithDefaults() *Model403FailedRequestResponse

NewModel403FailedRequestResponseWithDefaults instantiates a new Model403FailedRequestResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Model403FailedRequestResponse) GetDefaultCode

func (o *Model403FailedRequestResponse) GetDefaultCode() interface{}

GetDefaultCode returns the DefaultCode field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Model403FailedRequestResponse) GetDefaultCodeOk

func (o *Model403FailedRequestResponse) GetDefaultCodeOk() (*interface{}, bool)

GetDefaultCodeOk returns a tuple with the DefaultCode field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Model403FailedRequestResponse) GetDefaultDetail

func (o *Model403FailedRequestResponse) GetDefaultDetail() interface{}

GetDefaultDetail returns the DefaultDetail field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Model403FailedRequestResponse) GetDefaultDetailOk

func (o *Model403FailedRequestResponse) GetDefaultDetailOk() (*interface{}, bool)

GetDefaultDetailOk returns a tuple with the DefaultDetail field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Model403FailedRequestResponse) HasDefaultCode

func (o *Model403FailedRequestResponse) HasDefaultCode() bool

HasDefaultCode returns a boolean if a field has been set.

func (*Model403FailedRequestResponse) HasDefaultDetail

func (o *Model403FailedRequestResponse) HasDefaultDetail() bool

HasDefaultDetail returns a boolean if a field has been set.

func (Model403FailedRequestResponse) MarshalJSON

func (o Model403FailedRequestResponse) MarshalJSON() ([]byte, error)

func (*Model403FailedRequestResponse) SetDefaultCode

func (o *Model403FailedRequestResponse) SetDefaultCode(v interface{})

SetDefaultCode gets a reference to the given interface{} and assigns it to the DefaultCode field.

func (*Model403FailedRequestResponse) SetDefaultDetail

func (o *Model403FailedRequestResponse) SetDefaultDetail(v interface{})

SetDefaultDetail gets a reference to the given interface{} and assigns it to the DefaultDetail field.

func (*Model403FailedRequestResponse) UnmarshalJSON

func (o *Model403FailedRequestResponse) UnmarshalJSON(bytes []byte) (err error)

type Model403FeatureNotEnabledResponse

type Model403FeatureNotEnabledResponse struct {
	Detail               interface{} `json:"detail,omitempty"`
	DefaultCode          interface{} `json:"default_code,omitempty"`
	AdditionalProperties map[string]interface{}
}

Model403FeatureNotEnabledResponse Example for failed request response

func NewModel403FeatureNotEnabledResponse

func NewModel403FeatureNotEnabledResponse() *Model403FeatureNotEnabledResponse

NewModel403FeatureNotEnabledResponse instantiates a new Model403FeatureNotEnabledResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewModel403FeatureNotEnabledResponseWithDefaults

func NewModel403FeatureNotEnabledResponseWithDefaults() *Model403FeatureNotEnabledResponse

NewModel403FeatureNotEnabledResponseWithDefaults instantiates a new Model403FeatureNotEnabledResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Model403FeatureNotEnabledResponse) GetDefaultCode

func (o *Model403FeatureNotEnabledResponse) GetDefaultCode() interface{}

GetDefaultCode returns the DefaultCode field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Model403FeatureNotEnabledResponse) GetDefaultCodeOk

func (o *Model403FeatureNotEnabledResponse) GetDefaultCodeOk() (*interface{}, bool)

GetDefaultCodeOk returns a tuple with the DefaultCode field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Model403FeatureNotEnabledResponse) GetDetail

func (o *Model403FeatureNotEnabledResponse) GetDetail() interface{}

GetDetail returns the Detail field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Model403FeatureNotEnabledResponse) GetDetailOk

func (o *Model403FeatureNotEnabledResponse) GetDetailOk() (*interface{}, bool)

GetDetailOk returns a tuple with the Detail field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Model403FeatureNotEnabledResponse) HasDefaultCode

func (o *Model403FeatureNotEnabledResponse) HasDefaultCode() bool

HasDefaultCode returns a boolean if a field has been set.

func (*Model403FeatureNotEnabledResponse) HasDetail

func (o *Model403FeatureNotEnabledResponse) HasDetail() bool

HasDetail returns a boolean if a field has been set.

func (Model403FeatureNotEnabledResponse) MarshalJSON

func (o Model403FeatureNotEnabledResponse) MarshalJSON() ([]byte, error)

func (*Model403FeatureNotEnabledResponse) SetDefaultCode

func (o *Model403FeatureNotEnabledResponse) SetDefaultCode(v interface{})

SetDefaultCode gets a reference to the given interface{} and assigns it to the DefaultCode field.

func (*Model403FeatureNotEnabledResponse) SetDetail

func (o *Model403FeatureNotEnabledResponse) SetDetail(v interface{})

SetDetail gets a reference to the given interface{} and assigns it to the Detail field.

func (*Model403FeatureNotEnabledResponse) UnmarshalJSON

func (o *Model403FeatureNotEnabledResponse) UnmarshalJSON(bytes []byte) (err error)

type Model404FailedRequestResponse

type Model404FailedRequestResponse struct {
	DefaultDetail        interface{} `json:"default_detail,omitempty"`
	DefaultCode          interface{} `json:"default_code,omitempty"`
	AdditionalProperties map[string]interface{}
}

Model404FailedRequestResponse Example for failed request response

func NewModel404FailedRequestResponse

func NewModel404FailedRequestResponse() *Model404FailedRequestResponse

NewModel404FailedRequestResponse instantiates a new Model404FailedRequestResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewModel404FailedRequestResponseWithDefaults

func NewModel404FailedRequestResponseWithDefaults() *Model404FailedRequestResponse

NewModel404FailedRequestResponseWithDefaults instantiates a new Model404FailedRequestResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Model404FailedRequestResponse) GetDefaultCode

func (o *Model404FailedRequestResponse) GetDefaultCode() interface{}

GetDefaultCode returns the DefaultCode field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Model404FailedRequestResponse) GetDefaultCodeOk

func (o *Model404FailedRequestResponse) GetDefaultCodeOk() (*interface{}, bool)

GetDefaultCodeOk returns a tuple with the DefaultCode field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Model404FailedRequestResponse) GetDefaultDetail

func (o *Model404FailedRequestResponse) GetDefaultDetail() interface{}

GetDefaultDetail returns the DefaultDetail field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Model404FailedRequestResponse) GetDefaultDetailOk

func (o *Model404FailedRequestResponse) GetDefaultDetailOk() (*interface{}, bool)

GetDefaultDetailOk returns a tuple with the DefaultDetail field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Model404FailedRequestResponse) HasDefaultCode

func (o *Model404FailedRequestResponse) HasDefaultCode() bool

HasDefaultCode returns a boolean if a field has been set.

func (*Model404FailedRequestResponse) HasDefaultDetail

func (o *Model404FailedRequestResponse) HasDefaultDetail() bool

HasDefaultDetail returns a boolean if a field has been set.

func (Model404FailedRequestResponse) MarshalJSON

func (o Model404FailedRequestResponse) MarshalJSON() ([]byte, error)

func (*Model404FailedRequestResponse) SetDefaultCode

func (o *Model404FailedRequestResponse) SetDefaultCode(v interface{})

SetDefaultCode gets a reference to the given interface{} and assigns it to the DefaultCode field.

func (*Model404FailedRequestResponse) SetDefaultDetail

func (o *Model404FailedRequestResponse) SetDefaultDetail(v interface{})

SetDefaultDetail gets a reference to the given interface{} and assigns it to the DefaultDetail field.

func (*Model404FailedRequestResponse) UnmarshalJSON

func (o *Model404FailedRequestResponse) UnmarshalJSON(bytes []byte) (err error)

type Model425FailedRequestResponse added in v1.0.23

type Model425FailedRequestResponse struct {
	Detail               interface{} `json:"detail,omitempty"`
	Code                 interface{} `json:"code,omitempty"`
	AdditionalProperties map[string]interface{}
}

Model425FailedRequestResponse Example for failed request response

func NewModel425FailedRequestResponse added in v1.0.23

func NewModel425FailedRequestResponse() *Model425FailedRequestResponse

NewModel425FailedRequestResponse instantiates a new Model425FailedRequestResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewModel425FailedRequestResponseWithDefaults added in v1.0.23

func NewModel425FailedRequestResponseWithDefaults() *Model425FailedRequestResponse

NewModel425FailedRequestResponseWithDefaults instantiates a new Model425FailedRequestResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Model425FailedRequestResponse) GetCode added in v1.0.23

func (o *Model425FailedRequestResponse) GetCode() interface{}

GetCode returns the Code field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Model425FailedRequestResponse) GetCodeOk added in v1.0.23

func (o *Model425FailedRequestResponse) GetCodeOk() (*interface{}, bool)

GetCodeOk returns a tuple with the Code field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Model425FailedRequestResponse) GetDetail added in v1.0.23

func (o *Model425FailedRequestResponse) GetDetail() interface{}

GetDetail returns the Detail field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Model425FailedRequestResponse) GetDetailOk added in v1.0.23

func (o *Model425FailedRequestResponse) GetDetailOk() (*interface{}, bool)

GetDetailOk returns a tuple with the Detail field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Model425FailedRequestResponse) HasCode added in v1.0.23

func (o *Model425FailedRequestResponse) HasCode() bool

HasCode returns a boolean if a field has been set.

func (*Model425FailedRequestResponse) HasDetail added in v1.0.23

func (o *Model425FailedRequestResponse) HasDetail() bool

HasDetail returns a boolean if a field has been set.

func (Model425FailedRequestResponse) MarshalJSON added in v1.0.23

func (o Model425FailedRequestResponse) MarshalJSON() ([]byte, error)

func (*Model425FailedRequestResponse) SetCode added in v1.0.23

func (o *Model425FailedRequestResponse) SetCode(v interface{})

SetCode gets a reference to the given interface{} and assigns it to the Code field.

func (*Model425FailedRequestResponse) SetDetail added in v1.0.23

func (o *Model425FailedRequestResponse) SetDetail(v interface{})

SetDetail gets a reference to the given interface{} and assigns it to the Detail field.

func (*Model425FailedRequestResponse) UnmarshalJSON added in v1.0.23

func (o *Model425FailedRequestResponse) UnmarshalJSON(bytes []byte) (err error)

type Model500UnexpectedExceptionResponse

type Model500UnexpectedExceptionResponse struct {
	Detail               interface{} `json:"detail,omitempty"`
	StatusCode           interface{} `json:"status_code,omitempty"`
	Code                 interface{} `json:"code,omitempty"`
	AdditionalProperties map[string]interface{}
}

Model500UnexpectedExceptionResponse Example for a response that failed for unexpected reasons

func NewModel500UnexpectedExceptionResponse

func NewModel500UnexpectedExceptionResponse() *Model500UnexpectedExceptionResponse

NewModel500UnexpectedExceptionResponse instantiates a new Model500UnexpectedExceptionResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewModel500UnexpectedExceptionResponseWithDefaults

func NewModel500UnexpectedExceptionResponseWithDefaults() *Model500UnexpectedExceptionResponse

NewModel500UnexpectedExceptionResponseWithDefaults instantiates a new Model500UnexpectedExceptionResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Model500UnexpectedExceptionResponse) GetCode

func (o *Model500UnexpectedExceptionResponse) GetCode() interface{}

GetCode returns the Code field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Model500UnexpectedExceptionResponse) GetCodeOk

func (o *Model500UnexpectedExceptionResponse) GetCodeOk() (*interface{}, bool)

GetCodeOk returns a tuple with the Code field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Model500UnexpectedExceptionResponse) GetDetail

func (o *Model500UnexpectedExceptionResponse) GetDetail() interface{}

GetDetail returns the Detail field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Model500UnexpectedExceptionResponse) GetDetailOk

func (o *Model500UnexpectedExceptionResponse) GetDetailOk() (*interface{}, bool)

GetDetailOk returns a tuple with the Detail field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Model500UnexpectedExceptionResponse) GetStatusCode

func (o *Model500UnexpectedExceptionResponse) GetStatusCode() interface{}

GetStatusCode returns the StatusCode field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Model500UnexpectedExceptionResponse) GetStatusCodeOk

func (o *Model500UnexpectedExceptionResponse) GetStatusCodeOk() (*interface{}, bool)

GetStatusCodeOk returns a tuple with the StatusCode field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Model500UnexpectedExceptionResponse) HasCode

HasCode returns a boolean if a field has been set.

func (*Model500UnexpectedExceptionResponse) HasDetail

HasDetail returns a boolean if a field has been set.

func (*Model500UnexpectedExceptionResponse) HasStatusCode

func (o *Model500UnexpectedExceptionResponse) HasStatusCode() bool

HasStatusCode returns a boolean if a field has been set.

func (Model500UnexpectedExceptionResponse) MarshalJSON

func (o Model500UnexpectedExceptionResponse) MarshalJSON() ([]byte, error)

func (*Model500UnexpectedExceptionResponse) SetCode

func (o *Model500UnexpectedExceptionResponse) SetCode(v interface{})

SetCode gets a reference to the given interface{} and assigns it to the Code field.

func (*Model500UnexpectedExceptionResponse) SetDetail

func (o *Model500UnexpectedExceptionResponse) SetDetail(v interface{})

SetDetail gets a reference to the given interface{} and assigns it to the Detail field.

func (*Model500UnexpectedExceptionResponse) SetStatusCode

func (o *Model500UnexpectedExceptionResponse) SetStatusCode(v interface{})

SetStatusCode gets a reference to the given interface{} and assigns it to the StatusCode field.

func (*Model500UnexpectedExceptionResponse) UnmarshalJSON

func (o *Model500UnexpectedExceptionResponse) UnmarshalJSON(bytes []byte) (err error)

type MonthlyDividends

type MonthlyDividends struct {
	// Date used to specify timeframe for a reporting call (in YYYY-MM-DD format). These dates are inclusive.
	Date                 *string          `json:"date,omitempty"`
	Dividends            []DividendAtDate `json:"dividends,omitempty"`
	AdditionalProperties map[string]interface{}
}

MonthlyDividends struct for MonthlyDividends

func NewMonthlyDividends

func NewMonthlyDividends() *MonthlyDividends

NewMonthlyDividends instantiates a new MonthlyDividends object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewMonthlyDividendsWithDefaults

func NewMonthlyDividendsWithDefaults() *MonthlyDividends

NewMonthlyDividendsWithDefaults instantiates a new MonthlyDividends object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*MonthlyDividends) GetDate

func (o *MonthlyDividends) GetDate() string

GetDate returns the Date field value if set, zero value otherwise.

func (*MonthlyDividends) GetDateOk

func (o *MonthlyDividends) GetDateOk() (*string, bool)

GetDateOk returns a tuple with the Date field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MonthlyDividends) GetDividends

func (o *MonthlyDividends) GetDividends() []DividendAtDate

GetDividends returns the Dividends field value if set, zero value otherwise.

func (*MonthlyDividends) GetDividendsOk

func (o *MonthlyDividends) GetDividendsOk() ([]DividendAtDate, bool)

GetDividendsOk returns a tuple with the Dividends field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MonthlyDividends) HasDate

func (o *MonthlyDividends) HasDate() bool

HasDate returns a boolean if a field has been set.

func (*MonthlyDividends) HasDividends

func (o *MonthlyDividends) HasDividends() bool

HasDividends returns a boolean if a field has been set.

func (MonthlyDividends) MarshalJSON

func (o MonthlyDividends) MarshalJSON() ([]byte, error)

func (*MonthlyDividends) SetDate

func (o *MonthlyDividends) SetDate(v string)

SetDate gets a reference to the given string and assigns it to the Date field.

func (*MonthlyDividends) SetDividends

func (o *MonthlyDividends) SetDividends(v []DividendAtDate)

SetDividends gets a reference to the given []DividendAtDate and assigns it to the Dividends field.

func (*MonthlyDividends) UnmarshalJSON

func (o *MonthlyDividends) UnmarshalJSON(bytes []byte) (err error)

type NetContributions

type NetContributions struct {
	// Date used to specify timeframe for a reporting call (in YYYY-MM-DD format). These dates are inclusive.
	Date                 *string         `json:"date,omitempty"`
	Contributions        NullableFloat32 `json:"contributions,omitempty"`
	Currency             *string         `json:"currency,omitempty"`
	AdditionalProperties map[string]interface{}
}

NetContributions struct for NetContributions

func NewNetContributions

func NewNetContributions() *NetContributions

NewNetContributions instantiates a new NetContributions object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewNetContributionsWithDefaults

func NewNetContributionsWithDefaults() *NetContributions

NewNetContributionsWithDefaults instantiates a new NetContributions object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*NetContributions) GetContributions

func (o *NetContributions) GetContributions() float32

GetContributions returns the Contributions field value if set, zero value otherwise (both if not set or set to explicit null).

func (*NetContributions) GetContributionsOk

func (o *NetContributions) GetContributionsOk() (*float32, bool)

GetContributionsOk returns a tuple with the Contributions field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*NetContributions) GetCurrency

func (o *NetContributions) GetCurrency() string

GetCurrency returns the Currency field value if set, zero value otherwise.

func (*NetContributions) GetCurrencyOk

func (o *NetContributions) GetCurrencyOk() (*string, bool)

GetCurrencyOk returns a tuple with the Currency field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NetContributions) GetDate

func (o *NetContributions) GetDate() string

GetDate returns the Date field value if set, zero value otherwise.

func (*NetContributions) GetDateOk

func (o *NetContributions) GetDateOk() (*string, bool)

GetDateOk returns a tuple with the Date field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NetContributions) HasContributions

func (o *NetContributions) HasContributions() bool

HasContributions returns a boolean if a field has been set.

func (*NetContributions) HasCurrency

func (o *NetContributions) HasCurrency() bool

HasCurrency returns a boolean if a field has been set.

func (*NetContributions) HasDate

func (o *NetContributions) HasDate() bool

HasDate returns a boolean if a field has been set.

func (NetContributions) MarshalJSON

func (o NetContributions) MarshalJSON() ([]byte, error)

func (*NetContributions) SetContributions

func (o *NetContributions) SetContributions(v float32)

SetContributions gets a reference to the given NullableFloat32 and assigns it to the Contributions field.

func (*NetContributions) SetContributionsNil

func (o *NetContributions) SetContributionsNil()

SetContributionsNil sets the value for Contributions to be an explicit nil

func (*NetContributions) SetCurrency

func (o *NetContributions) SetCurrency(v string)

SetCurrency gets a reference to the given string and assigns it to the Currency field.

func (*NetContributions) SetDate

func (o *NetContributions) SetDate(v string)

SetDate gets a reference to the given string and assigns it to the Date field.

func (*NetContributions) UnmarshalJSON

func (o *NetContributions) UnmarshalJSON(bytes []byte) (err error)

func (*NetContributions) UnsetContributions

func (o *NetContributions) UnsetContributions()

UnsetContributions ensures that no value is present for Contributions, not even an explicit nil

type NetDividend

type NetDividend struct {
	Symbol               *UniversalSymbol `json:"symbol,omitempty"`
	Amount               NullableFloat32  `json:"amount,omitempty"`
	Currency             *string          `json:"currency,omitempty"`
	AdditionalProperties map[string]interface{}
}

NetDividend Object representing total dividends received during a timeframe

func NewNetDividend

func NewNetDividend() *NetDividend

NewNetDividend instantiates a new NetDividend object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewNetDividendWithDefaults

func NewNetDividendWithDefaults() *NetDividend

NewNetDividendWithDefaults instantiates a new NetDividend object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*NetDividend) GetAmount

func (o *NetDividend) GetAmount() float32

GetAmount returns the Amount field value if set, zero value otherwise (both if not set or set to explicit null).

func (*NetDividend) GetAmountOk

func (o *NetDividend) GetAmountOk() (*float32, bool)

GetAmountOk returns a tuple with the Amount field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*NetDividend) GetCurrency

func (o *NetDividend) GetCurrency() string

GetCurrency returns the Currency field value if set, zero value otherwise.

func (*NetDividend) GetCurrencyOk

func (o *NetDividend) GetCurrencyOk() (*string, bool)

GetCurrencyOk returns a tuple with the Currency field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NetDividend) GetSymbol

func (o *NetDividend) GetSymbol() UniversalSymbol

GetSymbol returns the Symbol field value if set, zero value otherwise.

func (*NetDividend) GetSymbolOk

func (o *NetDividend) GetSymbolOk() (*UniversalSymbol, bool)

GetSymbolOk returns a tuple with the Symbol field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NetDividend) HasAmount

func (o *NetDividend) HasAmount() bool

HasAmount returns a boolean if a field has been set.

func (*NetDividend) HasCurrency

func (o *NetDividend) HasCurrency() bool

HasCurrency returns a boolean if a field has been set.

func (*NetDividend) HasSymbol

func (o *NetDividend) HasSymbol() bool

HasSymbol returns a boolean if a field has been set.

func (NetDividend) MarshalJSON

func (o NetDividend) MarshalJSON() ([]byte, error)

func (*NetDividend) SetAmount

func (o *NetDividend) SetAmount(v float32)

SetAmount gets a reference to the given NullableFloat32 and assigns it to the Amount field.

func (*NetDividend) SetAmountNil

func (o *NetDividend) SetAmountNil()

SetAmountNil sets the value for Amount to be an explicit nil

func (*NetDividend) SetCurrency

func (o *NetDividend) SetCurrency(v string)

SetCurrency gets a reference to the given string and assigns it to the Currency field.

func (*NetDividend) SetSymbol

func (o *NetDividend) SetSymbol(v UniversalSymbol)

SetSymbol gets a reference to the given UniversalSymbol and assigns it to the Symbol field.

func (*NetDividend) UnmarshalJSON

func (o *NetDividend) UnmarshalJSON(bytes []byte) (err error)

func (*NetDividend) UnsetAmount

func (o *NetDividend) UnsetAmount()

UnsetAmount ensures that no value is present for Amount, not even an explicit nil

type NotionalValue

type NotionalValue struct {
	Float32 *float32
	String  *string
}

NotionalValue - Total notional amount for the order. Must be `null` if `units` is provided. Can only work with `Market` for `order_type` and `Day` for `time_in_force`. This is only available for certain brokerages. Please check the [integrations doc](https://snaptrade.notion.site/66793431ad0b416489eaabaf248d0afb?v=e7bbcbf9f272441593f93decde660687) for more information.

func Float32AsNotionalValue

func Float32AsNotionalValue(v *float32) NotionalValue

float32AsNotionalValue is a convenience function that returns float32 wrapped in NotionalValue

func StringAsNotionalValue

func StringAsNotionalValue(v *string) NotionalValue

stringAsNotionalValue is a convenience function that returns string wrapped in NotionalValue

func (*NotionalValue) GetActualInstance

func (obj *NotionalValue) GetActualInstance() interface{}

Get the actual instance

func (NotionalValue) MarshalJSON

func (src NotionalValue) MarshalJSON() ([]byte, error)

Marshal data from the first non-nil pointers in the struct to JSON

func (*NotionalValue) UnmarshalJSON

func (dst *NotionalValue) UnmarshalJSON(data []byte) error

Unmarshal JSON data into one of the pointers in the struct

type NullableAccount

type NullableAccount struct {
	// contains filtered or unexported fields
}

func NewNullableAccount

func NewNullableAccount(val *Account) *NullableAccount

func (NullableAccount) Get

func (v NullableAccount) Get() *Account

func (NullableAccount) IsSet

func (v NullableAccount) IsSet() bool

func (NullableAccount) MarshalJSON

func (v NullableAccount) MarshalJSON() ([]byte, error)

func (*NullableAccount) Set

func (v *NullableAccount) Set(val *Account)

func (*NullableAccount) UnmarshalJSON

func (v *NullableAccount) UnmarshalJSON(src []byte) error

func (*NullableAccount) Unset

func (v *NullableAccount) Unset()

type NullableAccountBalance

type NullableAccountBalance struct {
	// contains filtered or unexported fields
}

func NewNullableAccountBalance

func NewNullableAccountBalance(val *AccountBalance) *NullableAccountBalance

func (NullableAccountBalance) Get

func (NullableAccountBalance) IsSet

func (v NullableAccountBalance) IsSet() bool

func (NullableAccountBalance) MarshalJSON

func (v NullableAccountBalance) MarshalJSON() ([]byte, error)

func (*NullableAccountBalance) Set

func (*NullableAccountBalance) UnmarshalJSON

func (v *NullableAccountBalance) UnmarshalJSON(src []byte) error

func (*NullableAccountBalance) Unset

func (v *NullableAccountBalance) Unset()

type NullableAccountBalanceTotal

type NullableAccountBalanceTotal struct {
	// contains filtered or unexported fields
}

func NewNullableAccountBalanceTotal

func NewNullableAccountBalanceTotal(val *AccountBalanceTotal) *NullableAccountBalanceTotal

func (NullableAccountBalanceTotal) Get

func (NullableAccountBalanceTotal) IsSet

func (NullableAccountBalanceTotal) MarshalJSON

func (v NullableAccountBalanceTotal) MarshalJSON() ([]byte, error)

func (*NullableAccountBalanceTotal) Set

func (*NullableAccountBalanceTotal) UnmarshalJSON

func (v *NullableAccountBalanceTotal) UnmarshalJSON(src []byte) error

func (*NullableAccountBalanceTotal) Unset

func (v *NullableAccountBalanceTotal) Unset()

type NullableAccountHoldings

type NullableAccountHoldings struct {
	// contains filtered or unexported fields
}

func NewNullableAccountHoldings

func NewNullableAccountHoldings(val *AccountHoldings) *NullableAccountHoldings

func (NullableAccountHoldings) Get

func (NullableAccountHoldings) IsSet

func (v NullableAccountHoldings) IsSet() bool

func (NullableAccountHoldings) MarshalJSON

func (v NullableAccountHoldings) MarshalJSON() ([]byte, error)

func (*NullableAccountHoldings) Set

func (*NullableAccountHoldings) UnmarshalJSON

func (v *NullableAccountHoldings) UnmarshalJSON(src []byte) error

func (*NullableAccountHoldings) Unset

func (v *NullableAccountHoldings) Unset()

type NullableAccountHoldingsAccount

type NullableAccountHoldingsAccount struct {
	// contains filtered or unexported fields
}

func (NullableAccountHoldingsAccount) Get

func (NullableAccountHoldingsAccount) IsSet

func (NullableAccountHoldingsAccount) MarshalJSON

func (v NullableAccountHoldingsAccount) MarshalJSON() ([]byte, error)

func (*NullableAccountHoldingsAccount) Set

func (*NullableAccountHoldingsAccount) UnmarshalJSON

func (v *NullableAccountHoldingsAccount) UnmarshalJSON(src []byte) error

func (*NullableAccountHoldingsAccount) Unset

func (v *NullableAccountHoldingsAccount) Unset()

type NullableAccountInformationGetUserAccountOrderDetailRequest added in v1.0.100

type NullableAccountInformationGetUserAccountOrderDetailRequest struct {
	// contains filtered or unexported fields
}

func (NullableAccountInformationGetUserAccountOrderDetailRequest) Get added in v1.0.100

func (NullableAccountInformationGetUserAccountOrderDetailRequest) IsSet added in v1.0.100

func (NullableAccountInformationGetUserAccountOrderDetailRequest) MarshalJSON added in v1.0.100

func (*NullableAccountInformationGetUserAccountOrderDetailRequest) Set added in v1.0.100

func (*NullableAccountInformationGetUserAccountOrderDetailRequest) UnmarshalJSON added in v1.0.100

func (*NullableAccountInformationGetUserAccountOrderDetailRequest) Unset added in v1.0.100

type NullableAccountOrderRecord

type NullableAccountOrderRecord struct {
	// contains filtered or unexported fields
}

func NewNullableAccountOrderRecord

func NewNullableAccountOrderRecord(val *AccountOrderRecord) *NullableAccountOrderRecord

func (NullableAccountOrderRecord) Get

func (NullableAccountOrderRecord) IsSet

func (v NullableAccountOrderRecord) IsSet() bool

func (NullableAccountOrderRecord) MarshalJSON

func (v NullableAccountOrderRecord) MarshalJSON() ([]byte, error)

func (*NullableAccountOrderRecord) Set

func (*NullableAccountOrderRecord) UnmarshalJSON

func (v *NullableAccountOrderRecord) UnmarshalJSON(src []byte) error

func (*NullableAccountOrderRecord) Unset

func (v *NullableAccountOrderRecord) Unset()

type NullableAccountOrderRecordChildBrokerageOrderIds added in v1.0.55

type NullableAccountOrderRecordChildBrokerageOrderIds struct {
	// contains filtered or unexported fields
}

func (NullableAccountOrderRecordChildBrokerageOrderIds) Get added in v1.0.55

func (NullableAccountOrderRecordChildBrokerageOrderIds) IsSet added in v1.0.55

func (NullableAccountOrderRecordChildBrokerageOrderIds) MarshalJSON added in v1.0.55

func (*NullableAccountOrderRecordChildBrokerageOrderIds) Set added in v1.0.55

func (*NullableAccountOrderRecordChildBrokerageOrderIds) UnmarshalJSON added in v1.0.55

func (*NullableAccountOrderRecordChildBrokerageOrderIds) Unset added in v1.0.55

type NullableAccountOrderRecordLeg added in v1.0.117

type NullableAccountOrderRecordLeg struct {
	// contains filtered or unexported fields
}

func NewNullableAccountOrderRecordLeg added in v1.0.117

func NewNullableAccountOrderRecordLeg(val *AccountOrderRecordLeg) *NullableAccountOrderRecordLeg

func (NullableAccountOrderRecordLeg) Get added in v1.0.117

func (NullableAccountOrderRecordLeg) IsSet added in v1.0.117

func (NullableAccountOrderRecordLeg) MarshalJSON added in v1.0.117

func (v NullableAccountOrderRecordLeg) MarshalJSON() ([]byte, error)

func (*NullableAccountOrderRecordLeg) Set added in v1.0.117

func (*NullableAccountOrderRecordLeg) UnmarshalJSON added in v1.0.117

func (v *NullableAccountOrderRecordLeg) UnmarshalJSON(src []byte) error

func (*NullableAccountOrderRecordLeg) Unset added in v1.0.117

func (v *NullableAccountOrderRecordLeg) Unset()

type NullableAccountOrderRecordLegInstrument added in v1.0.117

type NullableAccountOrderRecordLegInstrument struct {
	// contains filtered or unexported fields
}

func NewNullableAccountOrderRecordLegInstrument added in v1.0.117

func NewNullableAccountOrderRecordLegInstrument(val *AccountOrderRecordLegInstrument) *NullableAccountOrderRecordLegInstrument

func (NullableAccountOrderRecordLegInstrument) Get added in v1.0.117

func (NullableAccountOrderRecordLegInstrument) IsSet added in v1.0.117

func (NullableAccountOrderRecordLegInstrument) MarshalJSON added in v1.0.117

func (v NullableAccountOrderRecordLegInstrument) MarshalJSON() ([]byte, error)

func (*NullableAccountOrderRecordLegInstrument) Set added in v1.0.117

func (*NullableAccountOrderRecordLegInstrument) UnmarshalJSON added in v1.0.117

func (v *NullableAccountOrderRecordLegInstrument) UnmarshalJSON(src []byte) error

func (*NullableAccountOrderRecordLegInstrument) Unset added in v1.0.117

type NullableAccountOrderRecordOptionSymbol added in v1.0.4

type NullableAccountOrderRecordOptionSymbol struct {
	// contains filtered or unexported fields
}

func NewNullableAccountOrderRecordOptionSymbol added in v1.0.4

func NewNullableAccountOrderRecordOptionSymbol(val *AccountOrderRecordOptionSymbol) *NullableAccountOrderRecordOptionSymbol

func (NullableAccountOrderRecordOptionSymbol) Get added in v1.0.4

func (NullableAccountOrderRecordOptionSymbol) IsSet added in v1.0.4

func (NullableAccountOrderRecordOptionSymbol) MarshalJSON added in v1.0.4

func (v NullableAccountOrderRecordOptionSymbol) MarshalJSON() ([]byte, error)

func (*NullableAccountOrderRecordOptionSymbol) Set added in v1.0.4

func (*NullableAccountOrderRecordOptionSymbol) UnmarshalJSON added in v1.0.4

func (v *NullableAccountOrderRecordOptionSymbol) UnmarshalJSON(src []byte) error

func (*NullableAccountOrderRecordOptionSymbol) Unset added in v1.0.4

type NullableAccountOrderRecordQuoteCurrency added in v1.0.58

type NullableAccountOrderRecordQuoteCurrency struct {
	// contains filtered or unexported fields
}

func NewNullableAccountOrderRecordQuoteCurrency added in v1.0.58

func NewNullableAccountOrderRecordQuoteCurrency(val *AccountOrderRecordQuoteCurrency) *NullableAccountOrderRecordQuoteCurrency

func (NullableAccountOrderRecordQuoteCurrency) Get added in v1.0.58

func (NullableAccountOrderRecordQuoteCurrency) IsSet added in v1.0.58

func (NullableAccountOrderRecordQuoteCurrency) MarshalJSON added in v1.0.58

func (v NullableAccountOrderRecordQuoteCurrency) MarshalJSON() ([]byte, error)

func (*NullableAccountOrderRecordQuoteCurrency) Set added in v1.0.58

func (*NullableAccountOrderRecordQuoteCurrency) UnmarshalJSON added in v1.0.58

func (v *NullableAccountOrderRecordQuoteCurrency) UnmarshalJSON(src []byte) error

func (*NullableAccountOrderRecordQuoteCurrency) Unset added in v1.0.58

type NullableAccountOrderRecordQuoteUniversalSymbol added in v1.0.58

type NullableAccountOrderRecordQuoteUniversalSymbol struct {
	// contains filtered or unexported fields
}

func (NullableAccountOrderRecordQuoteUniversalSymbol) Get added in v1.0.58

func (NullableAccountOrderRecordQuoteUniversalSymbol) IsSet added in v1.0.58

func (NullableAccountOrderRecordQuoteUniversalSymbol) MarshalJSON added in v1.0.58

func (*NullableAccountOrderRecordQuoteUniversalSymbol) Set added in v1.0.58

func (*NullableAccountOrderRecordQuoteUniversalSymbol) UnmarshalJSON added in v1.0.58

func (*NullableAccountOrderRecordQuoteUniversalSymbol) Unset added in v1.0.58

type NullableAccountOrderRecordStatus

type NullableAccountOrderRecordStatus struct {
	// contains filtered or unexported fields
}

func (NullableAccountOrderRecordStatus) Get

func (NullableAccountOrderRecordStatus) IsSet

func (NullableAccountOrderRecordStatus) MarshalJSON

func (v NullableAccountOrderRecordStatus) MarshalJSON() ([]byte, error)

func (*NullableAccountOrderRecordStatus) Set

func (*NullableAccountOrderRecordStatus) UnmarshalJSON

func (v *NullableAccountOrderRecordStatus) UnmarshalJSON(src []byte) error

func (*NullableAccountOrderRecordStatus) Unset

type NullableAccountOrderRecordStatusV2 added in v1.0.117

type NullableAccountOrderRecordStatusV2 struct {
	// contains filtered or unexported fields
}

func NewNullableAccountOrderRecordStatusV2 added in v1.0.117

func NewNullableAccountOrderRecordStatusV2(val *AccountOrderRecordStatusV2) *NullableAccountOrderRecordStatusV2

func (NullableAccountOrderRecordStatusV2) Get added in v1.0.117

func (NullableAccountOrderRecordStatusV2) IsSet added in v1.0.117

func (NullableAccountOrderRecordStatusV2) MarshalJSON added in v1.0.117

func (v NullableAccountOrderRecordStatusV2) MarshalJSON() ([]byte, error)

func (*NullableAccountOrderRecordStatusV2) Set added in v1.0.117

func (*NullableAccountOrderRecordStatusV2) UnmarshalJSON added in v1.0.117

func (v *NullableAccountOrderRecordStatusV2) UnmarshalJSON(src []byte) error

func (*NullableAccountOrderRecordStatusV2) Unset added in v1.0.117

type NullableAccountOrderRecordUniversalSymbol added in v1.0.4

type NullableAccountOrderRecordUniversalSymbol struct {
	// contains filtered or unexported fields
}

func NewNullableAccountOrderRecordUniversalSymbol added in v1.0.4

func NewNullableAccountOrderRecordUniversalSymbol(val *AccountOrderRecordUniversalSymbol) *NullableAccountOrderRecordUniversalSymbol

func (NullableAccountOrderRecordUniversalSymbol) Get added in v1.0.4

func (NullableAccountOrderRecordUniversalSymbol) IsSet added in v1.0.4

func (NullableAccountOrderRecordUniversalSymbol) MarshalJSON added in v1.0.4

func (*NullableAccountOrderRecordUniversalSymbol) Set added in v1.0.4

func (*NullableAccountOrderRecordUniversalSymbol) UnmarshalJSON added in v1.0.4

func (v *NullableAccountOrderRecordUniversalSymbol) UnmarshalJSON(src []byte) error

func (*NullableAccountOrderRecordUniversalSymbol) Unset added in v1.0.4

type NullableAccountOrderRecordV2 added in v1.0.117

type NullableAccountOrderRecordV2 struct {
	// contains filtered or unexported fields
}

func NewNullableAccountOrderRecordV2 added in v1.0.117

func NewNullableAccountOrderRecordV2(val *AccountOrderRecordV2) *NullableAccountOrderRecordV2

func (NullableAccountOrderRecordV2) Get added in v1.0.117

func (NullableAccountOrderRecordV2) IsSet added in v1.0.117

func (NullableAccountOrderRecordV2) MarshalJSON added in v1.0.117

func (v NullableAccountOrderRecordV2) MarshalJSON() ([]byte, error)

func (*NullableAccountOrderRecordV2) Set added in v1.0.117

func (*NullableAccountOrderRecordV2) UnmarshalJSON added in v1.0.117

func (v *NullableAccountOrderRecordV2) UnmarshalJSON(src []byte) error

func (*NullableAccountOrderRecordV2) Unset added in v1.0.117

func (v *NullableAccountOrderRecordV2) Unset()

type NullableAccountOrdersV2Response added in v1.0.117

type NullableAccountOrdersV2Response struct {
	// contains filtered or unexported fields
}

func NewNullableAccountOrdersV2Response added in v1.0.117

func NewNullableAccountOrdersV2Response(val *AccountOrdersV2Response) *NullableAccountOrdersV2Response

func (NullableAccountOrdersV2Response) Get added in v1.0.117

func (NullableAccountOrdersV2Response) IsSet added in v1.0.117

func (NullableAccountOrdersV2Response) MarshalJSON added in v1.0.117

func (v NullableAccountOrdersV2Response) MarshalJSON() ([]byte, error)

func (*NullableAccountOrdersV2Response) Set added in v1.0.117

func (*NullableAccountOrdersV2Response) UnmarshalJSON added in v1.0.117

func (v *NullableAccountOrdersV2Response) UnmarshalJSON(src []byte) error

func (*NullableAccountOrdersV2Response) Unset added in v1.0.117

type NullableAccountSimple

type NullableAccountSimple struct {
	// contains filtered or unexported fields
}

func NewNullableAccountSimple

func NewNullableAccountSimple(val *AccountSimple) *NullableAccountSimple

func (NullableAccountSimple) Get

func (NullableAccountSimple) IsSet

func (v NullableAccountSimple) IsSet() bool

func (NullableAccountSimple) MarshalJSON

func (v NullableAccountSimple) MarshalJSON() ([]byte, error)

func (*NullableAccountSimple) Set

func (v *NullableAccountSimple) Set(val *AccountSimple)

func (*NullableAccountSimple) UnmarshalJSON

func (v *NullableAccountSimple) UnmarshalJSON(src []byte) error

func (*NullableAccountSimple) Unset

func (v *NullableAccountSimple) Unset()

type NullableAccountSyncStatus

type NullableAccountSyncStatus struct {
	// contains filtered or unexported fields
}

func NewNullableAccountSyncStatus

func NewNullableAccountSyncStatus(val *AccountSyncStatus) *NullableAccountSyncStatus

func (NullableAccountSyncStatus) Get

func (NullableAccountSyncStatus) IsSet

func (v NullableAccountSyncStatus) IsSet() bool

func (NullableAccountSyncStatus) MarshalJSON

func (v NullableAccountSyncStatus) MarshalJSON() ([]byte, error)

func (*NullableAccountSyncStatus) Set

func (*NullableAccountSyncStatus) UnmarshalJSON

func (v *NullableAccountSyncStatus) UnmarshalJSON(src []byte) error

func (*NullableAccountSyncStatus) Unset

func (v *NullableAccountSyncStatus) Unset()

type NullableAccountUniversalActivity added in v1.0.46

type NullableAccountUniversalActivity struct {
	// contains filtered or unexported fields
}

func NewNullableAccountUniversalActivity added in v1.0.46

func NewNullableAccountUniversalActivity(val *AccountUniversalActivity) *NullableAccountUniversalActivity

func (NullableAccountUniversalActivity) Get added in v1.0.46

func (NullableAccountUniversalActivity) IsSet added in v1.0.46

func (NullableAccountUniversalActivity) MarshalJSON added in v1.0.46

func (v NullableAccountUniversalActivity) MarshalJSON() ([]byte, error)

func (*NullableAccountUniversalActivity) Set added in v1.0.46

func (*NullableAccountUniversalActivity) UnmarshalJSON added in v1.0.46

func (v *NullableAccountUniversalActivity) UnmarshalJSON(src []byte) error

func (*NullableAccountUniversalActivity) Unset added in v1.0.46

type NullableAccountUniversalActivityCurrency added in v1.0.46

type NullableAccountUniversalActivityCurrency struct {
	// contains filtered or unexported fields
}

func NewNullableAccountUniversalActivityCurrency added in v1.0.46

func NewNullableAccountUniversalActivityCurrency(val *AccountUniversalActivityCurrency) *NullableAccountUniversalActivityCurrency

func (NullableAccountUniversalActivityCurrency) Get added in v1.0.46

func (NullableAccountUniversalActivityCurrency) IsSet added in v1.0.46

func (NullableAccountUniversalActivityCurrency) MarshalJSON added in v1.0.46

func (*NullableAccountUniversalActivityCurrency) Set added in v1.0.46

func (*NullableAccountUniversalActivityCurrency) UnmarshalJSON added in v1.0.46

func (v *NullableAccountUniversalActivityCurrency) UnmarshalJSON(src []byte) error

func (*NullableAccountUniversalActivityCurrency) Unset added in v1.0.46

type NullableAccountUniversalActivityOptionSymbol added in v1.0.46

type NullableAccountUniversalActivityOptionSymbol struct {
	// contains filtered or unexported fields
}

func NewNullableAccountUniversalActivityOptionSymbol added in v1.0.46

func NewNullableAccountUniversalActivityOptionSymbol(val *AccountUniversalActivityOptionSymbol) *NullableAccountUniversalActivityOptionSymbol

func (NullableAccountUniversalActivityOptionSymbol) Get added in v1.0.46

func (NullableAccountUniversalActivityOptionSymbol) IsSet added in v1.0.46

func (NullableAccountUniversalActivityOptionSymbol) MarshalJSON added in v1.0.46

func (*NullableAccountUniversalActivityOptionSymbol) Set added in v1.0.46

func (*NullableAccountUniversalActivityOptionSymbol) UnmarshalJSON added in v1.0.46

func (*NullableAccountUniversalActivityOptionSymbol) Unset added in v1.0.46

type NullableAccountUniversalActivitySymbol added in v1.0.46

type NullableAccountUniversalActivitySymbol struct {
	// contains filtered or unexported fields
}

func NewNullableAccountUniversalActivitySymbol added in v1.0.46

func NewNullableAccountUniversalActivitySymbol(val *AccountUniversalActivitySymbol) *NullableAccountUniversalActivitySymbol

func (NullableAccountUniversalActivitySymbol) Get added in v1.0.46

func (NullableAccountUniversalActivitySymbol) IsSet added in v1.0.46

func (NullableAccountUniversalActivitySymbol) MarshalJSON added in v1.0.46

func (v NullableAccountUniversalActivitySymbol) MarshalJSON() ([]byte, error)

func (*NullableAccountUniversalActivitySymbol) Set added in v1.0.46

func (*NullableAccountUniversalActivitySymbol) UnmarshalJSON added in v1.0.46

func (v *NullableAccountUniversalActivitySymbol) UnmarshalJSON(src []byte) error

func (*NullableAccountUniversalActivitySymbol) Unset added in v1.0.46

type NullableActionStrict

type NullableActionStrict struct {
	// contains filtered or unexported fields
}

func NewNullableActionStrict

func NewNullableActionStrict(val *ActionStrict) *NullableActionStrict

func (NullableActionStrict) Get

func (NullableActionStrict) IsSet

func (v NullableActionStrict) IsSet() bool

func (NullableActionStrict) MarshalJSON

func (v NullableActionStrict) MarshalJSON() ([]byte, error)

func (*NullableActionStrict) Set

func (v *NullableActionStrict) Set(val *ActionStrict)

func (*NullableActionStrict) UnmarshalJSON

func (v *NullableActionStrict) UnmarshalJSON(src []byte) error

func (*NullableActionStrict) Unset

func (v *NullableActionStrict) Unset()

type NullableActionStrictWithOptions added in v1.0.18

type NullableActionStrictWithOptions struct {
	// contains filtered or unexported fields
}

func NewNullableActionStrictWithOptions added in v1.0.18

func NewNullableActionStrictWithOptions(val *ActionStrictWithOptions) *NullableActionStrictWithOptions

func (NullableActionStrictWithOptions) Get added in v1.0.18

func (NullableActionStrictWithOptions) IsSet added in v1.0.18

func (NullableActionStrictWithOptions) MarshalJSON added in v1.0.18

func (v NullableActionStrictWithOptions) MarshalJSON() ([]byte, error)

func (*NullableActionStrictWithOptions) Set added in v1.0.18

func (*NullableActionStrictWithOptions) UnmarshalJSON added in v1.0.18

func (v *NullableActionStrictWithOptions) UnmarshalJSON(src []byte) error

func (*NullableActionStrictWithOptions) Unset added in v1.0.18

type NullableAuthenticationLoginSnapTradeUser200Response

type NullableAuthenticationLoginSnapTradeUser200Response struct {
	// contains filtered or unexported fields
}

func (NullableAuthenticationLoginSnapTradeUser200Response) Get

func (NullableAuthenticationLoginSnapTradeUser200Response) IsSet

func (NullableAuthenticationLoginSnapTradeUser200Response) MarshalJSON

func (*NullableAuthenticationLoginSnapTradeUser200Response) Set

func (*NullableAuthenticationLoginSnapTradeUser200Response) UnmarshalJSON

func (*NullableAuthenticationLoginSnapTradeUser200Response) Unset

type NullableBalance

type NullableBalance struct {
	// contains filtered or unexported fields
}

func NewNullableBalance

func NewNullableBalance(val *Balance) *NullableBalance

func (NullableBalance) Get

func (v NullableBalance) Get() *Balance

func (NullableBalance) IsSet

func (v NullableBalance) IsSet() bool

func (NullableBalance) MarshalJSON

func (v NullableBalance) MarshalJSON() ([]byte, error)

func (*NullableBalance) Set

func (v *NullableBalance) Set(val *Balance)

func (*NullableBalance) UnmarshalJSON

func (v *NullableBalance) UnmarshalJSON(src []byte) error

func (*NullableBalance) Unset

func (v *NullableBalance) Unset()

type NullableBalanceCurrency added in v1.0.5

type NullableBalanceCurrency struct {
	// contains filtered or unexported fields
}

func NewNullableBalanceCurrency added in v1.0.5

func NewNullableBalanceCurrency(val *BalanceCurrency) *NullableBalanceCurrency

func (NullableBalanceCurrency) Get added in v1.0.5

func (NullableBalanceCurrency) IsSet added in v1.0.5

func (v NullableBalanceCurrency) IsSet() bool

func (NullableBalanceCurrency) MarshalJSON added in v1.0.5

func (v NullableBalanceCurrency) MarshalJSON() ([]byte, error)

func (*NullableBalanceCurrency) Set added in v1.0.5

func (*NullableBalanceCurrency) UnmarshalJSON added in v1.0.5

func (v *NullableBalanceCurrency) UnmarshalJSON(src []byte) error

func (*NullableBalanceCurrency) Unset added in v1.0.5

func (v *NullableBalanceCurrency) Unset()

type NullableBool

type NullableBool struct {
	// contains filtered or unexported fields
}

func NewNullableBool

func NewNullableBool(val *bool) *NullableBool

func (NullableBool) Get

func (v NullableBool) Get() *bool

func (NullableBool) IsSet

func (v NullableBool) IsSet() bool

func (NullableBool) MarshalJSON

func (v NullableBool) MarshalJSON() ([]byte, error)

func (*NullableBool) Set

func (v *NullableBool) Set(val *bool)

func (*NullableBool) UnmarshalJSON

func (v *NullableBool) UnmarshalJSON(src []byte) error

func (*NullableBool) Unset

func (v *NullableBool) Unset()

type NullableBrokerage

type NullableBrokerage struct {
	// contains filtered or unexported fields
}

func NewNullableBrokerage

func NewNullableBrokerage(val *Brokerage) *NullableBrokerage

func (NullableBrokerage) Get

func (v NullableBrokerage) Get() *Brokerage

func (NullableBrokerage) IsSet

func (v NullableBrokerage) IsSet() bool

func (NullableBrokerage) MarshalJSON

func (v NullableBrokerage) MarshalJSON() ([]byte, error)

func (*NullableBrokerage) Set

func (v *NullableBrokerage) Set(val *Brokerage)

func (*NullableBrokerage) UnmarshalJSON

func (v *NullableBrokerage) UnmarshalJSON(src []byte) error

func (*NullableBrokerage) Unset

func (v *NullableBrokerage) Unset()

type NullableBrokerageAuthorization

type NullableBrokerageAuthorization struct {
	// contains filtered or unexported fields
}

func (NullableBrokerageAuthorization) Get

func (NullableBrokerageAuthorization) IsSet

func (NullableBrokerageAuthorization) MarshalJSON

func (v NullableBrokerageAuthorization) MarshalJSON() ([]byte, error)

func (*NullableBrokerageAuthorization) Set

func (*NullableBrokerageAuthorization) UnmarshalJSON

func (v *NullableBrokerageAuthorization) UnmarshalJSON(src []byte) error

func (*NullableBrokerageAuthorization) Unset

func (v *NullableBrokerageAuthorization) Unset()

type NullableBrokerageAuthorizationDisabledConfirmation

type NullableBrokerageAuthorizationDisabledConfirmation struct {
	// contains filtered or unexported fields
}

func (NullableBrokerageAuthorizationDisabledConfirmation) Get

func (NullableBrokerageAuthorizationDisabledConfirmation) IsSet

func (NullableBrokerageAuthorizationDisabledConfirmation) MarshalJSON

func (*NullableBrokerageAuthorizationDisabledConfirmation) Set

func (*NullableBrokerageAuthorizationDisabledConfirmation) UnmarshalJSON

func (*NullableBrokerageAuthorizationDisabledConfirmation) Unset

type NullableBrokerageAuthorizationRefreshConfirmation

type NullableBrokerageAuthorizationRefreshConfirmation struct {
	// contains filtered or unexported fields
}

func (NullableBrokerageAuthorizationRefreshConfirmation) Get

func (NullableBrokerageAuthorizationRefreshConfirmation) IsSet

func (NullableBrokerageAuthorizationRefreshConfirmation) MarshalJSON

func (*NullableBrokerageAuthorizationRefreshConfirmation) Set

func (*NullableBrokerageAuthorizationRefreshConfirmation) UnmarshalJSON

func (*NullableBrokerageAuthorizationRefreshConfirmation) Unset

type NullableBrokerageAuthorizationTypeReadOnly

type NullableBrokerageAuthorizationTypeReadOnly struct {
	// contains filtered or unexported fields
}

func (NullableBrokerageAuthorizationTypeReadOnly) Get

func (NullableBrokerageAuthorizationTypeReadOnly) IsSet

func (NullableBrokerageAuthorizationTypeReadOnly) MarshalJSON

func (*NullableBrokerageAuthorizationTypeReadOnly) Set

func (*NullableBrokerageAuthorizationTypeReadOnly) UnmarshalJSON

func (v *NullableBrokerageAuthorizationTypeReadOnly) UnmarshalJSON(src []byte) error

func (*NullableBrokerageAuthorizationTypeReadOnly) Unset

type NullableBrokerageAuthorizationTypeReadOnlyBrokerage

type NullableBrokerageAuthorizationTypeReadOnlyBrokerage struct {
	// contains filtered or unexported fields
}

func (NullableBrokerageAuthorizationTypeReadOnlyBrokerage) Get

func (NullableBrokerageAuthorizationTypeReadOnlyBrokerage) IsSet

func (NullableBrokerageAuthorizationTypeReadOnlyBrokerage) MarshalJSON

func (*NullableBrokerageAuthorizationTypeReadOnlyBrokerage) Set

func (*NullableBrokerageAuthorizationTypeReadOnlyBrokerage) UnmarshalJSON

func (*NullableBrokerageAuthorizationTypeReadOnlyBrokerage) Unset

type NullableBrokerageInstrument added in v1.0.90

type NullableBrokerageInstrument struct {
	// contains filtered or unexported fields
}

func NewNullableBrokerageInstrument added in v1.0.90

func NewNullableBrokerageInstrument(val *BrokerageInstrument) *NullableBrokerageInstrument

func (NullableBrokerageInstrument) Get added in v1.0.90

func (NullableBrokerageInstrument) IsSet added in v1.0.90

func (NullableBrokerageInstrument) MarshalJSON added in v1.0.90

func (v NullableBrokerageInstrument) MarshalJSON() ([]byte, error)

func (*NullableBrokerageInstrument) Set added in v1.0.90

func (*NullableBrokerageInstrument) UnmarshalJSON added in v1.0.90

func (v *NullableBrokerageInstrument) UnmarshalJSON(src []byte) error

func (*NullableBrokerageInstrument) Unset added in v1.0.90

func (v *NullableBrokerageInstrument) Unset()

type NullableBrokerageInstrumentsResponse added in v1.0.90

type NullableBrokerageInstrumentsResponse struct {
	// contains filtered or unexported fields
}

func NewNullableBrokerageInstrumentsResponse added in v1.0.90

func NewNullableBrokerageInstrumentsResponse(val *BrokerageInstrumentsResponse) *NullableBrokerageInstrumentsResponse

func (NullableBrokerageInstrumentsResponse) Get added in v1.0.90

func (NullableBrokerageInstrumentsResponse) IsSet added in v1.0.90

func (NullableBrokerageInstrumentsResponse) MarshalJSON added in v1.0.90

func (v NullableBrokerageInstrumentsResponse) MarshalJSON() ([]byte, error)

func (*NullableBrokerageInstrumentsResponse) Set added in v1.0.90

func (*NullableBrokerageInstrumentsResponse) UnmarshalJSON added in v1.0.90

func (v *NullableBrokerageInstrumentsResponse) UnmarshalJSON(src []byte) error

func (*NullableBrokerageInstrumentsResponse) Unset added in v1.0.90

type NullableBrokerageType

type NullableBrokerageType struct {
	// contains filtered or unexported fields
}

func NewNullableBrokerageType

func NewNullableBrokerageType(val *BrokerageType) *NullableBrokerageType

func (NullableBrokerageType) Get

func (NullableBrokerageType) IsSet

func (v NullableBrokerageType) IsSet() bool

func (NullableBrokerageType) MarshalJSON

func (v NullableBrokerageType) MarshalJSON() ([]byte, error)

func (*NullableBrokerageType) Set

func (v *NullableBrokerageType) Set(val *BrokerageType)

func (*NullableBrokerageType) UnmarshalJSON

func (v *NullableBrokerageType) UnmarshalJSON(src []byte) error

func (*NullableBrokerageType) Unset

func (v *NullableBrokerageType) Unset()

type NullableCancelOrderResponse added in v1.0.89

type NullableCancelOrderResponse struct {
	// contains filtered or unexported fields
}

func NewNullableCancelOrderResponse added in v1.0.89

func NewNullableCancelOrderResponse(val *CancelOrderResponse) *NullableCancelOrderResponse

func (NullableCancelOrderResponse) Get added in v1.0.89

func (NullableCancelOrderResponse) IsSet added in v1.0.89

func (NullableCancelOrderResponse) MarshalJSON added in v1.0.89

func (v NullableCancelOrderResponse) MarshalJSON() ([]byte, error)

func (*NullableCancelOrderResponse) Set added in v1.0.89

func (*NullableCancelOrderResponse) UnmarshalJSON added in v1.0.89

func (v *NullableCancelOrderResponse) UnmarshalJSON(src []byte) error

func (*NullableCancelOrderResponse) Unset added in v1.0.89

func (v *NullableCancelOrderResponse) Unset()

type NullableChildBrokerageOrderIDs added in v1.0.55

type NullableChildBrokerageOrderIDs struct {
	// contains filtered or unexported fields
}

func NewNullableChildBrokerageOrderIDs added in v1.0.55

func NewNullableChildBrokerageOrderIDs(val *ChildBrokerageOrderIDs) *NullableChildBrokerageOrderIDs

func (NullableChildBrokerageOrderIDs) Get added in v1.0.55

func (NullableChildBrokerageOrderIDs) IsSet added in v1.0.55

func (NullableChildBrokerageOrderIDs) MarshalJSON added in v1.0.55

func (v NullableChildBrokerageOrderIDs) MarshalJSON() ([]byte, error)

func (*NullableChildBrokerageOrderIDs) Set added in v1.0.55

func (*NullableChildBrokerageOrderIDs) UnmarshalJSON added in v1.0.55

func (v *NullableChildBrokerageOrderIDs) UnmarshalJSON(src []byte) error

func (*NullableChildBrokerageOrderIDs) Unset added in v1.0.55

func (v *NullableChildBrokerageOrderIDs) Unset()

type NullableCryptoOrderForm added in v1.0.92

type NullableCryptoOrderForm struct {
	// contains filtered or unexported fields
}

func NewNullableCryptoOrderForm added in v1.0.92

func NewNullableCryptoOrderForm(val *CryptoOrderForm) *NullableCryptoOrderForm

func (NullableCryptoOrderForm) Get added in v1.0.92

func (NullableCryptoOrderForm) IsSet added in v1.0.92

func (v NullableCryptoOrderForm) IsSet() bool

func (NullableCryptoOrderForm) MarshalJSON added in v1.0.92

func (v NullableCryptoOrderForm) MarshalJSON() ([]byte, error)

func (*NullableCryptoOrderForm) Set added in v1.0.92

func (*NullableCryptoOrderForm) UnmarshalJSON added in v1.0.92

func (v *NullableCryptoOrderForm) UnmarshalJSON(src []byte) error

func (*NullableCryptoOrderForm) Unset added in v1.0.92

func (v *NullableCryptoOrderForm) Unset()

type NullableCryptoOrderPreview added in v1.0.92

type NullableCryptoOrderPreview struct {
	// contains filtered or unexported fields
}

func NewNullableCryptoOrderPreview added in v1.0.92

func NewNullableCryptoOrderPreview(val *CryptoOrderPreview) *NullableCryptoOrderPreview

func (NullableCryptoOrderPreview) Get added in v1.0.92

func (NullableCryptoOrderPreview) IsSet added in v1.0.92

func (v NullableCryptoOrderPreview) IsSet() bool

func (NullableCryptoOrderPreview) MarshalJSON added in v1.0.92

func (v NullableCryptoOrderPreview) MarshalJSON() ([]byte, error)

func (*NullableCryptoOrderPreview) Set added in v1.0.92

func (*NullableCryptoOrderPreview) UnmarshalJSON added in v1.0.92

func (v *NullableCryptoOrderPreview) UnmarshalJSON(src []byte) error

func (*NullableCryptoOrderPreview) Unset added in v1.0.92

func (v *NullableCryptoOrderPreview) Unset()

type NullableCryptoOrderPreviewEstimatedFee added in v1.0.92

type NullableCryptoOrderPreviewEstimatedFee struct {
	// contains filtered or unexported fields
}

func NewNullableCryptoOrderPreviewEstimatedFee added in v1.0.92

func NewNullableCryptoOrderPreviewEstimatedFee(val *CryptoOrderPreviewEstimatedFee) *NullableCryptoOrderPreviewEstimatedFee

func (NullableCryptoOrderPreviewEstimatedFee) Get added in v1.0.92

func (NullableCryptoOrderPreviewEstimatedFee) IsSet added in v1.0.92

func (NullableCryptoOrderPreviewEstimatedFee) MarshalJSON added in v1.0.92

func (v NullableCryptoOrderPreviewEstimatedFee) MarshalJSON() ([]byte, error)

func (*NullableCryptoOrderPreviewEstimatedFee) Set added in v1.0.92

func (*NullableCryptoOrderPreviewEstimatedFee) UnmarshalJSON added in v1.0.92

func (v *NullableCryptoOrderPreviewEstimatedFee) UnmarshalJSON(src []byte) error

func (*NullableCryptoOrderPreviewEstimatedFee) Unset added in v1.0.92

type NullableCryptoTradingInstrument added in v1.0.92

type NullableCryptoTradingInstrument struct {
	// contains filtered or unexported fields
}

func NewNullableCryptoTradingInstrument added in v1.0.92

func NewNullableCryptoTradingInstrument(val *CryptoTradingInstrument) *NullableCryptoTradingInstrument

func (NullableCryptoTradingInstrument) Get added in v1.0.92

func (NullableCryptoTradingInstrument) IsSet added in v1.0.92

func (NullableCryptoTradingInstrument) MarshalJSON added in v1.0.92

func (v NullableCryptoTradingInstrument) MarshalJSON() ([]byte, error)

func (*NullableCryptoTradingInstrument) Set added in v1.0.92

func (*NullableCryptoTradingInstrument) UnmarshalJSON added in v1.0.92

func (v *NullableCryptoTradingInstrument) UnmarshalJSON(src []byte) error

func (*NullableCryptoTradingInstrument) Unset added in v1.0.92

type NullableCryptocurrencyPair added in v1.0.56

type NullableCryptocurrencyPair struct {
	// contains filtered or unexported fields
}

func NewNullableCryptocurrencyPair added in v1.0.56

func NewNullableCryptocurrencyPair(val *CryptocurrencyPair) *NullableCryptocurrencyPair

func (NullableCryptocurrencyPair) Get added in v1.0.56

func (NullableCryptocurrencyPair) IsSet added in v1.0.56

func (v NullableCryptocurrencyPair) IsSet() bool

func (NullableCryptocurrencyPair) MarshalJSON added in v1.0.56

func (v NullableCryptocurrencyPair) MarshalJSON() ([]byte, error)

func (*NullableCryptocurrencyPair) Set added in v1.0.56

func (*NullableCryptocurrencyPair) UnmarshalJSON added in v1.0.56

func (v *NullableCryptocurrencyPair) UnmarshalJSON(src []byte) error

func (*NullableCryptocurrencyPair) Unset added in v1.0.56

func (v *NullableCryptocurrencyPair) Unset()

type NullableCryptocurrencyPairQuote added in v1.0.60

type NullableCryptocurrencyPairQuote struct {
	// contains filtered or unexported fields
}

func NewNullableCryptocurrencyPairQuote added in v1.0.60

func NewNullableCryptocurrencyPairQuote(val *CryptocurrencyPairQuote) *NullableCryptocurrencyPairQuote

func (NullableCryptocurrencyPairQuote) Get added in v1.0.60

func (NullableCryptocurrencyPairQuote) IsSet added in v1.0.60

func (NullableCryptocurrencyPairQuote) MarshalJSON added in v1.0.60

func (v NullableCryptocurrencyPairQuote) MarshalJSON() ([]byte, error)

func (*NullableCryptocurrencyPairQuote) Set added in v1.0.60

func (*NullableCryptocurrencyPairQuote) UnmarshalJSON added in v1.0.60

func (v *NullableCryptocurrencyPairQuote) UnmarshalJSON(src []byte) error

func (*NullableCryptocurrencyPairQuote) Unset added in v1.0.60

type NullableCurrency

type NullableCurrency struct {
	// contains filtered or unexported fields
}

func NewNullableCurrency

func NewNullableCurrency(val *Currency) *NullableCurrency

func (NullableCurrency) Get

func (v NullableCurrency) Get() *Currency

func (NullableCurrency) IsSet

func (v NullableCurrency) IsSet() bool

func (NullableCurrency) MarshalJSON

func (v NullableCurrency) MarshalJSON() ([]byte, error)

func (*NullableCurrency) Set

func (v *NullableCurrency) Set(val *Currency)

func (*NullableCurrency) UnmarshalJSON

func (v *NullableCurrency) UnmarshalJSON(src []byte) error

func (*NullableCurrency) Unset

func (v *NullableCurrency) Unset()

type NullableDeleteUserResponse

type NullableDeleteUserResponse struct {
	// contains filtered or unexported fields
}

func NewNullableDeleteUserResponse

func NewNullableDeleteUserResponse(val *DeleteUserResponse) *NullableDeleteUserResponse

func (NullableDeleteUserResponse) Get

func (NullableDeleteUserResponse) IsSet

func (v NullableDeleteUserResponse) IsSet() bool

func (NullableDeleteUserResponse) MarshalJSON

func (v NullableDeleteUserResponse) MarshalJSON() ([]byte, error)

func (*NullableDeleteUserResponse) Set

func (*NullableDeleteUserResponse) UnmarshalJSON

func (v *NullableDeleteUserResponse) UnmarshalJSON(src []byte) error

func (*NullableDeleteUserResponse) Unset

func (v *NullableDeleteUserResponse) Unset()

type NullableDividendAtDate

type NullableDividendAtDate struct {
	// contains filtered or unexported fields
}

func NewNullableDividendAtDate

func NewNullableDividendAtDate(val *DividendAtDate) *NullableDividendAtDate

func (NullableDividendAtDate) Get

func (NullableDividendAtDate) IsSet

func (v NullableDividendAtDate) IsSet() bool

func (NullableDividendAtDate) MarshalJSON

func (v NullableDividendAtDate) MarshalJSON() ([]byte, error)

func (*NullableDividendAtDate) Set

func (*NullableDividendAtDate) UnmarshalJSON

func (v *NullableDividendAtDate) UnmarshalJSON(src []byte) error

func (*NullableDividendAtDate) Unset

func (v *NullableDividendAtDate) Unset()

type NullableEncryptedResponse

type NullableEncryptedResponse struct {
	// contains filtered or unexported fields
}

func NewNullableEncryptedResponse

func NewNullableEncryptedResponse(val *EncryptedResponse) *NullableEncryptedResponse

func (NullableEncryptedResponse) Get

func (NullableEncryptedResponse) IsSet

func (v NullableEncryptedResponse) IsSet() bool

func (NullableEncryptedResponse) MarshalJSON

func (v NullableEncryptedResponse) MarshalJSON() ([]byte, error)

func (*NullableEncryptedResponse) Set

func (*NullableEncryptedResponse) UnmarshalJSON

func (v *NullableEncryptedResponse) UnmarshalJSON(src []byte) error

func (*NullableEncryptedResponse) Unset

func (v *NullableEncryptedResponse) Unset()

type NullableEncryptedResponseEncryptedMessageData

type NullableEncryptedResponseEncryptedMessageData struct {
	// contains filtered or unexported fields
}

func (NullableEncryptedResponseEncryptedMessageData) Get

func (NullableEncryptedResponseEncryptedMessageData) IsSet

func (NullableEncryptedResponseEncryptedMessageData) MarshalJSON

func (*NullableEncryptedResponseEncryptedMessageData) Set

func (*NullableEncryptedResponseEncryptedMessageData) UnmarshalJSON

func (*NullableEncryptedResponseEncryptedMessageData) Unset

type NullableExchange

type NullableExchange struct {
	// contains filtered or unexported fields
}

func NewNullableExchange

func NewNullableExchange(val *Exchange) *NullableExchange

func (NullableExchange) Get

func (v NullableExchange) Get() *Exchange

func (NullableExchange) IsSet

func (v NullableExchange) IsSet() bool

func (NullableExchange) MarshalJSON

func (v NullableExchange) MarshalJSON() ([]byte, error)

func (*NullableExchange) Set

func (v *NullableExchange) Set(val *Exchange)

func (*NullableExchange) UnmarshalJSON

func (v *NullableExchange) UnmarshalJSON(src []byte) error

func (*NullableExchange) Unset

func (v *NullableExchange) Unset()

type NullableExchangeRatePairs

type NullableExchangeRatePairs struct {
	// contains filtered or unexported fields
}

func NewNullableExchangeRatePairs

func NewNullableExchangeRatePairs(val *ExchangeRatePairs) *NullableExchangeRatePairs

func (NullableExchangeRatePairs) Get

func (NullableExchangeRatePairs) IsSet

func (v NullableExchangeRatePairs) IsSet() bool

func (NullableExchangeRatePairs) MarshalJSON

func (v NullableExchangeRatePairs) MarshalJSON() ([]byte, error)

func (*NullableExchangeRatePairs) Set

func (*NullableExchangeRatePairs) UnmarshalJSON

func (v *NullableExchangeRatePairs) UnmarshalJSON(src []byte) error

func (*NullableExchangeRatePairs) Unset

func (v *NullableExchangeRatePairs) Unset()

type NullableFigiInstrument

type NullableFigiInstrument struct {
	// contains filtered or unexported fields
}

func NewNullableFigiInstrument

func NewNullableFigiInstrument(val *FigiInstrument) *NullableFigiInstrument

func (NullableFigiInstrument) Get

func (NullableFigiInstrument) IsSet

func (v NullableFigiInstrument) IsSet() bool

func (NullableFigiInstrument) MarshalJSON

func (v NullableFigiInstrument) MarshalJSON() ([]byte, error)

func (*NullableFigiInstrument) Set

func (*NullableFigiInstrument) UnmarshalJSON

func (v *NullableFigiInstrument) UnmarshalJSON(src []byte) error

func (*NullableFigiInstrument) Unset

func (v *NullableFigiInstrument) Unset()

type NullableFloat32

type NullableFloat32 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat32

func NewNullableFloat32(val *float32) *NullableFloat32

func (NullableFloat32) Get

func (v NullableFloat32) Get() *float32

func (NullableFloat32) IsSet

func (v NullableFloat32) IsSet() bool

func (NullableFloat32) MarshalJSON

func (v NullableFloat32) MarshalJSON() ([]byte, error)

func (*NullableFloat32) Set

func (v *NullableFloat32) Set(val *float32)

func (*NullableFloat32) UnmarshalJSON

func (v *NullableFloat32) UnmarshalJSON(src []byte) error

func (*NullableFloat32) Unset

func (v *NullableFloat32) Unset()

type NullableFloat64

type NullableFloat64 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat64

func NewNullableFloat64(val *float64) *NullableFloat64

func (NullableFloat64) Get

func (v NullableFloat64) Get() *float64

func (NullableFloat64) IsSet

func (v NullableFloat64) IsSet() bool

func (NullableFloat64) MarshalJSON

func (v NullableFloat64) MarshalJSON() ([]byte, error)

func (*NullableFloat64) Set

func (v *NullableFloat64) Set(val *float64)

func (*NullableFloat64) UnmarshalJSON

func (v *NullableFloat64) UnmarshalJSON(src []byte) error

func (*NullableFloat64) Unset

func (v *NullableFloat64) Unset()

type NullableHoldingsStatus

type NullableHoldingsStatus struct {
	// contains filtered or unexported fields
}

func NewNullableHoldingsStatus

func NewNullableHoldingsStatus(val *HoldingsStatus) *NullableHoldingsStatus

func (NullableHoldingsStatus) Get

func (NullableHoldingsStatus) IsSet

func (v NullableHoldingsStatus) IsSet() bool

func (NullableHoldingsStatus) MarshalJSON

func (v NullableHoldingsStatus) MarshalJSON() ([]byte, error)

func (*NullableHoldingsStatus) Set

func (*NullableHoldingsStatus) UnmarshalJSON

func (v *NullableHoldingsStatus) UnmarshalJSON(src []byte) error

func (*NullableHoldingsStatus) Unset

func (v *NullableHoldingsStatus) Unset()

type NullableInt

type NullableInt struct {
	// contains filtered or unexported fields
}

func NewNullableInt

func NewNullableInt(val *int) *NullableInt

func (NullableInt) Get

func (v NullableInt) Get() *int

func (NullableInt) IsSet

func (v NullableInt) IsSet() bool

func (NullableInt) MarshalJSON

func (v NullableInt) MarshalJSON() ([]byte, error)

func (*NullableInt) Set

func (v *NullableInt) Set(val *int)

func (*NullableInt) UnmarshalJSON

func (v *NullableInt) UnmarshalJSON(src []byte) error

func (*NullableInt) Unset

func (v *NullableInt) Unset()

type NullableInt32

type NullableInt32 struct {
	// contains filtered or unexported fields
}

func NewNullableInt32

func NewNullableInt32(val *int32) *NullableInt32

func (NullableInt32) Get

func (v NullableInt32) Get() *int32

func (NullableInt32) IsSet

func (v NullableInt32) IsSet() bool

func (NullableInt32) MarshalJSON

func (v NullableInt32) MarshalJSON() ([]byte, error)

func (*NullableInt32) Set

func (v *NullableInt32) Set(val *int32)

func (*NullableInt32) UnmarshalJSON

func (v *NullableInt32) UnmarshalJSON(src []byte) error

func (*NullableInt32) Unset

func (v *NullableInt32) Unset()

type NullableInt64

type NullableInt64 struct {
	// contains filtered or unexported fields
}

func NewNullableInt64

func NewNullableInt64(val *int64) *NullableInt64

func (NullableInt64) Get

func (v NullableInt64) Get() *int64

func (NullableInt64) IsSet

func (v NullableInt64) IsSet() bool

func (NullableInt64) MarshalJSON

func (v NullableInt64) MarshalJSON() ([]byte, error)

func (*NullableInt64) Set

func (v *NullableInt64) Set(val *int64)

func (*NullableInt64) UnmarshalJSON

func (v *NullableInt64) UnmarshalJSON(src []byte) error

func (*NullableInt64) Unset

func (v *NullableInt64) Unset()

type NullableLoginRedirectURI

type NullableLoginRedirectURI struct {
	// contains filtered or unexported fields
}

func NewNullableLoginRedirectURI

func NewNullableLoginRedirectURI(val *LoginRedirectURI) *NullableLoginRedirectURI

func (NullableLoginRedirectURI) Get

func (NullableLoginRedirectURI) IsSet

func (v NullableLoginRedirectURI) IsSet() bool

func (NullableLoginRedirectURI) MarshalJSON

func (v NullableLoginRedirectURI) MarshalJSON() ([]byte, error)

func (*NullableLoginRedirectURI) Set

func (*NullableLoginRedirectURI) UnmarshalJSON

func (v *NullableLoginRedirectURI) UnmarshalJSON(src []byte) error

func (*NullableLoginRedirectURI) Unset

func (v *NullableLoginRedirectURI) Unset()

type NullableManualTrade

type NullableManualTrade struct {
	// contains filtered or unexported fields
}

func NewNullableManualTrade

func NewNullableManualTrade(val *ManualTrade) *NullableManualTrade

func (NullableManualTrade) Get

func (NullableManualTrade) IsSet

func (v NullableManualTrade) IsSet() bool

func (NullableManualTrade) MarshalJSON

func (v NullableManualTrade) MarshalJSON() ([]byte, error)

func (*NullableManualTrade) Set

func (v *NullableManualTrade) Set(val *ManualTrade)

func (*NullableManualTrade) UnmarshalJSON

func (v *NullableManualTrade) UnmarshalJSON(src []byte) error

func (*NullableManualTrade) Unset

func (v *NullableManualTrade) Unset()

type NullableManualTradeAndImpact

type NullableManualTradeAndImpact struct {
	// contains filtered or unexported fields
}

func NewNullableManualTradeAndImpact

func NewNullableManualTradeAndImpact(val *ManualTradeAndImpact) *NullableManualTradeAndImpact

func (NullableManualTradeAndImpact) Get

func (NullableManualTradeAndImpact) IsSet

func (NullableManualTradeAndImpact) MarshalJSON

func (v NullableManualTradeAndImpact) MarshalJSON() ([]byte, error)

func (*NullableManualTradeAndImpact) Set

func (*NullableManualTradeAndImpact) UnmarshalJSON

func (v *NullableManualTradeAndImpact) UnmarshalJSON(src []byte) error

func (*NullableManualTradeAndImpact) Unset

func (v *NullableManualTradeAndImpact) Unset()

type NullableManualTradeBalance

type NullableManualTradeBalance struct {
	// contains filtered or unexported fields
}

func NewNullableManualTradeBalance

func NewNullableManualTradeBalance(val *ManualTradeBalance) *NullableManualTradeBalance

func (NullableManualTradeBalance) Get

func (NullableManualTradeBalance) IsSet

func (v NullableManualTradeBalance) IsSet() bool

func (NullableManualTradeBalance) MarshalJSON

func (v NullableManualTradeBalance) MarshalJSON() ([]byte, error)

func (*NullableManualTradeBalance) Set

func (*NullableManualTradeBalance) UnmarshalJSON

func (v *NullableManualTradeBalance) UnmarshalJSON(src []byte) error

func (*NullableManualTradeBalance) Unset

func (v *NullableManualTradeBalance) Unset()

type NullableManualTradeForm

type NullableManualTradeForm struct {
	// contains filtered or unexported fields
}

func NewNullableManualTradeForm

func NewNullableManualTradeForm(val *ManualTradeForm) *NullableManualTradeForm

func (NullableManualTradeForm) Get

func (NullableManualTradeForm) IsSet

func (v NullableManualTradeForm) IsSet() bool

func (NullableManualTradeForm) MarshalJSON

func (v NullableManualTradeForm) MarshalJSON() ([]byte, error)

func (*NullableManualTradeForm) Set

func (*NullableManualTradeForm) UnmarshalJSON

func (v *NullableManualTradeForm) UnmarshalJSON(src []byte) error

func (*NullableManualTradeForm) Unset

func (v *NullableManualTradeForm) Unset()

type NullableManualTradeFormBracket added in v1.0.55

type NullableManualTradeFormBracket struct {
	// contains filtered or unexported fields
}

func NewNullableManualTradeFormBracket added in v1.0.55

func NewNullableManualTradeFormBracket(val *ManualTradeFormBracket) *NullableManualTradeFormBracket

func (NullableManualTradeFormBracket) Get added in v1.0.55

func (NullableManualTradeFormBracket) IsSet added in v1.0.55

func (NullableManualTradeFormBracket) MarshalJSON added in v1.0.55

func (v NullableManualTradeFormBracket) MarshalJSON() ([]byte, error)

func (*NullableManualTradeFormBracket) Set added in v1.0.55

func (*NullableManualTradeFormBracket) UnmarshalJSON added in v1.0.55

func (v *NullableManualTradeFormBracket) UnmarshalJSON(src []byte) error

func (*NullableManualTradeFormBracket) Unset added in v1.0.55

func (v *NullableManualTradeFormBracket) Unset()

type NullableManualTradeFormNotionalValue

type NullableManualTradeFormNotionalValue struct {
	// contains filtered or unexported fields
}

func (NullableManualTradeFormNotionalValue) Get

func (NullableManualTradeFormNotionalValue) IsSet

func (NullableManualTradeFormNotionalValue) MarshalJSON

func (v NullableManualTradeFormNotionalValue) MarshalJSON() ([]byte, error)

func (*NullableManualTradeFormNotionalValue) Set

func (*NullableManualTradeFormNotionalValue) UnmarshalJSON

func (v *NullableManualTradeFormNotionalValue) UnmarshalJSON(src []byte) error

func (*NullableManualTradeFormNotionalValue) Unset

type NullableManualTradeFormWithOptions added in v1.0.18

type NullableManualTradeFormWithOptions struct {
	// contains filtered or unexported fields
}

func NewNullableManualTradeFormWithOptions added in v1.0.18

func NewNullableManualTradeFormWithOptions(val *ManualTradeFormWithOptions) *NullableManualTradeFormWithOptions

func (NullableManualTradeFormWithOptions) Get added in v1.0.18

func (NullableManualTradeFormWithOptions) IsSet added in v1.0.18

func (NullableManualTradeFormWithOptions) MarshalJSON added in v1.0.18

func (v NullableManualTradeFormWithOptions) MarshalJSON() ([]byte, error)

func (*NullableManualTradeFormWithOptions) Set added in v1.0.18

func (*NullableManualTradeFormWithOptions) UnmarshalJSON added in v1.0.18

func (v *NullableManualTradeFormWithOptions) UnmarshalJSON(src []byte) error

func (*NullableManualTradeFormWithOptions) Unset added in v1.0.18

type NullableManualTradeImpact added in v1.0.10

type NullableManualTradeImpact struct {
	// contains filtered or unexported fields
}

func NewNullableManualTradeImpact added in v1.0.10

func NewNullableManualTradeImpact(val *ManualTradeImpact) *NullableManualTradeImpact

func (NullableManualTradeImpact) Get added in v1.0.10

func (NullableManualTradeImpact) IsSet added in v1.0.10

func (v NullableManualTradeImpact) IsSet() bool

func (NullableManualTradeImpact) MarshalJSON added in v1.0.10

func (v NullableManualTradeImpact) MarshalJSON() ([]byte, error)

func (*NullableManualTradeImpact) Set added in v1.0.10

func (*NullableManualTradeImpact) UnmarshalJSON added in v1.0.10

func (v *NullableManualTradeImpact) UnmarshalJSON(src []byte) error

func (*NullableManualTradeImpact) Unset added in v1.0.10

func (v *NullableManualTradeImpact) Unset()

type NullableManualTradeReplaceForm added in v1.0.59

type NullableManualTradeReplaceForm struct {
	// contains filtered or unexported fields
}

func NewNullableManualTradeReplaceForm added in v1.0.59

func NewNullableManualTradeReplaceForm(val *ManualTradeReplaceForm) *NullableManualTradeReplaceForm

func (NullableManualTradeReplaceForm) Get added in v1.0.59

func (NullableManualTradeReplaceForm) IsSet added in v1.0.59

func (NullableManualTradeReplaceForm) MarshalJSON added in v1.0.59

func (v NullableManualTradeReplaceForm) MarshalJSON() ([]byte, error)

func (*NullableManualTradeReplaceForm) Set added in v1.0.59

func (*NullableManualTradeReplaceForm) UnmarshalJSON added in v1.0.59

func (v *NullableManualTradeReplaceForm) UnmarshalJSON(src []byte) error

func (*NullableManualTradeReplaceForm) Unset added in v1.0.59

func (v *NullableManualTradeReplaceForm) Unset()

type NullableManualTradeSymbol

type NullableManualTradeSymbol struct {
	// contains filtered or unexported fields
}

func NewNullableManualTradeSymbol

func NewNullableManualTradeSymbol(val *ManualTradeSymbol) *NullableManualTradeSymbol

func (NullableManualTradeSymbol) Get

func (NullableManualTradeSymbol) IsSet

func (v NullableManualTradeSymbol) IsSet() bool

func (NullableManualTradeSymbol) MarshalJSON

func (v NullableManualTradeSymbol) MarshalJSON() ([]byte, error)

func (*NullableManualTradeSymbol) Set

func (*NullableManualTradeSymbol) UnmarshalJSON

func (v *NullableManualTradeSymbol) UnmarshalJSON(src []byte) error

func (*NullableManualTradeSymbol) Unset

func (v *NullableManualTradeSymbol) Unset()

type NullableMlegActionStrict added in v1.0.68

type NullableMlegActionStrict struct {
	// contains filtered or unexported fields
}

func NewNullableMlegActionStrict added in v1.0.68

func NewNullableMlegActionStrict(val *MlegActionStrict) *NullableMlegActionStrict

func (NullableMlegActionStrict) Get added in v1.0.68

func (NullableMlegActionStrict) IsSet added in v1.0.68

func (v NullableMlegActionStrict) IsSet() bool

func (NullableMlegActionStrict) MarshalJSON added in v1.0.68

func (v NullableMlegActionStrict) MarshalJSON() ([]byte, error)

func (*NullableMlegActionStrict) Set added in v1.0.68

func (*NullableMlegActionStrict) UnmarshalJSON added in v1.0.68

func (v *NullableMlegActionStrict) UnmarshalJSON(src []byte) error

func (*NullableMlegActionStrict) Unset added in v1.0.68

func (v *NullableMlegActionStrict) Unset()

type NullableMlegInstrumentType added in v1.0.70

type NullableMlegInstrumentType struct {
	// contains filtered or unexported fields
}

func NewNullableMlegInstrumentType added in v1.0.70

func NewNullableMlegInstrumentType(val *MlegInstrumentType) *NullableMlegInstrumentType

func (NullableMlegInstrumentType) Get added in v1.0.70

func (NullableMlegInstrumentType) IsSet added in v1.0.70

func (v NullableMlegInstrumentType) IsSet() bool

func (NullableMlegInstrumentType) MarshalJSON added in v1.0.70

func (v NullableMlegInstrumentType) MarshalJSON() ([]byte, error)

func (*NullableMlegInstrumentType) Set added in v1.0.70

func (*NullableMlegInstrumentType) UnmarshalJSON added in v1.0.70

func (v *NullableMlegInstrumentType) UnmarshalJSON(src []byte) error

func (*NullableMlegInstrumentType) Unset added in v1.0.70

func (v *NullableMlegInstrumentType) Unset()

type NullableMlegLeg added in v1.0.68

type NullableMlegLeg struct {
	// contains filtered or unexported fields
}

func NewNullableMlegLeg added in v1.0.68

func NewNullableMlegLeg(val *MlegLeg) *NullableMlegLeg

func (NullableMlegLeg) Get added in v1.0.68

func (v NullableMlegLeg) Get() *MlegLeg

func (NullableMlegLeg) IsSet added in v1.0.68

func (v NullableMlegLeg) IsSet() bool

func (NullableMlegLeg) MarshalJSON added in v1.0.68

func (v NullableMlegLeg) MarshalJSON() ([]byte, error)

func (*NullableMlegLeg) Set added in v1.0.68

func (v *NullableMlegLeg) Set(val *MlegLeg)

func (*NullableMlegLeg) UnmarshalJSON added in v1.0.68

func (v *NullableMlegLeg) UnmarshalJSON(src []byte) error

func (*NullableMlegLeg) Unset added in v1.0.68

func (v *NullableMlegLeg) Unset()

type NullableMlegOrderResponse added in v1.0.68

type NullableMlegOrderResponse struct {
	// contains filtered or unexported fields
}

func NewNullableMlegOrderResponse added in v1.0.68

func NewNullableMlegOrderResponse(val *MlegOrderResponse) *NullableMlegOrderResponse

func (NullableMlegOrderResponse) Get added in v1.0.68

func (NullableMlegOrderResponse) IsSet added in v1.0.68

func (v NullableMlegOrderResponse) IsSet() bool

func (NullableMlegOrderResponse) MarshalJSON added in v1.0.68

func (v NullableMlegOrderResponse) MarshalJSON() ([]byte, error)

func (*NullableMlegOrderResponse) Set added in v1.0.68

func (*NullableMlegOrderResponse) UnmarshalJSON added in v1.0.68

func (v *NullableMlegOrderResponse) UnmarshalJSON(src []byte) error

func (*NullableMlegOrderResponse) Unset added in v1.0.68

func (v *NullableMlegOrderResponse) Unset()

type NullableMlegOrderTypeStrict added in v1.0.69

type NullableMlegOrderTypeStrict struct {
	// contains filtered or unexported fields
}

func NewNullableMlegOrderTypeStrict added in v1.0.69

func NewNullableMlegOrderTypeStrict(val *MlegOrderTypeStrict) *NullableMlegOrderTypeStrict

func (NullableMlegOrderTypeStrict) Get added in v1.0.69

func (NullableMlegOrderTypeStrict) IsSet added in v1.0.69

func (NullableMlegOrderTypeStrict) MarshalJSON added in v1.0.69

func (v NullableMlegOrderTypeStrict) MarshalJSON() ([]byte, error)

func (*NullableMlegOrderTypeStrict) Set added in v1.0.69

func (*NullableMlegOrderTypeStrict) UnmarshalJSON added in v1.0.69

func (v *NullableMlegOrderTypeStrict) UnmarshalJSON(src []byte) error

func (*NullableMlegOrderTypeStrict) Unset added in v1.0.69

func (v *NullableMlegOrderTypeStrict) Unset()

type NullableMlegPriceEffectStrict added in v1.0.88

type NullableMlegPriceEffectStrict struct {
	// contains filtered or unexported fields
}

func NewNullableMlegPriceEffectStrict added in v1.0.88

func NewNullableMlegPriceEffectStrict(val *MlegPriceEffectStrict) *NullableMlegPriceEffectStrict

func (NullableMlegPriceEffectStrict) Get added in v1.0.88

func (NullableMlegPriceEffectStrict) IsSet added in v1.0.88

func (NullableMlegPriceEffectStrict) MarshalJSON added in v1.0.88

func (v NullableMlegPriceEffectStrict) MarshalJSON() ([]byte, error)

func (*NullableMlegPriceEffectStrict) Set added in v1.0.88

func (*NullableMlegPriceEffectStrict) UnmarshalJSON added in v1.0.88

func (v *NullableMlegPriceEffectStrict) UnmarshalJSON(src []byte) error

func (*NullableMlegPriceEffectStrict) Unset added in v1.0.88

func (v *NullableMlegPriceEffectStrict) Unset()

type NullableMlegTradeForm added in v1.0.71

type NullableMlegTradeForm struct {
	// contains filtered or unexported fields
}

func NewNullableMlegTradeForm added in v1.0.71

func NewNullableMlegTradeForm(val *MlegTradeForm) *NullableMlegTradeForm

func (NullableMlegTradeForm) Get added in v1.0.71

func (NullableMlegTradeForm) IsSet added in v1.0.71

func (v NullableMlegTradeForm) IsSet() bool

func (NullableMlegTradeForm) MarshalJSON added in v1.0.71

func (v NullableMlegTradeForm) MarshalJSON() ([]byte, error)

func (*NullableMlegTradeForm) Set added in v1.0.71

func (v *NullableMlegTradeForm) Set(val *MlegTradeForm)

func (*NullableMlegTradeForm) UnmarshalJSON added in v1.0.71

func (v *NullableMlegTradeForm) UnmarshalJSON(src []byte) error

func (*NullableMlegTradeForm) Unset added in v1.0.71

func (v *NullableMlegTradeForm) Unset()

type NullableMlegTradingInstrument added in v1.0.68

type NullableMlegTradingInstrument struct {
	// contains filtered or unexported fields
}

func NewNullableMlegTradingInstrument added in v1.0.68

func NewNullableMlegTradingInstrument(val *MlegTradingInstrument) *NullableMlegTradingInstrument

func (NullableMlegTradingInstrument) Get added in v1.0.68

func (NullableMlegTradingInstrument) IsSet added in v1.0.68

func (NullableMlegTradingInstrument) MarshalJSON added in v1.0.68

func (v NullableMlegTradingInstrument) MarshalJSON() ([]byte, error)

func (*NullableMlegTradingInstrument) Set added in v1.0.68

func (*NullableMlegTradingInstrument) UnmarshalJSON added in v1.0.68

func (v *NullableMlegTradingInstrument) UnmarshalJSON(src []byte) error

func (*NullableMlegTradingInstrument) Unset added in v1.0.68

func (v *NullableMlegTradingInstrument) Unset()

type NullableModel400FailedRequestResponse

type NullableModel400FailedRequestResponse struct {
	// contains filtered or unexported fields
}

func (NullableModel400FailedRequestResponse) Get

func (NullableModel400FailedRequestResponse) IsSet

func (NullableModel400FailedRequestResponse) MarshalJSON

func (v NullableModel400FailedRequestResponse) MarshalJSON() ([]byte, error)

func (*NullableModel400FailedRequestResponse) Set

func (*NullableModel400FailedRequestResponse) UnmarshalJSON

func (v *NullableModel400FailedRequestResponse) UnmarshalJSON(src []byte) error

func (*NullableModel400FailedRequestResponse) Unset

type NullableModel401FailedRequestResponse

type NullableModel401FailedRequestResponse struct {
	// contains filtered or unexported fields
}

func (NullableModel401FailedRequestResponse) Get

func (NullableModel401FailedRequestResponse) IsSet

func (NullableModel401FailedRequestResponse) MarshalJSON

func (v NullableModel401FailedRequestResponse) MarshalJSON() ([]byte, error)

func (*NullableModel401FailedRequestResponse) Set

func (*NullableModel401FailedRequestResponse) UnmarshalJSON

func (v *NullableModel401FailedRequestResponse) UnmarshalJSON(src []byte) error

func (*NullableModel401FailedRequestResponse) Unset

type NullableModel402BrokerageAuthAlreadyDisabledException

type NullableModel402BrokerageAuthAlreadyDisabledException struct {
	// contains filtered or unexported fields
}

func (NullableModel402BrokerageAuthAlreadyDisabledException) Get

func (NullableModel402BrokerageAuthAlreadyDisabledException) IsSet

func (NullableModel402BrokerageAuthAlreadyDisabledException) MarshalJSON

func (*NullableModel402BrokerageAuthAlreadyDisabledException) Set

func (*NullableModel402BrokerageAuthAlreadyDisabledException) UnmarshalJSON

func (*NullableModel402BrokerageAuthAlreadyDisabledException) Unset

type NullableModel402BrokerageAuthDisabledResponse

type NullableModel402BrokerageAuthDisabledResponse struct {
	// contains filtered or unexported fields
}

func (NullableModel402BrokerageAuthDisabledResponse) Get

func (NullableModel402BrokerageAuthDisabledResponse) IsSet

func (NullableModel402BrokerageAuthDisabledResponse) MarshalJSON

func (*NullableModel402BrokerageAuthDisabledResponse) Set

func (*NullableModel402BrokerageAuthDisabledResponse) UnmarshalJSON

func (*NullableModel402BrokerageAuthDisabledResponse) Unset

type NullableModel403FailedRequestResponse

type NullableModel403FailedRequestResponse struct {
	// contains filtered or unexported fields
}

func (NullableModel403FailedRequestResponse) Get

func (NullableModel403FailedRequestResponse) IsSet

func (NullableModel403FailedRequestResponse) MarshalJSON

func (v NullableModel403FailedRequestResponse) MarshalJSON() ([]byte, error)

func (*NullableModel403FailedRequestResponse) Set

func (*NullableModel403FailedRequestResponse) UnmarshalJSON

func (v *NullableModel403FailedRequestResponse) UnmarshalJSON(src []byte) error

func (*NullableModel403FailedRequestResponse) Unset

type NullableModel403FeatureNotEnabledResponse

type NullableModel403FeatureNotEnabledResponse struct {
	// contains filtered or unexported fields
}

func (NullableModel403FeatureNotEnabledResponse) Get

func (NullableModel403FeatureNotEnabledResponse) IsSet

func (NullableModel403FeatureNotEnabledResponse) MarshalJSON

func (*NullableModel403FeatureNotEnabledResponse) Set

func (*NullableModel403FeatureNotEnabledResponse) UnmarshalJSON

func (v *NullableModel403FeatureNotEnabledResponse) UnmarshalJSON(src []byte) error

func (*NullableModel403FeatureNotEnabledResponse) Unset

type NullableModel404FailedRequestResponse

type NullableModel404FailedRequestResponse struct {
	// contains filtered or unexported fields
}

func (NullableModel404FailedRequestResponse) Get

func (NullableModel404FailedRequestResponse) IsSet

func (NullableModel404FailedRequestResponse) MarshalJSON

func (v NullableModel404FailedRequestResponse) MarshalJSON() ([]byte, error)

func (*NullableModel404FailedRequestResponse) Set

func (*NullableModel404FailedRequestResponse) UnmarshalJSON

func (v *NullableModel404FailedRequestResponse) UnmarshalJSON(src []byte) error

func (*NullableModel404FailedRequestResponse) Unset

type NullableModel425FailedRequestResponse added in v1.0.23

type NullableModel425FailedRequestResponse struct {
	// contains filtered or unexported fields
}

func NewNullableModel425FailedRequestResponse added in v1.0.23

func NewNullableModel425FailedRequestResponse(val *Model425FailedRequestResponse) *NullableModel425FailedRequestResponse

func (NullableModel425FailedRequestResponse) Get added in v1.0.23

func (NullableModel425FailedRequestResponse) IsSet added in v1.0.23

func (NullableModel425FailedRequestResponse) MarshalJSON added in v1.0.23

func (v NullableModel425FailedRequestResponse) MarshalJSON() ([]byte, error)

func (*NullableModel425FailedRequestResponse) Set added in v1.0.23

func (*NullableModel425FailedRequestResponse) UnmarshalJSON added in v1.0.23

func (v *NullableModel425FailedRequestResponse) UnmarshalJSON(src []byte) error

func (*NullableModel425FailedRequestResponse) Unset added in v1.0.23

type NullableModel500UnexpectedExceptionResponse

type NullableModel500UnexpectedExceptionResponse struct {
	// contains filtered or unexported fields
}

func (NullableModel500UnexpectedExceptionResponse) Get

func (NullableModel500UnexpectedExceptionResponse) IsSet

func (NullableModel500UnexpectedExceptionResponse) MarshalJSON

func (*NullableModel500UnexpectedExceptionResponse) Set

func (*NullableModel500UnexpectedExceptionResponse) UnmarshalJSON

func (v *NullableModel500UnexpectedExceptionResponse) UnmarshalJSON(src []byte) error

func (*NullableModel500UnexpectedExceptionResponse) Unset

type NullableMonthlyDividends

type NullableMonthlyDividends struct {
	// contains filtered or unexported fields
}

func NewNullableMonthlyDividends

func NewNullableMonthlyDividends(val *MonthlyDividends) *NullableMonthlyDividends

func (NullableMonthlyDividends) Get

func (NullableMonthlyDividends) IsSet

func (v NullableMonthlyDividends) IsSet() bool

func (NullableMonthlyDividends) MarshalJSON

func (v NullableMonthlyDividends) MarshalJSON() ([]byte, error)

func (*NullableMonthlyDividends) Set

func (*NullableMonthlyDividends) UnmarshalJSON

func (v *NullableMonthlyDividends) UnmarshalJSON(src []byte) error

func (*NullableMonthlyDividends) Unset

func (v *NullableMonthlyDividends) Unset()

type NullableNetContributions

type NullableNetContributions struct {
	// contains filtered or unexported fields
}

func NewNullableNetContributions

func NewNullableNetContributions(val *NetContributions) *NullableNetContributions

func (NullableNetContributions) Get

func (NullableNetContributions) IsSet

func (v NullableNetContributions) IsSet() bool

func (NullableNetContributions) MarshalJSON

func (v NullableNetContributions) MarshalJSON() ([]byte, error)

func (*NullableNetContributions) Set

func (*NullableNetContributions) UnmarshalJSON

func (v *NullableNetContributions) UnmarshalJSON(src []byte) error

func (*NullableNetContributions) Unset

func (v *NullableNetContributions) Unset()

type NullableNetDividend

type NullableNetDividend struct {
	// contains filtered or unexported fields
}

func NewNullableNetDividend

func NewNullableNetDividend(val *NetDividend) *NullableNetDividend

func (NullableNetDividend) Get

func (NullableNetDividend) IsSet

func (v NullableNetDividend) IsSet() bool

func (NullableNetDividend) MarshalJSON

func (v NullableNetDividend) MarshalJSON() ([]byte, error)

func (*NullableNetDividend) Set

func (v *NullableNetDividend) Set(val *NetDividend)

func (*NullableNetDividend) UnmarshalJSON

func (v *NullableNetDividend) UnmarshalJSON(src []byte) error

func (*NullableNetDividend) Unset

func (v *NullableNetDividend) Unset()

type NullableNotionalValue

type NullableNotionalValue struct {
	// contains filtered or unexported fields
}

func NewNullableNotionalValue

func NewNullableNotionalValue(val *NotionalValue) *NullableNotionalValue

func (NullableNotionalValue) Get

func (NullableNotionalValue) IsSet

func (v NullableNotionalValue) IsSet() bool

func (NullableNotionalValue) MarshalJSON

func (v NullableNotionalValue) MarshalJSON() ([]byte, error)

func (*NullableNotionalValue) Set

func (v *NullableNotionalValue) Set(val *NotionalValue)

func (*NullableNotionalValue) UnmarshalJSON

func (v *NullableNotionalValue) UnmarshalJSON(src []byte) error

func (*NullableNotionalValue) Unset

func (v *NullableNotionalValue) Unset()

type NullableOptionBrokerageSymbol

type NullableOptionBrokerageSymbol struct {
	// contains filtered or unexported fields
}

func (NullableOptionBrokerageSymbol) Get

func (NullableOptionBrokerageSymbol) IsSet

func (NullableOptionBrokerageSymbol) MarshalJSON

func (v NullableOptionBrokerageSymbol) MarshalJSON() ([]byte, error)

func (*NullableOptionBrokerageSymbol) Set

func (*NullableOptionBrokerageSymbol) UnmarshalJSON

func (v *NullableOptionBrokerageSymbol) UnmarshalJSON(src []byte) error

func (*NullableOptionBrokerageSymbol) Unset

func (v *NullableOptionBrokerageSymbol) Unset()

type NullableOptionChainInner

type NullableOptionChainInner struct {
	// contains filtered or unexported fields
}

func NewNullableOptionChainInner

func NewNullableOptionChainInner(val *OptionChainInner) *NullableOptionChainInner

func (NullableOptionChainInner) Get

func (NullableOptionChainInner) IsSet

func (v NullableOptionChainInner) IsSet() bool

func (NullableOptionChainInner) MarshalJSON

func (v NullableOptionChainInner) MarshalJSON() ([]byte, error)

func (*NullableOptionChainInner) Set

func (*NullableOptionChainInner) UnmarshalJSON

func (v *NullableOptionChainInner) UnmarshalJSON(src []byte) error

func (*NullableOptionChainInner) Unset

func (v *NullableOptionChainInner) Unset()

type NullableOptionChainInnerChainPerRootInner

type NullableOptionChainInnerChainPerRootInner struct {
	// contains filtered or unexported fields
}

func (NullableOptionChainInnerChainPerRootInner) Get

func (NullableOptionChainInnerChainPerRootInner) IsSet

func (NullableOptionChainInnerChainPerRootInner) MarshalJSON

func (*NullableOptionChainInnerChainPerRootInner) Set

func (*NullableOptionChainInnerChainPerRootInner) UnmarshalJSON

func (v *NullableOptionChainInnerChainPerRootInner) UnmarshalJSON(src []byte) error

func (*NullableOptionChainInnerChainPerRootInner) Unset

type NullableOptionChainInnerChainPerRootInnerChainPerStrikePriceInner

type NullableOptionChainInnerChainPerRootInnerChainPerStrikePriceInner struct {
	// contains filtered or unexported fields
}

func (NullableOptionChainInnerChainPerRootInnerChainPerStrikePriceInner) Get

func (NullableOptionChainInnerChainPerRootInnerChainPerStrikePriceInner) IsSet

func (NullableOptionChainInnerChainPerRootInnerChainPerStrikePriceInner) MarshalJSON

func (*NullableOptionChainInnerChainPerRootInnerChainPerStrikePriceInner) Set

func (*NullableOptionChainInnerChainPerRootInnerChainPerStrikePriceInner) UnmarshalJSON

func (*NullableOptionChainInnerChainPerRootInnerChainPerStrikePriceInner) Unset

type NullableOptionLeg

type NullableOptionLeg struct {
	// contains filtered or unexported fields
}

func NewNullableOptionLeg

func NewNullableOptionLeg(val *OptionLeg) *NullableOptionLeg

func (NullableOptionLeg) Get