Categorygithub.com/tbliu/bkdocs-go
modulepackage
0.0.0-20211121071622-c0f7fab0e5d1
Repository: https://github.com/tbliu/bkdocs-go.git
Documentation: pkg.go.dev

# README

Go API client for openapi

Open brokerage accounts, enable commission-free trading, and manage the ongoing user experience with Alpaca Broker API

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import sw "./openapi"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value sw.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), sw.ContextServerIndex, 1)

Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value sw.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), sw.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identifield by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), sw.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), sw.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to https://broker-api.sandbox.alpaca.markets/v1

ClassMethodHTTP requestDescription
AccountsApiAccountsAccountIdDocumentsUploadPostPost /accounts/{account_id}/documents/uploadUpload a document to an already existing account
AccountsApiAccountsActivitiesActivityTypeGetGet /accounts/activities/{activity_type}Retrieve specific account activities
AccountsApiAccountsActivitiesGetGet /accounts/activitiesRetrieve account activities
AccountsApiAccountsGetGet /accountsRetrieve all accounts
AccountsApiAccountsPostPost /accountsCreate an account
AccountsApiDeleteAccountDelete /accounts/{account_id}Request to close an account
AccountsApiDeleteAchRelationshipDelete /accounts/{account_id}/ach_relationships/{ach_relationship_id}Delete an existing ACH relationship
AccountsApiDeleteRecipientBankDelete /accounts/{account_id}/recipient_banks/{bank_id}Delete a Bank Relationship for an account
AccountsApiDeleteTransferDelete /accounts/{account_id}/transfers/{transfer_id}Request to close a transfer
AccountsApiEventsAccountsStatusGetGet /events/accounts/statusSubscribe to account status events (SSE).
AccountsApiGetAccountGet /accounts/{account_id}Retrieve an account.
AccountsApiGetAchRelationshipsGet /accounts/{account_id}/ach_relationshipsRetrieve ACH Relationships for an account
AccountsApiGetRecipientBanksGet /accounts/{account_id}/recipient_banksRetrieve bank relationships for an account
AccountsApiGetTradingAccountGet /trading/accounts/{account_id}/accountRetrieve trading details for an account.
AccountsApiGetTransfersGet /accounts/{account_id}/transfersReturn a list of transfers for an account.
AccountsApiPatchAccountPatch /accounts/{account_id}Update an account
AccountsApiPostAchRelationshipsPost /accounts/{account_id}/ach_relationshipsCreate an ACH Relationship
AccountsApiPostRecipientBanksPost /accounts/{account_id}/recipient_banksCreate a Bank Relationship for an account
AccountsApiPostTransfersPost /accounts/{account_id}/transfersRequest a new transfer
AssetsApiAssetsAssetIdGetGet /assets/{asset_id}Retrieve an asset by UUID
AssetsApiAssetsSymbolGetGet /assets/{symbol}Retrieve an asset by symbol
AssetsApiGetAssetsGet /assetsRetrieve all assets
CalendarApiCalendarGetGet /calendarQuery market calendar
ClockApiClockGetGet /clockQuery market clock
DocumentsApiAccountsAccountIdDocumentsDocumentIdDownloadGetGet /accounts/{account_id}/documents/{document_id}/downloadDownload a document file that belongs to an account.
DocumentsApiAccountsAccountIdDocumentsGetGet /accounts/{account_id}/documentsReturn a list of account documents.
DocumentsApiDocumentsDocumentIdGetGet /documents/{document_id}Download a document file directly
EventsApiEventsAccountsStatusGetGet /events/accounts/statusSubscribe to account status events (SSE).
EventsApiEventsJournalsStatusGetGet /events/journals/statusSubscribe to journal events (SSE).
FundingApiDeleteAchRelationshipDelete /accounts/{account_id}/ach_relationships/{ach_relationship_id}Delete an existing ACH relationship
FundingApiDeleteRecipientBankDelete /accounts/{account_id}/recipient_banks/{bank_id}Delete a Bank Relationship for an account
FundingApiDeleteTransferDelete /accounts/{account_id}/transfers/{transfer_id}Request to close a transfer
FundingApiGetAchRelationshipsGet /accounts/{account_id}/ach_relationshipsRetrieve ACH Relationships for an account
FundingApiGetRecipientBanksGet /accounts/{account_id}/recipient_banksRetrieve bank relationships for an account
FundingApiGetTransfersGet /accounts/{account_id}/transfersReturn a list of transfers for an account.
FundingApiPostAchRelationshipsPost /accounts/{account_id}/ach_relationshipsCreate an ACH Relationship
FundingApiPostRecipientBanksPost /accounts/{account_id}/recipient_banksCreate a Bank Relationship for an account
FundingApiPostTransfersPost /accounts/{account_id}/transfersRequest a new transfer
JournalsApiDeleteJournalDelete /journals/{journal_id}Cancel a pending journal.
JournalsApiEventsJournalsStatusGetGet /events/journals/statusSubscribe to journal events (SSE).
JournalsApiGetJournalsGet /journalsReturn a list of requested journals.
JournalsApiPostJournalsPost /journalsRequest a journal.
JournalsApiPostJournalsBatchPost /journals/batchCreate a batch journal
OAuthApiOauthAuthorizePostPost /oauth/authorizeIssue a code.
OAuthApiOauthClientsClientIdGetGet /oauth/clients/{client_id}Returns an OAuth client.
OAuthApiOauthTokenPostPost /oauth/tokenIssue a token.
TradingApiDeleteOrderDelete /trading/accounts/{account_id}/orders/{order_id}Attempts to cancel an open order.
TradingApiDeleteOrdersDelete /trading/accounts/{account_id}/ordersAttempts to cancel all open orders. A response will be provided for each order that is attempted to be cancelled.
TradingApiGetOrderGet /trading/accounts/{account_id}/orders/{order_id}Retrieves a single order for the given order_id.
TradingApiGetOrdersGet /trading/accounts/{account_id}/ordersRetrieves a list of orders for the account, filtered by the supplied query parameters.
TradingApiGetPositionsGet /trading/accounts/{account_id}/positionsList open positions for an account
TradingApiPatchOrderPatch /trading/accounts/{account_id}/orders/{order_id}Replaces a single order with updated parameters. Each parameter overrides the corresponding attribute of the existing order.
TradingApiPostOrdersPost /trading/accounts/{account_id}/ordersCreate an order for an account.

