apca/data/v2/feed.rs
1// Copyright (C) 2022 The apca Developers
2// SPDX-License-Identifier: GPL-3.0-or-later
3
4use serde::Serialize;
5
6
7/// An enumeration of the different supported data feeds.
8#[derive(Copy, Clone, Debug, Eq, PartialEq, Serialize)]
9#[non_exhaustive]
10pub enum Feed {
11 /// Use the Investors Exchange (IEX) as the data source.
12 ///
13 /// This feed is available unconditionally, i.e., with the free and
14 /// unlimited plans.
15 #[serde(rename = "iex")]
16 IEX,
17 /// Use CTA (administered by NYSE) and UTP (administered by Nasdaq)
18 /// SIPs as the data source.
19 ///
20 /// This feed is only usable with the unlimited market data plan.
21 #[serde(rename = "sip")]
22 SIP,
23}