model

package
v0.0.0-...-f501dc8 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2022 License: MIT Imports: 3 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoinbaseAccount

type CoinbaseAccount struct{ protomodel.CoinbaseAccount }

CoinbaseAccount holds data for trading account from the profile of the API key

type CoinbaseAccountDepositOptions

type CoinbaseAccountDepositOptions struct {
	ProfileID         *string `json:"profileId"`
	Amount            float64 `json:"amount"`
	CoinbaseAccountID string  `json:"coinbaseAccountId"`
	Currency          string  `json:"currency"`
}

type CoinbaseAccountHold

type CoinbaseAccountHold struct{ protomodel.CoinbaseAccountHold }

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.

type CoinbaseAccountHoldsOptions

type CoinbaseAccountHoldsOptions struct {
	Before *string `json:"before"`
	After  *string `json:"after"`
	Limit  *int    `json:"limit"`
}

type CoinbaseAccountLedger

type CoinbaseAccountLedger struct {
	protomodel.CoinbaseAccountLedger
}

CoinbaseAccountLedger lists ledger activity for an account. This includes anything that would affect the accounts balance - transfers, trades, fees, etc.

func (*CoinbaseAccountLedger) Details

Details converts the native protomodel ProtoDetails to a local CoinbaseAccountLedgerDetails.

type CoinbaseAccountLedgerDetails

type CoinbaseAccountLedgerDetails struct {
	protomodel.CoinbaseAccountLedgerDetails
}

CoinbaseAccountLedgerDetails are the details for account history.

type CoinbaseAccountLedgerOptions

type CoinbaseAccountLedgerOptions struct {
	StartDate *string `json:"startDate"`
	EndDate   *string `json:"endDate"`
	Before    *string `json:"before"`
	After     *string `json:"after"`
	ProfileID *string `json:"profileId"`
	Limit     *int    `json:"limit"`
}

type CoinbaseAccountTransfer

type CoinbaseAccountTransfer struct {
	protomodel.CoinbaseAccountTransfer
}

CoinbaseAccountTransfer will lists past withdrawals and deposits for an account.

func (*CoinbaseAccountTransfer) Details

Details converts the native protomodel ProtoDetails to a local CoinbaseAccountTransferDetails.

type CoinbaseAccountTransferDetails

type CoinbaseAccountTransferDetails struct {
	protomodel.CoinbaseAccountTransferDetails
}

CoinbaseAccountTransferDetails are the details for an account transfer.

type CoinbaseAccountTransferOptions

type CoinbaseAccountTransferOptions struct {
	Before *string `json:"before"`
	After  *string `json:"after"`
	Limit  *int    `json:"limit"`
	Type   *string `json:"type"`
}

type CoinbaseAccountTransfersOptions

type CoinbaseAccountTransfersOptions struct {
	Before *string `json:"before"`
	After  *string `json:"after"`
	Limit  *int    `json:"limit"`
	Type   *string `json:"type"`
}

type CoinbaseAccountWithdrawalOptions

type CoinbaseAccountWithdrawalOptions struct {
	ProfileID         *string `json:"profileId"`
	Amount            float64 `json:"amount"`
	CoinbaseAccountID string  `json:"coinbaseAccountId"`
	Currency          string  `json:"currency"`
}

type CoinbaseAvailableBalance

type CoinbaseAvailableBalance struct {
	protomodel.CoinbaseAvailableBalance
}

CoinbaseAvailableBalance is the available balance on the coinbase account

type CoinbaseBalance

type CoinbaseBalance struct{ protomodel.CoinbaseBalance }

CoinbaseBalance is the balance for picker data

type CoinbaseBankCountry

type CoinbaseBankCountry struct{ protomodel.CoinbaseBankCountry }

CoinbaseBankCountry are the name and code for the bank's country associated with a wallet

type CoinbaseCoinbaseAccountDepositOptions

type CoinbaseCoinbaseAccountDepositOptions struct {
	ProfileID         *string  `json:"profileId"`
	Amount            *float64 `json:"amount"`
	CoinbaseAccountID *string  `json:"coinbaseAccountId"`
	Currency          *string  `json:"currency"`
}

type CoinbaseConversionOptions

type CoinbaseConversionOptions struct {
	ProfileID *string `json:"profileId"`
}

type CoinbaseConversionsOptions