Documentation For Models

Documentation For Authorization

BasicAuth

  • Type: HTTP basic authentication

Example

auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{
    UserName: "username",
    Password: "password",
})
r, err := client.Service.Operation(auth, args)

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author

# Functions

CacheExpires helper function to determine remaining time before repeating a request.
JournalJNLCAsJournalResource is a convenience function that returns JournalJNLC wrapped in JournalResource.
JournalJNLSAsJournalResource is a convenience function that returns JournalJNLS wrapped in JournalResource.
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.
NewAccountCreationObject instantiates a new AccountCreationObject 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.
NewAccountCreationObjectWithDefaults instantiates a new AccountCreationObject 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.
NewAccountExtended instantiates a new AccountExtended 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.
NewAccountExtendedWithDefaults instantiates a new AccountExtended 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.
NewAccountStatusFromValue returns a pointer to a valid AccountStatus for the value passed as argument, or an error if the value passed is not allowed by the enum.
NewAccountUpdate instantiates a new AccountUpdate 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.
NewAccountUpdateWithDefaults instantiates a new AccountUpdate 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.
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.
NewACHRelationshipData instantiates a new ACHRelationshipData 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.
NewACHRelationshipDataWithDefaults instantiates a new ACHRelationshipData 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.
NewACHRelationshipResource instantiates a new ACHRelationshipResource 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.
NewACHRelationshipResourceAllOf instantiates a new ACHRelationshipResourceAllOf 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.
NewACHRelationshipResourceAllOfWithDefaults instantiates a new ACHRelationshipResourceAllOf 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.
NewACHRelationshipResourceWithDefaults instantiates a new ACHRelationshipResource 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.
NewActivity instantiates a new Activity 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.
NewActivityTypeFromValue returns a pointer to a valid ActivityType for the value passed as argument, or an error if the value passed is not allowed by the enum.
NewActivityWithDefaults instantiates a new Activity 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.
NewAgreement instantiates a new Agreement 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.
NewAgreementWithDefaults instantiates a new Agreement 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.
NewAPIClient creates a new API client.
NewAPIResponse returns a new APIResponse object.
NewAPIResponseWithError returns a new APIResponse object with the provided error message.
NewApplicationDocument instantiates a new ApplicationDocument 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.
NewApplicationDocumentWithDefaults instantiates a new ApplicationDocument 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.
NewAssetResource instantiates a new AssetResource 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.
NewAssetResourceWithDefaults instantiates a new AssetResource 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.
NewBankData instantiates a new BankData 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.
NewBankDataWithDefaults instantiates a new BankData 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.
NewBankResource instantiates a new BankResource 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.
NewBankResourceAllOf instantiates a new BankResourceAllOf 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.
NewBankResourceAllOfWithDefaults instantiates a new BankResourceAllOf 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.
NewBankResourceWithDefaults instantiates a new BankResource 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.
NewBatchJournalRequest instantiates a new BatchJournalRequest 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.
NewBatchJournalRequestEntries instantiates a new BatchJournalRequestEntries 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.
NewBatchJournalRequestEntriesWithDefaults instantiates a new BatchJournalRequestEntries 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.
NewBatchJournalRequestWithDefaults instantiates a new BatchJournalRequest 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.
NewBatchJournalResponse instantiates a new BatchJournalResponse 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.
NewBatchJournalResponseWithDefaults instantiates a new BatchJournalResponse 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.
NewConfiguration returns a new Configuration object.
NewContact instantiates a new Contact 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.
NewContactWithDefaults instantiates a new Contact 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.
NewCreateOrder instantiates a new CreateOrder 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.
NewCreateOrderStopLoss instantiates a new CreateOrderStopLoss 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.
NewCreateOrderStopLossWithDefaults instantiates a new CreateOrderStopLoss 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.
NewCreateOrderTakeProfit instantiates a new CreateOrderTakeProfit 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.
NewCreateOrderTakeProfitWithDefaults instantiates a new CreateOrderTakeProfit 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.
NewCreateOrderWithDefaults instantiates a new CreateOrder 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.
NewDisclosures instantiates a new Disclosures 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.
NewDisclosuresWithDefaults instantiates a new Disclosures 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.
NewDocumentTypeFromValue returns a pointer to a valid DocumentType for the value passed as argument, or an error if the value passed is not allowed by the enum.
NewDocumentUpload instantiates a new DocumentUpload 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.
NewDocumentUploadWithDefaults instantiates a new DocumentUpload 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.
NewError instantiates a new Error 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.
NewErrorWithDefaults instantiates a new Error 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.
NewIdentifiedResource instantiates a new IdentifiedResource 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.
NewIdentifiedResourceWithDefaults instantiates a new IdentifiedResource 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.
NewIdentity instantiates a new Identity 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.
NewIdentityWithDefaults instantiates a new Identity 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.
NewInlineObject instantiates a new InlineObject 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.
NewInlineObject1 instantiates a new InlineObject1 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.
NewInlineObject1WithDefaults instantiates a new InlineObject1 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.
NewInlineObjectWithDefaults instantiates a new InlineObject 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.
NewInlineResponse200 instantiates a new InlineResponse200 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.
NewInlineResponse2001 instantiates a new InlineResponse2001 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.
NewInlineResponse2001WithDefaults instantiates a new InlineResponse2001 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.
NewInlineResponse2002 instantiates a new InlineResponse2002 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.
NewInlineResponse2002WithDefaults instantiates a new InlineResponse2002 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.
NewInlineResponse2003 instantiates a new InlineResponse2003 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.
NewInlineResponse2003WithDefaults instantiates a new InlineResponse2003 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.
NewInlineResponse2004 instantiates a new InlineResponse2004 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.
NewInlineResponse2004WithDefaults instantiates a new InlineResponse2004 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.
NewInlineResponse2005 instantiates a new InlineResponse2005 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.
NewInlineResponse2005WithDefaults instantiates a new InlineResponse2005 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.
NewInlineResponse2006 instantiates a new InlineResponse2006 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.
NewInlineResponse2006WithDefaults instantiates a new InlineResponse2006 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.
NewInlineResponse2007 instantiates a new InlineResponse2007 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.
NewInlineResponse2007WithDefaults instantiates a new InlineResponse2007 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.
NewInlineResponse200WithDefaults instantiates a new InlineResponse200 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.
NewInlineResponse207 instantiates a new InlineResponse207 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.
NewInlineResponse207WithDefaults instantiates a new InlineResponse207 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.
NewJournalData instantiates a new JournalData 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.
NewJournalDataWithDefaults instantiates a new JournalData 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.
NewJournalJNLC instantiates a new JournalJNLC 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.
NewJournalJNLCWithDefaults instantiates a new JournalJNLC 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.
NewJournalJNLS instantiates a new JournalJNLS 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.
NewJournalJNLSWithDefaults instantiates a new JournalJNLS 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.
NewKycResult instantiates a new KycResult 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.
NewKycResultWithDefaults instantiates a new KycResult 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.
NewMarketDay instantiates a new MarketDay 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.
NewMarketDayWithDefaults instantiates a new MarketDay 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.
NewNonTradeActivity instantiates a new NonTradeActivity 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.
NewNonTradeActivityAllOf instantiates a new NonTradeActivityAllOf 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.
NewNonTradeActivityAllOfWithDefaults instantiates a new NonTradeActivityAllOf 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.
NewNonTradeActivityWithDefaults instantiates a new NonTradeActivity 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.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewOrderObject instantiates a new OrderObject 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.
NewOrderObjectWithDefaults instantiates a new OrderObject 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.
NewPatchOrder instantiates a new PatchOrder 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.
NewPatchOrderWithDefaults instantiates a new PatchOrder 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.
NewPosition instantiates a new Position 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.
NewPositionWithDefaults instantiates a new Position 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.
NewTradeActivity instantiates a new TradeActivity 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.
NewTradeActivityAllOf instantiates a new TradeActivityAllOf 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.
NewTradeActivityAllOfWithDefaults instantiates a new TradeActivityAllOf 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.
NewTradeActivityWithDefaults instantiates a new TradeActivity 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.
NewTransferData instantiates a new TransferData 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.
NewTransferDataAllOf instantiates a new TransferDataAllOf 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.
NewTransferDataAllOfWithDefaults instantiates a new TransferDataAllOf 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.
NewTransferDataWithDefaults instantiates a new TransferData 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.
NewTransferResource instantiates a new TransferResource 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.
NewTransferResourceAllOf instantiates a new TransferResourceAllOf 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.
NewTransferResourceAllOfWithDefaults instantiates a new TransferResourceAllOf 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.
NewTransferResourceWithDefaults instantiates a new TransferResource 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.
NewTrustedContact instantiates a new TrustedContact 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.
NewTrustedContactWithDefaults instantiates a new TrustedContact 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.
NewUntypedACHTransferData instantiates a new UntypedACHTransferData 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.
NewUntypedACHTransferDataAllOf instantiates a new UntypedACHTransferDataAllOf 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.
NewUntypedACHTransferDataAllOfWithDefaults instantiates a new UntypedACHTransferDataAllOf 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.
NewUntypedACHTransferDataWithDefaults instantiates a new UntypedACHTransferData 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.
NewUntypedTransferData instantiates a new UntypedTransferData 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.
NewUntypedTransferDataWithDefaults instantiates a new UntypedTransferData 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.
NewUntypedWireTransferData instantiates a new UntypedWireTransferData 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.
NewUntypedWireTransferDataAllOf instantiates a new UntypedWireTransferDataAllOf 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.
NewUntypedWireTransferDataAllOfWithDefaults instantiates a new UntypedWireTransferDataAllOf 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.
NewUntypedWireTransferDataWithDefaults instantiates a new UntypedWireTransferData 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.
PtrBool is a helper routine that returns a pointer to given boolean value.
PtrFloat32 is a helper routine that returns a pointer to given float value.
PtrFloat64 is a helper routine that returns a pointer to given float value.
PtrInt is a helper routine that returns a pointer to given integer value.
PtrInt32 is a helper routine that returns a pointer to given integer value.
PtrInt64 is a helper routine that returns a pointer to given integer value.
PtrString is a helper routine that returns a pointer to given string value.
PtrTime is helper routine that returns a pointer to given Time value.

