Documentation
¶
Index ¶
- Constants
- type CoinbaseAccount
- type CoinbaseAccountHold
- type CoinbaseAccountLedger
- type CoinbaseAccountLedgerDetails
- type CoinbaseAccountTransfer
- type CoinbaseAccountTransferDetails
- type CoinbaseAvailableBalance
- type CoinbaseBalance
- type CoinbaseBankCountry
- type CoinbaseCryptoAccount
- type CoinbaseCryptoAddress
- type CoinbaseCryptoAddressInfo
- type CoinbaseCryptoAddressWarning
- type CoinbaseCurrency
- type CoinbaseCurrencyConversion
- type CoinbaseCurrencyDetails
- type CoinbaseDeposit
- type CoinbaseFees
- type CoinbaseFiatAccount
- type CoinbaseFill
- type CoinbaseLimits
- type CoinbaseNewOrder
- type CoinbaseOrder
- type CoinbasePaymentMethod
- type CoinbasePickerData
- type CoinbaseRecurringOptions
- type CoinbaseSepaDepositInformation
- type CoinbaseSingleProduct
- type CoinbaseSwiftDepositInformation
- type CoinbaseUkDepositInformation
- type CoinbaseWallet
- type CoinbaseWebsocketTicker
- type CoinbaseWireDepositInformation
- type CoinbaseWithdrawal
- type CoinbaseWithdrawalFeeEstimate
- type IexRule
- type IexRulesSchema
- type IexRulesScheme
- type KrakenServerTime
- type KrakenServerTimeResult
- type KrakenSystemStatus
- type KrakenSystemStatusResult
- type OpenseaAsset
- type OpenseaAssetContract
- type OpenseaAssets
- type OpenseaCollection
- type OpenseaCreator
- type OpenseaDisplayData
- type OpenseaOwner
- type OpenseaUser
Constants ¶
const ( // Some dumbass coinbase thing CoinbaseTimeLayout1 = "2006-01-02 15:04:05.999999999+00" // KrakenRFC1123Layout incorrectly applies RFC1123, so we need to create a // constant to hold the layout for their variation to be used by the // generated protomodels KrakenRFC1123Layout = "Mon, 02 Jan 06 15:04:05 +0000" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoinbaseAccount ¶
type CoinbaseAccount struct { Available float64 `json:"available"` Balance float64 `json:"balance"` Currency string `json:"currency"` Hold float64 `json:"hold"` Id string `json:"id"` ProfileId string `json:"profile_id"` TradingEnabled bool `json:"trading_enabled"` }
CoinbaseAccount holds data for trading account from the profile of the API key
func (*CoinbaseAccount) UnmarshalJSON ¶
func (coinbaseAccount *CoinbaseAccount) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a CoinbaseAccount model
type CoinbaseAccountHold ¶
type CoinbaseAccountHold struct { CreatedAt time.Time `json:"created_at"` Id string `json:"id"` Ref string `json:"ref"` Type string `json:"type"` UpdatedAt time.Time `json:"updated_at"` }
CoinbaseHold represents the hold on an account that belong to the same profile as the API key. Holds are placed on an account for any active orders or pending withdraw requests. As an order is filled, the hold amount is updated. If an order is canceled, any remaining hold is removed. For withdrawals, the hold is removed after it is completed.
func (*CoinbaseAccountHold) UnmarshalJSON ¶
func (coinbaseAccountHold *CoinbaseAccountHold) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a CoinbaseAccountHold model
type CoinbaseAccountLedger ¶
type CoinbaseAccountLedger struct { Amount float64 `json:"amount"` Balance float64 `json:"balance"` CreatedAt time.Time `json:"created_at"` Id string `json:"id"` ProtoDetails CoinbaseAccountLedgerDetails `json:"details"` Type scalar.EntryType `json:"type"` }
CoinbaseAccountLedger lists ledger activity for an account. This includes anything that would affect the accounts balance - transfers, trades, fees, etc.
func (*CoinbaseAccountLedger) UnmarshalJSON ¶
func (coinbaseAccountLedger *CoinbaseAccountLedger) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a CoinbaseAccountLedger model
type CoinbaseAccountLedgerDetails ¶
type CoinbaseAccountLedgerDetails struct { OrderId string `json:"order_id"` ProductId string `json:"product_id"` TradeId string `json:"trade_id"` }
CoinbaseAccountLedgerDetails are the details for account history.
func (*CoinbaseAccountLedgerDetails) UnmarshalJSON ¶
func (coinbaseAccountLedgerDetails *CoinbaseAccountLedgerDetails) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a CoinbaseAccountLedgerDetails model
type CoinbaseAccountTransfer ¶
type CoinbaseAccountTransfer struct { Amount float64 `json:"amount"` CanceledAt time.Time `json:"canceled_at"` CompletedAt time.Time `json:"completed_at"` CreatedAt time.Time `json:"created_at"` Id string `json:"id"` ProcessedAt time.Time `json:"processed_at"` ProtoDetails CoinbaseAccountTransferDetails `json:"details"` Type string `json:"type"` UserNonce string `json:"user_nonce"` }
CoinbaseAccountTransfer will lists past withdrawals and deposits for an account.
func (*CoinbaseAccountTransfer) UnmarshalJSON ¶
func (coinbaseAccountTransfer *CoinbaseAccountTransfer) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a CoinbaseAccountTransfer model
type CoinbaseAccountTransferDetails ¶
type CoinbaseAccountTransferDetails struct { CoinbaseAccountId string `json:"coinbase_account_id"` CoinbasePaymentMethodId string `json:"coinbase_payment_method_id"` CoinbaseTransactionId string `json:"coinbase_transaction_id"` }
CoinbaseAccountTransferDetails are the details for an account transfer.
func (*CoinbaseAccountTransferDetails) UnmarshalJSON ¶
func (coinbaseAccountTransferDetails *CoinbaseAccountTransferDetails) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a CoinbaseAccountTransferDetails model
type CoinbaseAvailableBalance ¶
type CoinbaseAvailableBalance struct { Amount float64 `json:"amount"` Currency string `json:"currency"` Scale string `json:"scale"` }
CoinbaseAvailableBalance is the available balance on the coinbase account
func (*CoinbaseAvailableBalance) UnmarshalJSON ¶
func (coinbaseAvailableBalance *CoinbaseAvailableBalance) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a CoinbaseAvailableBalance model
type CoinbaseBalance ¶
CoinbaseBalance is the balance for picker data
func (*CoinbaseBalance) UnmarshalJSON ¶
func (coinbaseBalance *CoinbaseBalance) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a CoinbaseBalance model
type CoinbaseBankCountry ¶
CoinbaseBankCountry are the name and code for the bank's country associated with a wallet
func (*CoinbaseBankCountry) UnmarshalJSON ¶
func (coinbaseBankCountry *CoinbaseBankCountry) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a CoinbaseBankCountry model
type CoinbaseCryptoAccount ¶
type CoinbaseCryptoAccount struct { Id string `json:"id"` Resource string `json:"resource"` ResourcePath string `json:"resource_path"` }
CoinbaseCryptoAccount references a crypto account that a CoinbasePaymentMethod belongs to
func (*CoinbaseCryptoAccount) UnmarshalJSON ¶
func (coinbaseCryptoAccount *CoinbaseCryptoAccount) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a CoinbaseCryptoAccount model
type CoinbaseCryptoAddress ¶
type CoinbaseCryptoAddress struct { Address string `json:"address"` CallbackUrl string `json:"callback_url"` CreateAt time.Time `json:"create_at"` DepositUri string `json:"deposit_uri"` DestinationTag string `json:"destination_tag"` Id string `json:"id"` LegacyAddress string `json:"legacy_address"` Name string `json:"name"` Network string `json:"network"` ProtoAddressInfo CoinbaseCryptoAddressInfo `json:"address_info"` ProtoWarnings []*CoinbaseCryptoAddressWarning `json:"warnings"` Resource string `json:"resource"` ResourcePath string `json:"resource_path"` UpdatedAt time.Time `json:"updated_at"` UriScheme string `json:"uri_scheme"` }
CoinbaseCryptoAddress is used for a one-time crypto address for depositing crypto.
func (*CoinbaseCryptoAddress) UnmarshalJSON ¶
func (coinbaseCryptoAddress *CoinbaseCryptoAddress) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a CoinbaseCryptoAddress model
type CoinbaseCryptoAddressInfo ¶
type CoinbaseCryptoAddressInfo struct { Address string `json:"address"` DestinationTag string `json:"destination_tag"` }
CoinbaseCryptoAddressInfo holds info for a crypto address
func (*CoinbaseCryptoAddressInfo) UnmarshalJSON ¶
func (coinbaseCryptoAddressInfo *CoinbaseCryptoAddressInfo) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a CoinbaseCryptoAddressInfo model
type CoinbaseCryptoAddressWarning ¶
type CoinbaseCryptoAddressWarning struct { Details string `json:"details"` ImageUrl string `json:"image_url"` Title string `json:"title"` }
CoinbaseCryptoAddressWarning is a warning for generating a crypting address
func (*CoinbaseCryptoAddressWarning) UnmarshalJSON ¶
func (coinbaseCryptoAddressWarning *CoinbaseCryptoAddressWarning) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a CoinbaseCryptoAddressWarning model
type CoinbaseCurrency ¶
type CoinbaseCurrency struct { ConvertibleTo []string `json:"convertible_to"` Id string `json:"id"` MaxPrecision float64 `json:"max_precision"` Message string `json:"message"` MinSize float64 `json:"min_size"` Name string `json:"name"` ProtoDetails CoinbaseCurrencyDetails `json:"details"` Status string `json:"status"` }
CoinbaseCurrency is a currency that coinbase knows about. Not al currencies may be currently in use for trading.
func (*CoinbaseCurrency) UnmarshalJSON ¶
func (coinbaseCurrency *CoinbaseCurrency) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a CoinbaseCurrency model
type CoinbaseCurrencyConversion ¶
type CoinbaseCurrencyConversion struct { Amount float64 `json:"amount"` From string `json:"from"` FromAccountId string `json:"from_account_id"` Id string `json:"id"` To string `json:"to"` ToAccountId string `json:"to_account_id"` }
CoinbaseCurrencyConversion is the response that converts funds from from currency to to currency. Funds are converted on the from account in the profile_id profile.
func (*CoinbaseCurrencyConversion) UnmarshalJSON ¶
func (coinbaseCurrencyConversion *CoinbaseCurrencyConversion) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a CoinbaseCurrencyConversion model
type CoinbaseCurrencyDetails ¶
type CoinbaseCurrencyDetails struct { CryptoAddressLink string `json:"crypto_address_link"` CryptoTransactionLink string `json:"crypto_transaction_link"` DisplayName string `json:"display_name"` GroupTypes []string `json:"group_types"` MaxWithdrawalAmount float64 `json:"max_withdrawal_amount"` MinWithdrawalAmount float64 `json:"min_withdrawal_amount"` NetworkConfirmations int `json:"network_confirmations"` ProcessingTimeSeconds float64 `json:"processing_time_seconds"` PushPaymentMethods []string `json:"push_payment_methods"` SortOrder int `json:"sort_order"` Symbol string `json:"symbol"` Type string `json:"type"` }
CoinbaseCurrencyDetails are the details for a currency that coinbase knows about
func (*CoinbaseCurrencyDetails) UnmarshalJSON ¶
func (coinbaseCurrencyDetails *CoinbaseCurrencyDetails) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a CoinbaseCurrencyDetails model
type CoinbaseDeposit ¶
type CoinbaseDeposit struct { Amount float64 `json:"amount"` Currency string `json:"currency"` Fee float64 `json:"fee"` Id string `json:"id"` PayoutAt string `json:"payout_at"` Subtotal float64 `json:"subtotal"` }
CoinbaseDeposit is the response for deposited funds from a www.coinbase.com wallet to the specified profile_id.
func (*CoinbaseDeposit) UnmarshalJSON ¶
func (coinbaseDeposit *CoinbaseDeposit) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a CoinbaseDeposit model
type CoinbaseFees ¶
type CoinbaseFees struct { MakerFeeRate float64 `json:"maker_fee_rate"` TakerFeeRate float64 `json:"taker_fee_rate"` UsdVolume float64 `json:"usd_volume"` }
CoinbaseFees are fees rates and 30 days trailing volume.
func (*CoinbaseFees) UnmarshalJSON ¶
func (coinbaseFees *CoinbaseFees) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a CoinbaseFees model
type CoinbaseFiatAccount ¶
type CoinbaseFiatAccount struct { Id string `json:"id"` Resource string `json:"resource"` ResourcePath string `json:"resource_path"` }
CoinbaseLimits references a FIAT account thata CoinbasePaymentMethod belongs to
func (*CoinbaseFiatAccount) UnmarshalJSON ¶
func (coinbaseFiatAccount *CoinbaseFiatAccount) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a CoinbaseFiatAccount model
type CoinbaseFill ¶
type CoinbaseFill struct { Fee float64 `json:"fee"` Liquidity string `json:"liquidity"` OrderId string `json:"order_id"` Price float64 `json:"price"` ProductId string `json:"product_id"` ProfileId string `json:"profile_id"` Settled bool `json:"settled"` Side string `json:"side"` Size float64 `json:"size"` TradeId int `json:"trade_id"` UsdVolume float64 `json:"usd_volume"` UserId string `json:"user_id"` }
CoinbasePaymentMethod is a partial or complete match on a specific order.
func (*CoinbaseFill) UnmarshalJSON ¶
func (coinbaseFill *CoinbaseFill) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a CoinbaseFill model
type CoinbaseLimits ¶
CoinbaseLimits defines limits for a payment method
func (*CoinbaseLimits) UnmarshalJSON ¶
func (coinbaseLimits *CoinbaseLimits) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a CoinbaseLimits model
type CoinbaseNewOrder ¶
type CoinbaseNewOrder struct { CreatedAt time.Time `json:"created_at"` DoneAt time.Time `json:"done_at"` DoneReason string `json:"done_reason"` ExpireTime time.Time `json:"expire_time"` FillFees float64 `json:"fill_fees"` FilledSize float64 `json:"filled_size"` FundingAmount float64 `json:"funding_amount"` Funds float64 `json:"funds"` Id string `json:"id"` PostOnly bool `json:"post_only"` Price float64 `json:"price"` ProductId string `json:"product_id"` ProfileId string `json:"profile_id"` RejectReason string `json:"reject_reason"` Settled bool `json:"settled"` Side scalar.OrderSide `json:"side"` Size float64 `json:"size"` SpecificFunds float64 `json:"specific_funds"` Status string `json:"status"` Stop scalar.OrderStop `json:"stop"` StopPrice float64 `json:"stop_price"` TimeInForce scalar.TimeInForce `json:"time_in_force"` Type scalar.OrderType `json:"type"` }
CoinbaseNewOrder is the server's response for placing a new order.
func (*CoinbaseNewOrder) UnmarshalJSON ¶
func (coinbaseNewOrder *CoinbaseNewOrder) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a CoinbaseNewOrder model
type CoinbaseOrder ¶
type CoinbaseOrder struct { CreatedAt time.Time `json:"created_at"` DoneAt time.Time `json:"done_at"` DoneReason string `json:"done_reason"` ExecutedValue float64 `json:"executed_value"` ExpireTime time.Time `json:"expire_time"` FillFees float64 `json:"fill_fees"` FilledSize float64 `json:"filled_size"` FundingAmount float64 `json:"funding_amount"` Funds float64 `json:"funds"` Id string `json:"id"` PostOnly bool `json:"post_only"` Price float64 `json:"price"` ProductId string `json:"product_id"` RejectReason string `json:"reject_reason"` Settled bool `json:"settled"` Side scalar.OrderSide `json:"side"` Size float64 `json:"size"` SpecifiedFunds float64 `json:"specified_funds"` Status string `json:"status"` Stop string `json:"stop"` StopPrice float64 `json:"stop_price"` TimeInForce scalar.TimeInForce `json:"time_in_force"` Type scalar.OrderType `json:"type"` }
CoinbaseOrder is an open order.
func (*CoinbaseOrder) UnmarshalJSON ¶
func (coinbaseOrder *CoinbaseOrder) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a CoinbaseOrder model
type CoinbasePaymentMethod ¶
type CoinbasePaymentMethod struct { AllowBuy bool `json:"allow_buy"` AllowDeposit bool `json:"allow_deposit"` AllowSell bool `json:"allow_sell"` AllowWithdraw bool `json:"allow_withdraw"` CdvStatus string `json:"cdv_status"` CreateAt time.Time `json:"create_at"` Currency string `json:"currency"` HoldBusinessDays int `json:"hold_business_days"` HoldDays int `json:"hold_days"` Id string `json:"id"` InstantBuy bool `json:"instant_buy"` InstantSale bool `json:"instant_sale"` Name string `json:"name"` PrimaryBuy bool `json:"primary_buy"` PrimarySell bool `json:"primary_sell"` ProtoAvailableBalance CoinbaseAvailableBalance `json:"available_balance"` ProtoCryptoAccount CoinbaseCryptoAccount `json:"crypto_account"` ProtoFiatAccount CoinbaseFiatAccount `json:"fiat_account"` ProtoLimits CoinbaseLimits `json:"limits"` ProtoPickerData CoinbasePickerData `json:"picker_data"` ProtoRecurringOptions []*CoinbaseRecurringOptions `json:"recurring_options"` Resource string `json:"resource"` ResourcePath string `json:"resource_path"` Type string `json:"type"` UpdatedAt time.Time `json:"updated_at"` VerificationMethod string `json:"verification_method"` Verified bool `json:"verified"` }
CoinbasePaymentMethod is a payment method used on coinbase
func (*CoinbasePaymentMethod) UnmarshalJSON ¶
func (coinbasePaymentMethod *CoinbasePaymentMethod) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a CoinbasePaymentMethod model
type CoinbasePickerData ¶
type CoinbasePickerData struct { AccountName string `json:"account_name"` AccountNumber string `json:"account_number"` AccountType string `json:"account_type"` BankName string `json:"bank_name"` BranchName string `json:"branch_name"` CustomerName string `json:"customer_name"` Iban string `json:"iban"` IconUrl string `json:"icon_url"` InstitutionCode string `json:"institution_code"` InstitutionIdentifier string `json:"institution_identifier"` InstitutionName string `json:"institution_name"` PaypalEmail string `json:"paypal_email"` PaypalOwner string `json:"paypal_owner"` ProtoBalance CoinbaseBalance `json:"balance"` RoutingNumber string `json:"routing_number"` Swift string `json:"swift"` Symbol string `json:"symbol"` }
CoinbasePickerData ??
func (*CoinbasePickerData) UnmarshalJSON ¶
func (coinbasePickerData *CoinbasePickerData) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a CoinbasePickerData model
type CoinbaseRecurringOptions ¶
CoinbaseRecurringOptions ??
func (*CoinbaseRecurringOptions) UnmarshalJSON ¶
func (coinbaseRecurringOptions *CoinbaseRecurringOptions) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a CoinbaseRecurringOptions model
type CoinbaseSepaDepositInformation ¶
type CoinbaseSepaDepositInformation struct { AccountAddress string `json:"account_address"` AccountName string `json:"account_name"` BankAddress string `json:"bank_address"` BankName string `json:"bank_name"` Iban string `json:"iban"` ProtoBankCountry CoinbaseBankCountry `json:"bank_country"` Reference string `json:"reference"` Swift string `json:"swift"` }
CoinbaseSepaDepositInformation information regarding a wallet's deposits. A SEPA credit transfer is a single transfer of Euros from one person or organisation to another. For example, this could be to pay the deposit for a holiday rental or to settle an invoice. A SEPA direct debit is a recurring payment, for example to pay monthly rent or for a service like a mobile phone contract.
func (*CoinbaseSepaDepositInformation) UnmarshalJSON ¶
func (coinbaseSepaDepositInformation *CoinbaseSepaDepositInformation) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a CoinbaseSepaDepositInformation model
type CoinbaseSingleProduct ¶
type CoinbaseSingleProduct struct { AuctionMode bool `json:"auction_mode"` BaseCurrency string `json:"base_currency"` BaseIncrement float64 `json:"base_increment"` BaseMaxSize float64 `json:"base_max_size"` BaseMinSize float64 `json:"base_min_size"` CancelOnly bool `json:"cancel_only"` DisplayName string `json:"display_name"` FxStablecoin bool `json:"fx_stablecoin"` Id string `json:"id"` LimitOnly bool `json:"limit_only"` MarginEnabled bool `json:"margin_enabled"` MaxMarketFunds float64 `json:"max_market_funds"` MaxSlippagePercentage float64 `json:"max_slippage_percentage"` MinMarketFunds float64 `json:"min_market_funds"` PostOnly bool `json:"post_only"` QuoteCurrency string `json:"quote_currency"` QuoteIncrement float64 `json:"quote_increment"` Status string `json:"status"` StatusMessage string `json:"status_message"` TradingDisabled bool `json:"trading_disabled"` }
CoinbaseSingleProduct is information on a single product
func (*CoinbaseSingleProduct) UnmarshalJSON ¶
func (coinbaseSingleProduct *CoinbaseSingleProduct) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a CoinbaseSingleProduct model
type CoinbaseSwiftDepositInformation ¶
type CoinbaseSwiftDepositInformation struct { AccountAddress string `json:"account_address"` AccountName string `json:"account_name"` AccountNumber string `json:"account_number"` BankAddress string `json:"bank_address"` BankName string `json:"bank_name"` ProtoBankCountry CoinbaseBankCountry `json:"bank_country"` Reference string `json:"reference"` }
CoinbaseSwiftDepositInformation information regarding a wallet's deposits. SWIFT stands for Society for Worldwide Interbank Financial Telecommunications. Basically, it's a computer network that connects over 900 banks around the world – and enables them to transfer money. ING is part of this network. There is no fee for accepting deposits into your account with ING.
func (*CoinbaseSwiftDepositInformation) UnmarshalJSON ¶
func (coinbaseSwiftDepositInformation *CoinbaseSwiftDepositInformation) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a CoinbaseSwiftDepositInformation model
type CoinbaseUkDepositInformation ¶
type CoinbaseUkDepositInformation struct { AccountAddress string `json:"account_address"` AccountName string `json:"account_name"` AccountNumber string `json:"account_number"` BankAddress string `json:"bank_address"` BankName string `json:"bank_name"` ProtoBankCountry CoinbaseBankCountry `json:"bank_country"` Reference string `json:"reference"` }
CoinbaseUkDepositInformation information regarding a wallet's deposits.
func (*CoinbaseUkDepositInformation) UnmarshalJSON ¶
func (coinbaseUkDepositInformation *CoinbaseUkDepositInformation) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a CoinbaseUkDepositInformation model
type CoinbaseWallet ¶
type CoinbaseWallet struct { Active bool `json:"active"` AvailableOnConsumer bool `json:"available_on_consumer"` Balance float64 `json:"balance"` Currency string `json:"currency"` DestinationTagName string `json:"destination_tag_name"` DestinationTagRegex string `json:"destination_tag_regex"` HoldBalance float64 `json:"hold_balance"` HoldCurrency string `json:"hold_currency"` Id string `json:"id"` Name string `json:"name"` Primary bool `json:"primary"` ProtoSepaDepositInformation CoinbaseSepaDepositInformation `json:"sepa_deposit_information"` ProtoSwiftDepositInformation CoinbaseSwiftDepositInformation `json:"swift_deposit_information"` ProtoUkDepositInformation CoinbaseUkDepositInformation `json:"uk_deposit_information"` ProtoWireDepositInformation CoinbaseWireDepositInformation `json:"wire_deposit_information"` Ready bool `json:"ready"` Type string `json:"type"` }
CoinbaseWallet represents a user's available Coinbase wallet (These are the wallets/accounts that are used for buying and selling on www.coinbase.com)
func (*CoinbaseWallet) UnmarshalJSON ¶
func (coinbaseWallet *CoinbaseWallet) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a CoinbaseWallet model
type CoinbaseWebsocketTicker ¶
type CoinbaseWebsocketTicker struct { BestAsk float64 `json:"best_ask"` BestBid float64 `json:"best_bid"` LastSize float64 `json:"last_size"` Price float64 `json:"price"` ProductId string `json:"product_id"` Sequence int `json:"sequence"` Side string `json:"side"` Time time.Time `json:"time"` TradeId int `json:"trade_id"` Type string `json:"type"` }
CoinbaseWebsocketTicker is real-time price updates every time a match happens. It batches updates in case of cascading matches, greatly reducing bandwidth requirements.
func (*CoinbaseWebsocketTicker) UnmarshalJSON ¶
func (coinbaseWebsocketTicker *CoinbaseWebsocketTicker) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a CoinbaseWebsocketTicker model
type CoinbaseWireDepositInformation ¶
type CoinbaseWireDepositInformation struct { AccountAddress string `json:"account_address"` AccountName string `json:"account_name"` AccountNumber string `json:"account_number"` BankAddress string `json:"bank_address"` BankName string `json:"bank_name"` ProtoBankCountry CoinbaseBankCountry `json:"bank_country"` Reference string `json:"reference"` RoutingNumber string `json:"routing_number"` }
CoinbaseWireDepositInformation information regarding a wallet's deposits
func (*CoinbaseWireDepositInformation) UnmarshalJSON ¶
func (coinbaseWireDepositInformation *CoinbaseWireDepositInformation) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a CoinbaseWireDepositInformation model
type CoinbaseWithdrawal ¶
type CoinbaseWithdrawal struct { Amount float64 `json:"amount"` Currency string `json:"currency"` Fee float64 `json:"fee"` Id string `json:"id"` PayoutAt string `json:"payout_at"` Subtotal float64 `json:"subtotal"` }
CoinbaseWithdrawal is data concerning withdrawing funds from the specified profile_id to a www.coinbase.com wallet.
func (*CoinbaseWithdrawal) UnmarshalJSON ¶
func (coinbaseWithdrawal *CoinbaseWithdrawal) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a CoinbaseWithdrawal model
type CoinbaseWithdrawalFeeEstimate ¶
type CoinbaseWithdrawalFeeEstimate struct {
Fee float64 `json:"fee"`
}
CoinbaseWithdrawalFeeEstimate is a fee estimate for the crypto withdrawal to crypto address
func (*CoinbaseWithdrawalFeeEstimate) UnmarshalJSON ¶
func (coinbaseWithdrawalFeeEstimate *CoinbaseWithdrawalFeeEstimate) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a CoinbaseWithdrawalFeeEstimate model
type IexRule ¶
type IexRule struct { // Label of the lookup Label string `json:"label"` // The actual lookup value that should be used in the right condition Value string `json:"value"` Formula string `json:"formula"` Scope string `json:"scope"` Type string `json:"type"` }
Rule to evaluate thousands of data points per second and build event-driven, automated alerts using Rules Engine. You can access Rules Engine through the IEX Console or through our API using the guidelines below.
func (*IexRule) UnmarshalJSON ¶
UnmarshalJSON will deserialize bytes into a IexRule model
type IexRulesSchema ¶
type IexRulesSchema struct {
ProtoSchema []*IexRulesScheme `json:"schema"`
}
IexRulesSchema is the latest schema for data points, notification types, and operators used to construct rules.
func (*IexRulesSchema) UnmarshalJSON ¶
func (iexRulesSchema *IexRulesSchema) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a IexRulesSchema model
type IexRulesScheme ¶
type IexRulesScheme struct { IsLookup bool `json:"isLookup"` Label string `json:"label"` Scope string `json:"scope"` Type string `json:"type"` Value string `json:"value"` Weight float64 `json:"weight"` WeightKey string `json:"weightKey"` }
IEXRulesScheme is one of the latest schemes for data points, notification types, and operators used to construct rules.
func (*IexRulesScheme) UnmarshalJSON ¶
func (iexRulesScheme *IexRulesScheme) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a IexRulesScheme model
type KrakenServerTime ¶
type KrakenServerTime struct { Error []string `json:"error"` ProtoResult KrakenServerTimeResult `json:"result"` }
KrakenServerTime holds data concerning the server time
func (*KrakenServerTime) UnmarshalJSON ¶
func (krakenServerTime *KrakenServerTime) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a KrakenServerTime model
type KrakenServerTimeResult ¶
type KrakenServerTimeResult struct { // RFC 1123 time format Rfc1123 time.Time `json:"rfc1123"` // Unix timestamp Unixtime int `json:"unixtime"` }
KrakenServerTimeResult holds data concerning the server time
func (*KrakenServerTimeResult) UnmarshalJSON ¶
func (krakenServerTimeResult *KrakenServerTimeResult) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a KrakenServerTimeResult model
type KrakenSystemStatus ¶
type KrakenSystemStatus struct { Error []string `json:"error"` ProtoResult KrakenSystemStatusResult `json:"result"` }
KrakenSystemStatus holds data concerning the current system status or trading mode.
func (*KrakenSystemStatus) UnmarshalJSON ¶
func (krakenSystemStatus *KrakenSystemStatus) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a KrakenSystemStatus model
type KrakenSystemStatusResult ¶
type KrakenSystemStatusResult struct { // Current timestamp (RFC3339) Timestamp time.Time `json:"timestamp"` // Enum: "online" "maintenance" "cancel_only" "post_only" Current system status Status scalar.SystemStatus `json:"status"` }
KrakenSystemStatusResult holds data concerning the current system status or trading mode.
func (*KrakenSystemStatusResult) UnmarshalJSON ¶
func (krakenSystemStatusResult *KrakenSystemStatusResult) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a KrakenSystemStatusResult model
type OpenseaAsset ¶
type OpenseaAsset struct { AnimationOriginalUrl string `json:"animation_original_url"` AnimationUrl string `json:"animation_url"` BackgroundColor string `json:"background_color"` Decimals string `json:"decimals"` Description string `json:"description"` ExternalLink string `json:"external_link"` Id int `json:"id"` ImageOriginalUrl string `json:"image_original_url"` ImagePreviewUrl string `json:"image_preview_url"` ImageThumbnailUrl string `json:"image_thumbnail_url"` ImageUrl string `json:"image_url"` IsPresale bool `json:"is_presale"` LastSale float64 `json:"last_sale"` ListingDate time.Time `json:"listing_date"` Name string `json:"name"` NumSales float64 `json:"num_sales"` Permalink string `json:"permalink"` ProtoAssetContract OpenseaAssetContract `json:"asset_contract"` ProtoCollection OpenseaCollection `json:"collection"` ProtoCreator OpenseaCreator `json:"creator"` ProtoOwner OpenseaOwner `json:"owner"` TokenId string `json:"token_id"` TokenMetadata string `json:"token_metadata"` TopBid float64 `json:"top_bid"` TransferFee float64 `json:"transfer_fee"` }
Asset is the primary object in the OpenSea API is the, representing a unique digital item whose ownership is managed by the blockchain. The below CryptoSaga hero is an example of an asset shown on OpenSea.
func (*OpenseaAsset) UnmarshalJSON ¶
func (openseaAsset *OpenseaAsset) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a OpenseaAsset model
type OpenseaAssetContract ¶
type OpenseaAssetContract struct { Address string `json:"address"` AssetContractType string `json:"asset_contract_type"` BuyerFeeBasisPoints int `json:"buyer_fee_basis_points"` CreatedDate string `json:"created_date"` DefaultToFiat bool `json:"default_to_fiat"` Description string `json:"description"` DevBuyFeeBasisPoints int `json:"dev_buy_fee_basis_points"` DevSellerFeeBasisPoints int `json:"dev_seller_fee_basis_points"` ExternalLink string `json:"external_link"` ImageUrl string `json:"image_url"` Name string `json:"name"` NftVersion string `json:"nft_version"` OnlyProxiedTransfers bool `json:"only_proxied_transfers"` OpenseaBuyerFeeBasisPoints int `json:"opensea_buyer_fee_basis_points"` OpenseaSellerFeeBasisPoints int `json:"opensea_seller_fee_basis_points"` OpenseaVersion string `json:"opensea_version"` Owner int `json:"owner"` PayoutAddress string `json:"payout_address"` SchemaName string `json:"schema_name"` SellerFeeBasisPoints int `json:"seller_Fee_basis_points"` Symbol string `json:"symbol"` TotalSupply float64 `json:"total_supply"` }
Asset contracts contain data about the contract itself, such as the CryptoKitties contract or the CoolCats contract.
func (*OpenseaAssetContract) UnmarshalJSON ¶
func (openseaAssetContract *OpenseaAssetContract) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a OpenseaAssetContract model
type OpenseaAssets ¶
type OpenseaAssets struct {
ProtoAssets []*OpenseaAsset `json:"assets"`
}
OpenseaAssets are a set of assets from opensea NFTs
func (*OpenseaAssets) UnmarshalJSON ¶
func (openseaAssets *OpenseaAssets) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a OpenseaAssets model
type OpenseaCollection ¶
type OpenseaCollection struct { BannerImageUrl string `json:"banner_image_url"` ChatUrl string `json:"chat_url"` CreatedAt time.Time `json:"created_at"` DefaultToFiat bool `json:"default_to_fiat"` Description string `json:"description"` DevBuyerFeeBasisPoints string `json:"dev_buyer_fee_basis_points"` DevSellerFeeBasisPoints string `json:"dev_seller_fee_basis_points"` DiscordUrl string `json:"discord_url"` ExternalUrl string `json:"external_url"` Featured bool `json:"featured"` FeaturedImageUrl string `json:"featured_image_url"` Hidden bool `json:"hidden"` ImageUrl string `json:"image_url"` InstagramUsername string `json:"instagram_username"` IsSubjectToWhitelist bool `json:"is_subject_to_whitelist"` LargeImageUrl string `json:"large_image_url"` MediumUsernam string `json:"medium_usernam"` Name string `json:"name"` OnlyProxiedTransfers bool `json:"only_proxied_transfers"` OpenseaBuyerFeeBasisPoints string `json:"opensea_buyer_fee_basis_points"` OpenseaSellerFeeBasisPoints string `json:"opensea_seller_fee_basis_points"` PayoutAddress string `json:"payout_address"` ProtoDisplayData OpenseaDisplayData `json:"display_data"` RequireEmail bool `json:"require_email"` SafelistRequestStatus string `json:"safelist_request_status"` ShortDescription string `json:"short_description"` Slub string `json:"slub"` TelegramUrl string `json:"telegram_url"` TwitterUsername string `json:"twitter_username"` WikiUrl string `json:"wiki_url"` }
Asset contracts contain data about the contract itself, such as the CryptoKitties contract or the CoolCats contract.
func (*OpenseaCollection) UnmarshalJSON ¶
func (openseaCollection *OpenseaCollection) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a OpenseaCollection model
type OpenseaCreator ¶
type OpenseaCreator struct { Address string `json:"address"` Config string `json:"config"` ProfileImgUrl string `json:"profile_img_url"` ProtoUser OpenseaUser `json:"user"` }
The creator of the an opensea asset
func (*OpenseaCreator) UnmarshalJSON ¶
func (openseaCreator *OpenseaCreator) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a OpenseaCreator model
type OpenseaDisplayData ¶
type OpenseaDisplayData struct {
CardDisplayStyle string `json:"card_display_style"`
}
The display type for a collection
func (*OpenseaDisplayData) UnmarshalJSON ¶
func (openseaDisplayData *OpenseaDisplayData) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a OpenseaDisplayData model
type OpenseaOwner ¶
type OpenseaOwner struct { Address string `json:"address"` Config string `json:"config"` ProfileImgUrl string `json:"profile_img_url"` ProtoUser OpenseaUser `json:"user"` }
The owner of an opensea asset
func (*OpenseaOwner) UnmarshalJSON ¶
func (openseaOwner *OpenseaOwner) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a OpenseaOwner model
type OpenseaUser ¶
type OpenseaUser struct {
Username string `json:"username"`
}
The user of the an opensea asset owner
func (*OpenseaUser) UnmarshalJSON ¶
func (openseaUser *OpenseaUser) UnmarshalJSON(d []byte) error
UnmarshalJSON will deserialize bytes into a OpenseaUser model
Source Files
¶
- coinbase_account.go
- coinbase_account_hold.go
- coinbase_account_ledger.go
- coinbase_account_ledger_details.go
- coinbase_account_transfer.go
- coinbase_account_transfer_details.go
- coinbase_available_balance.go
- coinbase_balance.go
- coinbase_bank_country.go
- coinbase_crypto_account.go
- coinbase_crypto_address.go
- coinbase_crypto_address_info.go
- coinbase_crypto_address_warning.go
- coinbase_currency.go
- coinbase_currency_conversion.go
- coinbase_currency_details.go
- coinbase_deposit.go
- coinbase_fees.go
- coinbase_fiat_account.go
- coinbase_fill.go
- coinbase_limits.go
- coinbase_new_order.go
- coinbase_order.go
- coinbase_payment_method.go
- coinbase_picker_data.go
- coinbase_recurring_options.go
- coinbase_sepa_deposit_information.go
- coinbase_single_product.go
- coinbase_swift_deposit_information.go
- coinbase_uk_deposit_information.go
- coinbase_wallet.go
- coinbase_websocket_ticker.go
- coinbase_wire_deposit_information.go
- coinbase_withdrawal.go
- coinbase_withdrawal_fee_estimate.go
- const.go
- iex_rule.go
- iex_rules_schema.go
- iex_rules_scheme.go
- kraken_server_time.go
- kraken_server_time_result.go
- kraken_system_status.go
- kraken_system_status_result.go
- opensea_asset.go
- opensea_asset_contract.go
- opensea_assets.go
- opensea_collection.go
- opensea_creator.go
- opensea_display_data.go
- opensea_owner.go
- opensea_user.go