type CoinbaseConversionsOptions struct {
	ProfileID *string `json:"profileId"`
	From      string  `json:"from"`
	To        string  `json:"to"`
	Amount    float64 `json:"amount"`
	Nonce     *string `json:"nonce"`
}

type CoinbaseCryptoAccount

type CoinbaseCryptoAccount struct {
	protomodel.CoinbaseCryptoAccount
}

CoinbaseCryptoAccount references a crypto account that a CoinbasePaymentMethod belongs to

type CoinbaseCryptoAddress

type CoinbaseCryptoAddress struct {
	protomodel.CoinbaseCryptoAddress
}

CoinbaseCryptoAddress is used for a one-time crypto address for depositing crypto.

func (*CoinbaseCryptoAddress) AddressInfo

AddressInfo converts the native protomodel ProtoAddressInfo to a local CoinbaseCryptoAddressInfo.

func (*CoinbaseCryptoAddress) Warnings

func (m *CoinbaseCryptoAddress) Warnings() (slice []*CoinbaseCryptoAddressWarning)

Warnings converts the native protomodel ProtoWarnings to a local []*CoinbaseCryptoAddressWarning.

type CoinbaseCryptoAddressInfo

type CoinbaseCryptoAddressInfo struct {
	protomodel.CoinbaseCryptoAddressInfo
}

CoinbaseCryptoAddressInfo holds info for a crypto address

type CoinbaseCryptoAddressWarning

type CoinbaseCryptoAddressWarning struct {
	protomodel.CoinbaseCryptoAddressWarning
}

CoinbaseCryptoAddressWarning is a warning for generating a crypting address

type CoinbaseCryptoWithdrawalOptions

type CoinbaseCryptoWithdrawalOptions struct {
	ProfileID        *string  `json:"profileId"`
	Amount           float64  `json:"amount"`
	CryptoAddress    string   `json:"cryptoAddress"`
	Currency         string   `json:"currency"`
	DestinationTag   *string  `json:"destinationTag"`
	NoDestinationTag *bool    `json:"noDestinationTag"`
	TwoFactorCode    *string  `json:"twoFactorCode"`
	Nonce            *int     `json:"nonce"`
	Fee              *float64 `json:"fee"`
}

type CoinbaseCurrency

type CoinbaseCurrency struct{ protomodel.CoinbaseCurrency }

CoinbaseCurrency is a currency that coinbase knows about. Not al currencies may be currently in use for trading.

func (*CoinbaseCurrency) Details

Details converts the native protomodel ProtoDetails to a local CoinbaseCurrencyDetails.

type CoinbaseCurrencyConversion

type CoinbaseCurrencyConversion struct {
	protomodel.CoinbaseCurrencyConversion
}

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.

type CoinbaseCurrencyDetails

type CoinbaseCurrencyDetails struct {
	protomodel.CoinbaseCurrencyDetails
}

CoinbaseCurrencyDetails are the details for a currency that coinbase knows about

type CoinbaseDeposit

type CoinbaseDeposit struct{ protomodel.CoinbaseDeposit }

CoinbaseDeposit is the response for deposited funds from a www.coinbase.com wallet to the specified profile_id.

type CoinbaseFees

type CoinbaseFees struct{ protomodel.CoinbaseFees }

CoinbaseFees are fees rates and 30 days trailing volume.

type CoinbaseFiatAccount

type CoinbaseFiatAccount struct{ protomodel.CoinbaseFiatAccount }

CoinbaseLimits references a FIAT account thata CoinbasePaymentMethod belongs to

type CoinbaseFill

type CoinbaseFill struct{ protomodel.CoinbaseFill }

CoinbasePaymentMethod is a partial or complete match on a specific order.

type CoinbaseFillsOptions

type CoinbaseFillsOptions struct {
	OrderID   *string `json:"orderId"`
	ProductID *string `json:"productId"`
	ProfileID *string `json:"profileId"`
	Limit     *int    `json:"limit"`
	Before    *int    `json:"before"`
	After     *int    `json:"after"`
}

type CoinbaseLimits

type CoinbaseLimits struct{ protomodel.CoinbaseLimits }

CoinbaseLimits defines limits for a payment method

type CoinbaseNewOrder

type CoinbaseNewOrder struct{ protomodel.CoinbaseNewOrder }

CoinbaseNewOrder is the server's response for placing a new order.

