MCPcopy Index your code

hub / github.com/alpacahq/alpaca-trade-api-go / functions

Functions1,367 in github.com/alpacahq/alpaca-trade-api-go

↓ 633 callersMethodString
()
marketdata/entities.go:124
↓ 142 callersMethodError
()
marketdata/stream/entities.go:222
↓ 102 callersMethodMarshalJSON
MarshalJSON supports json.Marshaler interface
alpaca/entities_easyjson.go:3496
↓ 102 callersMethodUnmarshalJSON
UnmarshalJSON supports json.Unmarshaler interface
alpaca/entities_easyjson.go:3508
↓ 73 callersFunctionserializeToMsgpack
(t *testing.T, v interface{})
marketdata/stream/flow_test.go:781
↓ 60 callersMethodError
()
alpaca/entities.go:379
↓ 56 callersMethodMarshalEasyJSON
MarshalEasyJSON supports easyjson.Marshaler interface
marketdata/entities_easyjson.go:8054
↓ 56 callersMethodUnmarshalEasyJSON
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
marketdata/entities_easyjson.go:8066
↓ 53 callersMethodErrorf
(format string, v ...interface{})
marketdata/stream/log.go:11
↓ 44 callersMethodclose
close closes the websocket connection
marketdata/stream/conn.go:11
↓ 40 callersFunctionnewMockConn
()
marketdata/stream/conn_test.go:25
↓ 36 callersMethodhandleSubChange
(subscribe bool, changes subscriptions)
marketdata/stream/subscription.go:260
↓ 33 callersFunctionwithConnCreator
(connCreator func(ctx context.Context, u url.URL) (conn, error))
marketdata/stream/options.go:165
↓ 32 callersFunctiondiscardMapContents
(d *msgpack.Decoder, n int)
marketdata/stream/message.go:985
↓ 32 callersFunctiongenBody
(data interface{})
alpaca/rest_test.go:1634
↓ 32 callersFunctionmockResp
(resp string)
marketdata/rest_test.go:107
↓ 31 callersFunctioncloseResp
(resp *http.Response)
alpaca/rest.go:1438
↓ 29 callersFunctionunmarshal
(resp *http.Response, v easyjson.Unmarshaler)
alpaca/rest.go:1434
↓ 26 callersFunctionNewCryptoClient
NewCryptoClient returns a new CryptoClient that will connect to the crypto feed and whose default configurations are modified by opts.
marketdata/stream/client.go:179
↓ 25 callersMethodget
(u *url.URL)
marketdata/rest.go:1828
↓ 25 callersFunctionunmarshal
(resp *http.Response, v easyjson.Unmarshaler)
marketdata/rest.go:1837
↓ 23 callersFunctionexpectWrite
(t *testing.T, mockConn *mockConn)
marketdata/stream/flow_test.go:773
↓ 22 callersFunctionwriteInitialFlowMessagesToConn
( t *testing.T, conn *mockConn, sub subscriptions, )
marketdata/stream/client_test.go:1535
↓ 21 callersMethodget
(u *url.URL)
alpaca/rest.go:1366
↓ 20 callersMethodMarshalJSON
MarshalJSON supports json.Marshaler interface
marketdata/stream/entities_easyjson.go:2352
↓ 20 callersFunctionNewStocksClient
NewStocksClient returns a new StocksClient that will connect to feed data feed and whose default configurations are modified by opts.
marketdata/stream/client.go:97
↓ 20 callersMethodUnmarshalJSON
UnmarshalJSON supports json.Unmarshaler interface
marketdata/stream/entities_easyjson.go:2364
↓ 19 callersFunctionassertDecimalPtr
(t *testing.T, expected string, actual *decimal.Decimal)
alpaca/rest_test.go:1348
↓ 17 callersFunctiondecodeStringSlice
(d *msgpack.Decoder)
marketdata/stream/message.go:1119
↓ 16 callersFunctionmust
(err error)
examples/marketdata/marketdata.go:274
↓ 15 callersMethodMarshalEasyJSON
MarshalEasyJSON supports easyjson.Marshaler interface
alpaca/entities_easyjson.go:3503
↓ 15 callersMethodMarshalJSON
MarshalJSON supports json.Marshaler interface
marketdata/entities_easyjson.go:8047
↓ 15 callersFunctionNewClient
NewClient creates a new marketdata client using the given opts.
marketdata/rest.go:56
↓ 15 callersMethodUnmarshalEasyJSON
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
alpaca/entities_easyjson.go:3515
↓ 15 callersMethodUnmarshalJSON
UnmarshalJSON supports json.Unmarshaler interface
marketdata/entities_easyjson.go:8059
↓ 14 callersFunctionWithBaseURL
WithBaseURL configures the base URL
marketdata/stream/options.go:88
↓ 14 callersFunctionassertDatePtr
(t *testing.T, expected civil.Date, actual *civil.Date)
alpaca/rest_test.go:1341
↓ 13 callersFunctionmockErrResp
()
marketdata/rest_test.go:115
↓ 13 callersFunctionsetQueryLimit
(q url.Values, totalLimit, pageLimit, received, maxLimit int)
marketdata/rest.go:184
↓ 12 callersMethodClose
()
alpaca/rest_test.go:1632
↓ 12 callersMethodGetLatestBar
GetLatestBar returns the latest minute bar for a given symbol
marketdata/rest.go:559
↓ 12 callersFunctionWithReconnectSettings
WithReconnectSettings configures how many consecutive connection errors should be accepted and the delay (that is multiplied by the number of consecut
marketdata/stream/options.go:110
↓ 12 callersFunctioncheckInitialMessagesSentByClient
( t *testing.T, m *mockConn, key, secret string, sub subscriptions, )
marketdata/stream/client_test.go:1577
↓ 12 callersFunctioncloseResp
(resp *http.Response)
marketdata/rest.go:1855
↓ 11 callersMethodPlaceOrder
PlaceOrder submits an order request to buy or sell an asset.
alpaca/rest.go:575
↓ 11 callersMethodWarnf
(format string, v ...interface{})
marketdata/stream/log.go:10
↓ 11 callersFunctionWithCredentials
WithCredentials configures the key and secret to use
marketdata/stream/options.go:95
↓ 10 callersFunctionNewClient
NewClient creates a new Alpaca trading client using the given opts.
alpaca/rest.go:44
↓ 10 callersFunctionnewFuncOption
(f func(*options))
marketdata/stream/options.go:74
↓ 10 callersFunctionnewFuncStockOption
(f func(*stockOptions))
marketdata/stream/options.go:244
↓ 9 callersMethodCancelOrder
CancelOrder submits a request to cancel an open order.
alpaca/rest.go:668
↓ 9 callersMethodConnect
(ctx context.Context)
marketdata/stream/client_test.go:33
↓ 9 callersMethodConnect
Connect establishes a connection and **reestablishes it when errors occur** as long as the configured number of retries has not been exceeded. It blo
marketdata/stream/client.go:130
↓ 9 callersMethodGetTrades
GetTrades returns the trades for the given symbol.
marketdata/rest.go:226
↓ 9 callersMethodSubscribeToTrades
(handler func(Trade), symbols ...string)
marketdata/stream/subscription.go:14
↓ 9 callersMethodsubmitOrder
Submit an order if quantity is above 0.
examples/long-short/long-short.go:412
↓ 8 callersMethodConnect
Connect establishes a connection and **reestablishes it when errors occur** as long as the configured number of retries has not been exceeded. It blo
marketdata/stream/client.go:214
↓ 8 callersFunctionDefaultLogger
DefaultLogger returns a Logger that uses the standard go log package to print leveled logs to the standard error.
marketdata/stream/log.go:30
↓ 8 callersMethodGetAccount
GetAccount returns the user's account information.
alpaca/rest.go:125
↓ 8 callersMethodGetOrders
GetOrders returns the list of orders for an account.
alpaca/rest.go:492
↓ 8 callersMethodsetBaseQuery
(q url.Values, req baseRequest)
marketdata/rest.go:150
↓ 7 callersMethodGetClock
GetClock returns the current market clock.
alpaca/rest.go:426
↓ 7 callersMethodGetPositions
GetPositions returns the account's open positions.
alpaca/rest.go:291
↓ 7 callersFunctionNewTimeFrame
(n int, unit TimeFrameUnit)
marketdata/entities.go:117
↓ 7 callersMethodTerminated
()
marketdata/stream/client_test.go:34
↓ 7 callersMethodcryptoURL
(fromReq cryptoRequest)
marketdata/rest.go:1014
↓ 7 callersFunctionnewFuncCryptoOption
(f func(*cryptoOptions))
marketdata/stream/options.go:396
↓ 6 callersMethodGetOptionContracts
GetOptionContracts returns the list of Option Contracts.
alpaca/rest.go:796
↓ 6 callersMethodInfof
(format string, v ...interface{})
marketdata/stream/log.go:9
↓ 6 callersMethodSubscribeToTrades
(handler func(CryptoTrade), symbols ...string)
marketdata/stream/subscription.go:126
↓ 6 callersMethoddelete
(u *url.URL)
alpaca/rest.go:1417
↓ 6 callersMethodinitialize
initialize performs the initial flow: 1. wait to be welcomed 2. authenticates (and waits for the response) 3. subscribes (and waits for the response)
marketdata/stream/flow.go:24
↓ 6 callersMethodsetLatestQueryRequest
(u *url.URL, req baseLatestRequest)
marketdata/rest.go:534
↓ 5 callersMethodGetAsset
GetAsset returns an asset for the given symbol.
alpaca/rest.go:735
↓ 5 callersMethodGetBars
GetBars returns a slice of bars for the given symbol.
marketdata/rest.go:405
↓ 5 callersMethodGetLatestCryptoBars
GetLatestCryptoBars returns the latest bars for the given crypto symbols
marketdata/rest.go:1078
↓ 5 callersMethodGetSnapshots
GetSnapshots returns the snapshots for multiple symbol
marketdata/rest.go:697
↓ 5 callersFunctionWithTrades
WithTrades configures initial trade symbols to subscribe to and the handler
marketdata/stream/options.go:251
↓ 5 callersFunctiondefaultDo
(c *Client, req *http.Request)
alpaca/rest.go:88
↓ 5 callersMethodnoSubscribeCallNecessary
()
marketdata/stream/subscription.go:252
↓ 5 callersMethodsetLatestCryptoQueryRequest
(u *url.URL, req cryptoBaseLatestRequest)
marketdata/rest.go:984
↓ 5 callersFunctionverify
(resp *http.Response)
alpaca/rest.go:1426
↓ 4 callersMethodGetAccountActivities
GetAccountActivities returns the account activities.
alpaca/rest.go:204
↓ 4 callersMethodGetFixedIncomeLatestPrice
GetFixedIncomeLatestPrice returns the latest price for a given fixed income security identified by ISIN
marketdata/rest.go:1586
↓ 4 callersMethodGetFixedIncomeLatestPrices
GetFixedIncomeLatestPrices returns the latest prices for the given fixed income securities identified by ISINs
marketdata/rest.go:1599
↓ 4 callersMethodGetLatestBars
GetLatestBars returns the latest minute bars for the given symbols
marketdata/rest.go:572
↓ 4 callersMethodGetLatestCryptoQuotes
GetLatestCryptoQuotes returns the latest quotes for the given crypto symbols
marketdata/rest.go:1234
↓ 4 callersMethodGetLatestCryptoTrades
GetLatestCryptoTrades returns the latest trades for the given crypto symbols
marketdata/rest.go:1155
↓ 4 callersMethodGetLatestQuotes
GetLatestQuotes returns the latest quotes for the given symbols
marketdata/rest.go:658
↓ 4 callersMethodGetLatestTrade
GetLatestTrade returns the latest trade for a given symbol
marketdata/rest.go:602
↓ 4 callersMethodGetLatestTrades
GetLatestTrades returns the latest trades for the given symbols
marketdata/rest.go:615
↓ 4 callersMethodGetMultiBars
GetMultiBars returns bars for the given symbols.
marketdata/rest.go:414
↓ 4 callersMethodGetMultiQuotes
GetMultiQuotes returns quotes for the given symbols.
marketdata/rest.go:311
↓ 4 callersMethodGetPosition
GetPosition returns the account's position for the provided symbol.
alpaca/rest.go:311
↓ 4 callersMethodGetUSCorporates
GetUSCorporates returns the available US Corporate bonds.
alpaca/rest.go:1332
↓ 4 callersMethodGetUSTreasuries
GetUSTreasuries returns the available US Treasury securities.
alpaca/rest.go:1290
↓ 4 callersMethodSubscribeToQuotes
(handler func(CryptoQuote), symbols ...string)
marketdata/stream/subscription.go:133
↓ 4 callersFunctionWithBars
WithBars configures initial bar symbols to subscribe to and the handler
marketdata/stream/options.go:267
↓ 4 callersFunctionWithConnectCallback
WithConnectCallback runs the callback function after the streaming connection is setup. If the stream terminates and can't reconnect, the connect call
marketdata/stream/options.go:121
↓ 4 callersFunctionWithCryptoOrderbooks
WithCryptoOrderbooks configures initial orderbook symbols to subscribe to and the handler
marketdata/stream/options.go:451
next →1–100 of 1,367, ranked by callers