forked from yonch/go-tdameritrade
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclient_types.go
36 lines (29 loc) · 950 Bytes
/
client_types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package tdameritrade
import (
"net/http"
"net/url"
)
// A Client manages communication with the TD-Ameritrade API.
//easyjson:json
type Client struct {
client *http.Client // HTTP client used to communicate with the API.
// Base URL for API requests. Defaults to the public TD-Ameritrade API, but can be
// set to any endpoint. This allows for more manageable testing.
BaseURL *url.URL
// services used for talking to different parts of the tdameritrade api
PriceHistory *PriceHistoryService
Account *AccountsService
MarketHours *MarketHoursService
Quotes *QuotesService
Instrument *InstrumentService
Chains *ChainsService
Mover *MoverService
TransactionHistory *TransactionHistoryService
User *UserService
Watchlist *WatchlistService
}
//easyjson:json
type Response struct {
*http.Response
// TODO add additional items if needed
}