type CoinbaseNewOrderOptions

type CoinbaseNewOrderOptions struct {
	ProfileID   *string             `json:"profileId"`
	Type        *scalar.OrderType   `json:"type"`
	Side        scalar.OrderSide    `json:"side"`
	Stp         *scalar.OrderSTP    `json:"stp"`
	Stop        *scalar.OrderStop   `json:"stop"`
	StopPrice   *float64            `json:"stopPrice"`
	Price       *float64            `json:"price"`
	Size        *float64            `json:"size"`
	Funds       *float64            `json:"funds"`
	ProductID   string              `json:"productId"`
	TimeInForce *scalar.TimeInForce `json:"timeInForce"`
	CancelAfter *scalar.CancelAfter `json:"cancelAfter"`
	PostOnly    *bool               `json:"postOnly"`
	ClientOid   *string             `json:"clientOid"`
}

type CoinbaseOrder

type CoinbaseOrder struct{ protomodel.CoinbaseOrder }

CoinbaseOrder is an open order.

type CoinbaseOrdersOptions

type CoinbaseOrdersOptions struct {
	ProfileID *string    `json:"profileId"`
	ProductID *string    `json:"productId"`
	SortedBy  *string    `json:"sortedBy"`
	Sorting   *string    `json:"sorting"`
	StartDate *time.Time `json:"startDate"`
	EndDate   *time.Time `json:"endDate"`
	Before    *string    `json:"before"`
	After     *string    `json:"after"`
	Limit     int        `json:"limit"`
	Status    []*string  `json:"status"`
}

type CoinbasePaymentMethod

type CoinbasePaymentMethod struct {
	protomodel.CoinbasePaymentMethod
}

CoinbasePaymentMethod is a payment method used on coinbase

func (*CoinbasePaymentMethod) AvailableBalance

func (m *CoinbasePaymentMethod) AvailableBalance() *CoinbaseAvailableBalance

AvailableBalance converts the native protomodel ProtoAvailableBalance to a local CoinbaseAvailableBalance.

func (*CoinbasePaymentMethod) CryptoAccount

func (m *CoinbasePaymentMethod) CryptoAccount() *CoinbaseCryptoAccount

CryptoAccount converts the native protomodel ProtoCryptoAccount to a local CoinbaseCryptoAccount.

func (*CoinbasePaymentMethod) FiatAccount

func (m *CoinbasePaymentMethod) FiatAccount() *CoinbaseFiatAccount

FiatAccount converts the native protomodel ProtoFiatAccount to a local CoinbaseFiatAccount.

func (*CoinbasePaymentMethod) Limits

Limits converts the native protomodel ProtoLimits to a local CoinbaseLimits.

func (*CoinbasePaymentMethod) PickerData

func (m *CoinbasePaymentMethod) PickerData() *CoinbasePickerData

PickerData converts the native protomodel ProtoPickerData to a local CoinbasePickerData.

func (*CoinbasePaymentMethod) RecurringOptions

func (m *CoinbasePaymentMethod) RecurringOptions() (slice []*CoinbaseRecurringOptions)

RecurringOptions converts the native protomodel ProtoRecurringOptions to a local []*CoinbaseRecurringOptions.

type CoinbasePaymentMethodDepositOptions

type CoinbasePaymentMethodDepositOptions struct {
	ProfileID       *string `json:"profileId"`
	Amount          float64 `json:"amount"`
	PaymentMethodID string  `json:"paymentMethodId"`
	Currency        string  `json:"currency"`
}

type CoinbasePaymentMethodWithdrawalOptions

type CoinbasePaymentMethodWithdrawalOptions struct {
	ProfileID       *string `json:"profileId"`
	Amount          float64 `json:"amount"`
	PaymentMethodID string  `json:"paymentMethodId"`
	Currency        string  `json:"currency"`
}

type CoinbasePickerData

type CoinbasePickerData struct{ protomodel.CoinbasePickerData }

CoinbasePickerData ??

func (*CoinbasePickerData) Balance

func (m *CoinbasePickerData) Balance() *CoinbaseBalance

Balance converts the native protomodel ProtoBalance to a local CoinbaseBalance.

type CoinbaseRecurringOptions

type CoinbaseRecurringOptions struct {
	protomodel.CoinbaseRecurringOptions
}

CoinbaseRecurringOptions ??

type CoinbaseSepaDepositInformation

