36 | Structure
37 | EmptyResponse
38 |
39 |
40 | public struct EmptyResponse: Decodable
41 | Relationships
43 |Conforms To
85 |-
86 |
Decodable
87 |
EmptyResponse
38 | public struct EmptyResponse: Decodable
41 | DecodableEnvironment
38 | public struct Environment
41 |
42 | api
48 | let api: String
50 | key
54 | let key: String
56 | secret
60 | let secret: String
62 | live(key:secret:)
70 | public static func live(key: String, secret: String) -> Self
72 | paper(key:secret:)
76 | public static func paper(key: String, secret: String) -> Self
78 | StringRepresentable
38 | public protocol StringRepresentable: CustomStringConvertible
41 | CustomStringConvertibleRequestError
38 | public enum RequestError
41 | ErrorinvalidURL
95 | case invalidURL
97 | status
101 | case status(: HTTPResponseStatus)
103 | MultiResponse
38 | public struct MultiResponse<T>: Codable where T: Codable
41 | Codablestatus
95 | let status: Int
97 | body
101 | let body: T
103 | AlpacaClient.EmptyResponse
38 | public struct EmptyResponse: Decodable
41 | AlpacaClientDecodablejsonData
100 | let jsonData = try! JSONSerialization.data(withJSONObject: [:], options: [])
102 | Calendar
38 | public struct Calendar: Codable
41 | Codabledate
95 | let date: Date
97 | open
101 | let open: String
103 | close
107 | let close: String
109 | AlpacaClient.Environment
38 | public struct Environment
41 | AlpacaClientapi
56 | let api: String
58 | key
62 | let key: String
64 | secret
68 | let secret: String
70 | data(key:secret:)
78 | public static func data(key: String, secret: String) -> Self
80 | live(key:secret:)
84 | public static func live(key: String, secret: String) -> Self
86 | paper(key:secret:)
90 | public static func paper(key: String, secret: String) -> Self
92 | Clock
38 | public struct Clock: Codable
41 | Codabletimestamp
95 | let timestamp: Date
97 | isOpen
101 | let isOpen: Bool
103 | nextOpen
107 | let nextOpen: Date
109 | nextClose
113 | let nextClose: Date
115 | AlpacaClientProtocol
38 | public protocol AlpacaClientProtocol
41 | AlpacaClientProtocolAlpacaClientAlpacaDataClientenvironment
116 | var environment: Environment
118 | NumericString
38 | public struct NumericString<Value: StringRepresentable>: Codable
41 | Codableinit(from:)
95 | public init(from decoder: Decoder) throws
97 | value
105 | var value: Value
107 | encode(to:)
115 | public func encode(to encoder: Encoder) throws
117 | Bar
38 | public struct Bar: Codable
41 | Bar.TimeframeCodabletimeframe
100 | var timeframe: Double
102 | open
106 | var open: Double
108 | high
112 | var high: Double
114 | low
118 | var low: Double
120 | close
124 | var close: Double
126 | volume
130 | var volume: Double
132 | AccountConfigurations
38 | public struct AccountConfigurations: Codable
41 | AccountConfigurations.DayTradeBuyingPowerCheckAccountConfigurations.TradeConfirmEmailCodabledtbpCheck
102 | var dtbpCheck: DayTradeBuyingPowerCheck
104 | noShorting
108 | var noShorting: Bool
110 | suspendTrade
114 | var suspendTrade: Bool
116 | tradeConfirmEmail
120 | var tradeConfirmEmail: TradeConfirmEmail
122 | Bar.Timeframe
38 | public enum Timeframe
41 | BarCaseIterableStringoneMin
116 | case oneMin
118 | fiveMin
122 | case fiveMin
124 | fifteenMin
128 | case fifteenMin
130 | oneDay
134 | case oneDay
136 | PortfolioHistory
38 | public struct PortfolioHistory: Codable
41 | PortfolioHistory.TimeframeCodabletimestamp
100 | let timestamp: [Int]
102 | equity
106 | let equity: [Double]
108 | profitLoss
112 | let profitLoss: [Double]
114 | profitLossPct
118 | let profitLossPct: [Double]
120 | baseValue
124 | let baseValue: Double
126 | timeframe
130 | let timeframe: Timeframe
132 | Asset.Class
38 | public enum Class
41 | AssetCaseIterableCodableStringusEquity
132 | case usEquity
134 | SortDirection
38 | public enum SortDirection
41 | CaseIterableCodableStringasc
127 | case asc
129 | desc
133 | case desc
135 | Order.Side
38 | public enum Side
41 | OrderCaseIterableCodableStringbuy
132 | case buy
134 | sell
138 | case sell
140 | Watchlist
38 | public struct Watchlist: Codable, Identifiable
41 | CodableIdentifiableid
111 | let id: UUID
113 | accountId
117 | let accountId: UUID
119 | name
123 | let name: String
125 | createdAt
129 | let createdAt: Date
131 | updatedAt
135 | let updatedAt: Date
137 | assets
141 | let assets: [Asset]?
143 | Asset.Status
38 | public enum Status
41 | AssetCaseIterableCodableStringactive
132 | case active
134 | inactive
138 | case inactive
140 | Position.Side
38 | public enum Side
41 | PositionCaseIterableCodableStringlong
132 | case long
134 | short
138 | case short
140 | AccountConfigurations.TradeConfirmEmail
38 | public enum TradeConfirmEmail
41 | AccountConfigurationsCaseIterableCodableStringall
132 | case all
134 | none
138 | case none
140 | Order.Class
38 | public enum Class
41 | OrderCaseIterableCodableStringsimple
132 | case simple
134 | bracket
138 | case bracket
140 | oco
144 | case oco
146 | oto
150 | case oto
152 | Order.OrderType
38 | public enum OrderType
41 | OrderCaseIterableCodableStringmarket
132 | case market
134 | limit
138 | case limit
140 | stop
144 | case stop
146 | stopLimit
150 | case stopLimit
152 | AccountConfigurations.DayTradeBuyingPowerCheck
38 | public enum DayTradeBuyingPowerCheck
41 | AccountConfigurationsCaseIterableCodableStringboth
132 | case both
134 | entry
138 | case entry
140 | exit
144 | case exit
146 | Order.TimeInForce
38 | public enum TimeInForce
41 | OrderCaseIterableCodableStringday
132 | case day
134 | gtc
138 | case gtc
140 | opg
144 | case opg
146 | cls
150 | case cls
152 | ioc
156 | case ioc
158 | fok
162 | case fok
164 | PortfolioHistory.Timeframe
38 | public enum Timeframe
41 | PortfolioHistoryCaseIterableCodableStringoneMin
132 | case oneMin
134 | fiveMin
138 | case fiveMin
140 | fifteenMin
144 | case fifteenMin
146 | oneHour
150 | case oneHour
152 | oneDay
156 | case oneDay
158 |