Skip to content
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.

Alpaca_Key

hallee edited this page May 12, 2020 · 2 revisions

Alpaca.Key

API key for interacting with Alpaca’s trade API.

struct Key

Initializers

init(key:secret:)

To interact with Alpaca’s trade API, sign up for a account and obtain API key pairs from the Alpaca dashboard.

public init(key: String, secret: String)

Parameters

  • key: - key: API key ID
  • secret: - secret: Secret key

Properties

key

let key: String

secret

let secret: String

headerFields

var headerFields: [String: String]

Methods

authenticate(request:)

func authenticate(request: inout URLRequest)