type CoinbaseSepaDepositInformation struct {
	protomodel.CoinbaseSepaDepositInformation
}

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) BankCountry

BankCountry converts the native protomodel ProtoBankCountry to a local CoinbaseBankCountry.

type CoinbaseSingleProduct

type CoinbaseSingleProduct struct {
	protomodel.CoinbaseSingleProduct
}

CoinbaseSingleProduct is information on a single product

type CoinbaseSwiftDepositInformation

type CoinbaseSwiftDepositInformation struct {
	protomodel.CoinbaseSwiftDepositInformation
}

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) BankCountry

BankCountry converts the native protomodel ProtoBankCountry to a local CoinbaseBankCountry.

type CoinbaseUkDepositInformation

type CoinbaseUkDepositInformation struct {
	protomodel.CoinbaseUkDepositInformation
}

CoinbaseUkDepositInformation information regarding a wallet's deposits.

func (*CoinbaseUkDepositInformation) BankCountry

BankCountry converts the native protomodel ProtoBankCountry to a local CoinbaseBankCountry.

type CoinbaseWallet

type CoinbaseWallet struct{ protomodel.CoinbaseWallet }

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) SepaDepositInformation

func (m *CoinbaseWallet) SepaDepositInformation() *CoinbaseSepaDepositInformation

SepaDepositInformation converts the native protomodel ProtoSepaDepositInformation to a local CoinbaseSepaDepositInformation.

func (*CoinbaseWallet) SwiftDepositInformation

func (m *CoinbaseWallet) SwiftDepositInformation() *CoinbaseSwiftDepositInformation

SwiftDepositInformation converts the native protomodel ProtoSwiftDepositInformation to a local CoinbaseSwiftDepositInformation.

func (*CoinbaseWallet) UkDepositInformation

func (m *CoinbaseWallet) UkDepositInformation() *CoinbaseUkDepositInformation

UkDepositInformation converts the native protomodel ProtoUkDepositInformation to a local CoinbaseUkDepositInformation.

func (*CoinbaseWallet) WireDepositInformation

func (m *CoinbaseWallet) WireDepositInformation() *CoinbaseWireDepositInformation

WireDepositInformation converts the native protomodel ProtoWireDepositInformation to a local CoinbaseWireDepositInformation.

type CoinbaseWebsocketTicker

type CoinbaseWebsocketTicker struct {
	protomodel.CoinbaseWebsocketTicker
}

CoinbaseWebsocketTicker is real-time price updates every time a match happens. It batches updates in case of cascading matches, greatly reducing bandwidth requirements.

type CoinbaseWireDepositInformation

type CoinbaseWireDepositInformation struct {
	protomodel.CoinbaseWireDepositInformation
}

CoinbaseWireDepositInformation information regarding a wallet's deposits

func (*CoinbaseWireDepositInformation) BankCountry

BankCountry converts the native protomodel ProtoBankCountry to a local CoinbaseBankCountry.

type CoinbaseWithdrawal

type CoinbaseWithdrawal struct{ protomodel.CoinbaseWithdrawal }

CoinbaseWithdrawal is data concerning withdrawing funds from the specified profile_id to a www.coinbase.com wallet.

type CoinbaseWithdrawalFeeEstimate

type CoinbaseWithdrawalFeeEstimate struct {
	protomodel.CoinbaseWithdrawalFeeEstimate
}

CoinbaseWithdrawalFeeEstimate is a fee estimate for the crypto withdrawal to crypto address

type CoinbaseWithdrawalFeeEstimateOptions

type CoinbaseWithdrawalFeeEstimateOptions struct {
	Currency      *string `json:"currency"`
	CryptoAddress *string `json:"cryptoAddress"`
}

type ErrorMessage

type ErrorMessage struct {
	Message    string `json:"message"`
	Status     string `json:"status"`
	StatusCode string `json:"status_code"`
}

type IexRule

type IexRule struct{ protomodel.IexRule }

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.

type IexRulesSchema

type IexRulesSchema struct{ protomodel.IexRulesSchema }

IexRulesSchema is the latest schema for data points, notification types, and operators used to construct rules.

func (*IexRulesSchema) Schema

func (m *IexRulesSchema) Schema() (slice []*IexRulesScheme)

Schema converts the native protomodel ProtoSchema to a local []*IexRulesScheme.

type IexRulesScheme