# Constants

List of AccountStatus.
List of AccountStatus.
List of AccountStatus.
List of AccountStatus.
List of AccountStatus.
List of AccountStatus.
List of AccountStatus.
List of AccountStatus.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of ActivityType.
List of DocumentType.
List of DocumentType.
List of DocumentType.
List of DocumentType.
List of DocumentType.
List of DocumentType.

# Variables

ContextAccessToken takes a string oauth2 access token as authentication for the request.
ContextAPIKeys takes a string apikey as authentication for the request.
ContextBasicAuth takes BasicAuth as authentication for the request.
ContextHttpSignatureAuth takes HttpSignatureAuth as authentication for the request.
ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
ContextOperationServerIndices uses a server configuration from the index mapping.
ContextOperationServerVariables overrides a server configuration variables using operation specific values.
ContextServerIndex uses a server configuration from the index.
ContextServerVariables overrides a server configuration variables.

# Structs

Account struct for Account.
AccountCreationObject struct for AccountCreationObject.
AccountExtended struct for AccountExtended.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
AccountUpdate struct for AccountUpdate.
ACHRelationshipData struct for ACHRelationshipData.
ACHRelationshipResource struct for ACHRelationshipResource.
ACHRelationshipResourceAllOf struct for ACHRelationshipResourceAllOf.
Activity Base for activity types.
ActivityItem struct for ActivityItem.
Agreement struct for Agreement.
APIClient manages communication with the Alpaca Broker API API v1.0.0 In most cases there should be only one, shared, APIClient.
APIKey provides API key based authentication to a request passed via context using ContextAPIKey.
APIResponse stores the API response returned by the server.
ApplicationDocument If an account has documents on the application submission, it has the ApplicationDocument model in exchange with DocumentUpload.
AssetResource struct for AssetResource.
No description provided by the author
No description provided by the author
No description provided by the author
BankData struct for BankData.
BankResource struct for BankResource.
BankResourceAllOf struct for BankResourceAllOf.
BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth.
BatchJournalRequest struct for BatchJournalRequest.
BatchJournalRequestEntries struct for BatchJournalRequestEntries.
BatchJournalResponse struct for BatchJournalResponse.
No description provided by the author
No description provided by the author
Configuration stores the configuration of the API client.
Contact Contact is the model for the account owner contact information.
CreateOrder struct for CreateOrder.
CreateOrderStopLoss struct for CreateOrderStopLoss.
CreateOrderTakeProfit struct for CreateOrderTakeProfit.
Disclosures Disclosures fields denote if the account owner falls under each category defined by FINRA rule.
No description provided by the author
No description provided by the author
No description provided by the author
DocumentUpload If an account has documents after the submission, it has the Document model in exchange with DocumentUpload.
Error struct for Error.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GenericOpenAPIError Provides access to the body, error and model on returned errors.
IdentifiedResource struct for IdentifiedResource.
Identity Identity is the model to provide account owner’s identity information.
InlineObject struct for InlineObject.
InlineObject1 struct for InlineObject1.
InlineResponse200 struct for InlineResponse200.
InlineResponse2001 struct for InlineResponse2001.
InlineResponse2002 struct for InlineResponse2002.
InlineResponse2003 struct for InlineResponse2003.
InlineResponse2004 struct for InlineResponse2004.
InlineResponse2005 struct for InlineResponse2005.
InlineResponse2006 struct for InlineResponse2006.
InlineResponse2007 struct for InlineResponse2007.
InlineResponse207 struct for InlineResponse207.
JournalData struct for JournalData.
JournalJNLC struct for JournalJNLC.
JournalJNLS struct for JournalJNLS.
JournalResource - struct for JournalResource.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
KycResult Hold information about the result of KYC.
MarketDay struct for MarketDay.
NonTradeActivity struct for NonTradeActivity.
NonTradeActivityAllOf struct for NonTradeActivityAllOf.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
OrderObject struct for OrderObject.
PatchOrder struct for PatchOrder.
Position struct for Position.
ServerConfiguration stores the information about a server.
ServerVariable stores the information about a server variable.
TradeActivity struct for TradeActivity.
TradeActivityAllOf struct for TradeActivityAllOf.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TransferData struct for TransferData.
TransferDataAllOf struct for TransferDataAllOf.
TransferResource struct for TransferResource.
TransferResourceAllOf struct for TransferResourceAllOf.
TrustedContact This model input is optional.
UntypedACHTransferData struct for UntypedACHTransferData.
UntypedACHTransferDataAllOf struct for UntypedACHTransferDataAllOf.
UntypedTransferData struct for UntypedTransferData.
UntypedWireTransferData struct for UntypedWireTransferData.
UntypedWireTransferDataAllOf struct for UntypedWireTransferDataAllOf.

# Type aliases

AccountsApiService AccountsApi service.
AccountStatus - **SUBMITTED** The application has been submitted and in process.
ActivityType the model 'ActivityType'.
AssetsApiService AssetsApi service.
CalendarApiService CalendarApi service.
ClockApiService ClockApi service.
DocumentsApiService DocumentsApi service.
DocumentType - identity_verification: identity verification document - address_verification: address verification document - date_of_birth_verification: date of birth verification document - tax_id_verification: tax ID verification document - account_approval_letter: 407 approval letter - cip_result: initial CIP result .
EventsApiService EventsApi service.
FundingApiService FundingApi service.
JournalsApiService JournalsApi service.
OAuthApiService OAuthApi service.
ServerConfigurations stores multiple ServerConfiguration items.
TradingApiService TradingApi service.