type IexRulesScheme struct{ protomodel.IexRulesScheme }

IEXRulesScheme is one of the latest schemes for data points, notification types, and operators used to construct rules.

type KrakenServerTime

type KrakenServerTime struct{ protomodel.KrakenServerTime }

KrakenServerTime holds data concerning the server time

func (*KrakenServerTime) Result

Result converts the native protomodel ProtoResult to a local KrakenServerTimeResult.

type KrakenServerTimeResult

type KrakenServerTimeResult struct {
	protomodel.KrakenServerTimeResult
}

KrakenServerTimeResult holds data concerning the server time

type KrakenSystemStatus

type KrakenSystemStatus struct{ protomodel.KrakenSystemStatus }

KrakenSystemStatus holds data concerning the current system status or trading mode.

func (*KrakenSystemStatus) Result

Result converts the native protomodel ProtoResult to a local KrakenSystemStatusResult.

type KrakenSystemStatusResult

type KrakenSystemStatusResult struct {
	protomodel.KrakenSystemStatusResult
}

KrakenSystemStatusResult holds data concerning the current system status or trading mode.

type OpenseaAsset

type OpenseaAsset struct{ protomodel.OpenseaAsset }

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) AssetContract

func (m *OpenseaAsset) AssetContract() *OpenseaAssetContract

AssetContract converts the native protomodel ProtoAssetContract to a local OpenseaAssetContract.

func (*OpenseaAsset) Collection

func (m *OpenseaAsset) Collection() *OpenseaCollection

Collection converts the native protomodel ProtoCollection to a local OpenseaCollection.

func (*OpenseaAsset) Creator

func (m *OpenseaAsset) Creator() *OpenseaCreator

Creator converts the native protomodel ProtoCreator to a local OpenseaCreator.

func (*OpenseaAsset) Owner

func (m *OpenseaAsset) Owner() *OpenseaOwner

Owner converts the native protomodel ProtoOwner to a local OpenseaOwner.

type OpenseaAssetContract

type OpenseaAssetContract struct {
	protomodel.OpenseaAssetContract
}

Asset contracts contain data about the contract itself, such as the CryptoKitties contract or the CoolCats contract.

type OpenseaAssets

type OpenseaAssets struct{ protomodel.OpenseaAssets }

OpenseaAssets are a set of assets from opensea NFTs

func (*OpenseaAssets) Assets

func (m *OpenseaAssets) Assets() (slice []*OpenseaAsset)

Assets converts the native protomodel ProtoAssets to a local []*OpenseaAsset.

type OpenseaAssetsOptions

type OpenseaAssetsOptions struct {
	Owner                  *string   `json:"owner"`
	TokenIds               *string   `json:"tokenIds"`
	AssetContractAddress   *string   `json:"assetContractAddress"`
	AssetContractAddresses []*string `json:"assetContractAddresses"`
	OrderBy                *string   `json:"orderBy"`
	OrderDirection         *string   `json:"orderDirection"`
	Offset                 *string   `json:"offset"`
	Limit                  *string   `json:"limit"`
	Collection             *string   `json:"collection"`
}

type OpenseaCollection

type OpenseaCollection struct{ protomodel.OpenseaCollection }

Asset contracts contain data about the contract itself, such as the CryptoKitties contract or the CoolCats contract.

func (*OpenseaCollection) DisplayData

func (m *OpenseaCollection) DisplayData() *OpenseaDisplayData

DisplayData converts the native protomodel ProtoDisplayData to a local OpenseaDisplayData.

type OpenseaCreator

type OpenseaCreator struct{ protomodel.OpenseaCreator }

The creator of the an opensea asset

func (*OpenseaCreator) User

func (m *OpenseaCreator) User() *OpenseaUser

User converts the native protomodel ProtoUser to a local OpenseaUser.

type OpenseaDisplayData

type OpenseaDisplayData struct{ protomodel.OpenseaDisplayData }

The display type for a collection

type OpenseaOwner

type OpenseaOwner struct{ protomodel.OpenseaOwner }

The owner of an opensea asset

func (*OpenseaOwner) User

func (m *OpenseaOwner) User() *OpenseaUser

User converts the native protomodel ProtoUser to a local OpenseaUser.

type OpenseaUser

type OpenseaUser struct{ protomodel.OpenseaUser }

The user of the an opensea asset owner

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL