or run

npx @tessl/cli init
Log in

Version

Tile

Overview

Evals

Files

Files

docs

commodity.mdcrypto.mdcurrency.mdderivatives.mdeconomy.mdequity.mdetf-index.mdfixedincome.mdindex.mdnews.mdregulatory.mdtechnical.md

equity.mddocs/

0

# Equity Market Data

1

2

Comprehensive equity market data capabilities including historical prices, fundamental analysis, earnings data, institutional ownership, dark pool activity, and company discovery tools. The equity module provides access to stock market data across multiple exchanges and data providers.

3

4

## Capabilities

5

6

### Price Data

7

8

Historical and real-time stock price data including OHLCV data, quotes, and performance metrics.

9

10

```python { .api }

11

def obb.equity.price.historical(

12

symbol: str,

13

start_date: str = None,

14

end_date: str = None,

15

interval: str = "1d",

16

provider: str = None,

17

**kwargs

18

) -> ResponseObject:

19

"""

20

Get historical stock price data.

21

22

Parameters:

23

- symbol: Stock ticker symbol (e.g., "AAPL", "MSFT")

24

- start_date: Start date in YYYY-MM-DD format

25

- end_date: End date in YYYY-MM-DD format

26

- interval: Data interval ("1m", "5m", "15m", "30m", "1h", "1d", "1wk", "1mo")

27

- provider: Data provider to use

28

29

Returns:

30

ResponseObject with historical price data including open, high, low, close, volume

31

"""

32

33

def obb.equity.price.quote(

34

symbol: str,

35

provider: str = None,

36

**kwargs

37

) -> ResponseObject:

38

"""

39

Get current stock quote data.

40

41

Parameters:

42

- symbol: Stock ticker symbol

43

- provider: Data provider to use

44

45

Returns:

46

ResponseObject with current quote including bid, ask, last price, volume

47

"""

48

49

def obb.equity.price.nbbo(

50

symbol: str,

51

provider: str = None,

52

**kwargs

53

) -> ResponseObject:

54

"""

55

Get National Best Bid and Offer data.

56

57

Parameters:

58

- symbol: Stock ticker symbol

59

- provider: Data provider to use

60

61

Returns:

62

ResponseObject with NBBO data

63

"""

64

65

def obb.equity.price.performance(

66

symbol: str,

67

provider: str = None,

68

**kwargs

69

) -> ResponseObject:

70

"""

71

Get stock price performance metrics.

72

73

Parameters:

74

- symbol: Stock ticker symbol

75

- provider: Data provider to use

76

77

Returns:

78

ResponseObject with performance metrics

79

"""

80

```

81

82

### Company Search and Screening

83

84

Tools for discovering and filtering companies based on various criteria.

85

86

```python { .api }

87

def obb.equity.search(

88

query: str,

89

provider: str = None,

90

**kwargs

91

) -> ResponseObject:

92

"""

93

Search for stocks by company name or ticker symbol.

94

95

Parameters:

96

- query: Search term (company name or ticker)

97

- provider: Data provider to use

98

99

Returns:

100

ResponseObject with matching companies and their symbols

101

"""

102

103

def obb.equity.screener(

104

preset: str = None,

105

provider: str = None,

106

**kwargs

107

) -> ResponseObject:

108

"""

109

Screen stocks based on financial criteria.

110

111

Parameters:

112

- preset: Predefined screening criteria

113

- provider: Data provider to use

114

115

Returns:

116

ResponseObject with stocks matching the screening criteria

117

"""

118

119

def obb.equity.market_snapshots(

120

provider: str = None,

121

**kwargs

122

) -> ResponseObject:

123

"""

124

Get market overview and snapshot data.

125

126

Parameters:

127

- provider: Data provider to use

128

129

Returns:

130

ResponseObject with market overview data

131

"""

132

133

def obb.equity.historical_market_cap(

134

symbol: str,

135

provider: str = None,

136

**kwargs

137

) -> ResponseObject:

138

"""

139

Get historical market capitalization data.

140

141

Parameters:

142

- symbol: Stock ticker symbol

143

- provider: Data provider to use

144

145

Returns:

146

ResponseObject with historical market cap data

147

"""

148

```

149

150

### Fundamental Analysis

151

152

Access to company fundamental data including financial statements, metrics, and key ratios.

153

154

```python { .api }

155

# Fundamental data sub-module

156

obb.equity.fundamental.*

157

158

# Access to financial statements, ratios, and key metrics

159

# Functions include balance sheet, income statement, cash flow data

160

# Valuation metrics, profitability ratios, and growth indicators

161

```

162

163

### Corporate Calendar and Events

164

165

Earnings announcements, dividend schedules, IPOs, and other corporate events.

166

167

```python { .api }

168

# Calendar sub-module

169

obb.equity.calendar.*

170

171

# Earnings calendars, dividend schedules

172

# IPO calendars, stock splits, and corporate actions

173

# Economic events affecting equity markets

174

```

175

176

### Analyst Estimates and Consensus

177

178

Analyst estimates, price targets, and recommendation consensus data.

179

180

```python { .api }

181

# Estimates sub-module

182

obb.equity.estimates.*

183

184

# Earnings estimates, revenue forecasts

185

# Price targets and analyst recommendations

186

# Consensus data and estimate revisions

187

```

188

189

### Ownership and Institutional Data

190

191

Institutional ownership, insider trading, and shareholding information.

192

193

```python { .api }

194

# Ownership sub-module

195

obb.equity.ownership.*

196

197

# Institutional holdings and changes

198

# Insider trading activity

199

# Shareholder structure and ownership concentration

200

```

201

202

### Company Comparison and Peers

203

204

Tools for comparing companies and identifying peer groups.

205

206

```python { .api }

207

# Compare sub-module

208

obb.equity.compare.*

209

210

# Peer group identification

211

# Competitive positioning analysis

212

# Cross-company financial comparisons

213

```

214

215

### Discovery and Screening Tools

216

217

Advanced stock discovery based on various financial and market criteria.

218

219

```python { .api }

220

# Discovery sub-module

221

obb.equity.discovery.*

222

223

# Undervalued stocks identification

224

# High-growth company discovery

225

# Dividend aristocrats and other specialized screens

226

```

227

228

### Dark Pool and Alternative Trading

229

230

Dark pool trading data and alternative trading venue information.

231

232

```python { .api }

233

# Darkpool sub-module

234

obb.equity.darkpool.*

235

236

# Dark pool volume and activity

237

# Alternative trading system data

238

# Block trading and institutional flow

239

```

240

241

### Short Interest and Lending

242

243

Short interest data and securities lending information.

244

245

```python { .api }

246

# Shorts sub-module

247

obb.equity.shorts.*

248

249

# Short interest ratios and data

250

# Securities lending rates

251

# Short squeeze indicators and metrics

252

```

253

254

## Usage Examples

255

256

### Basic Stock Data Retrieval

257

258

```python

259

from openbb import obb

260

261

# Get historical price data

262

apple_data = obb.equity.price.historical(

263

symbol="AAPL",

264

start_date="2024-01-01",

265

end_date="2024-12-31"

266

)

267

df = apple_data.to_dataframe()

268

269

# Get current quote

270

current_quote = obb.equity.price.quote("AAPL")

271

quote_df = current_quote.to_dataframe()

272

```

273

274

### Company Research Workflow

275

276

```python

277

# Search for companies

278

search_results = obb.equity.search("artificial intelligence")

279

companies = search_results.to_dataframe()

280

281

# Screen for specific criteria

282

growth_stocks = obb.equity.screener(preset="growth_stocks")

283

screened_df = growth_stocks.to_dataframe()

284

285

# Get fundamental data for selected companies

286

# (Using sub-module functionality)

287

```

288

289

### Multi-Provider Data Access

290

291

```python

292

# Compare data from different providers

293

yahoo_data = obb.equity.price.historical("AAPL", provider="yahoo")

294

polygon_data = obb.equity.price.historical("AAPL", provider="polygon")

295

296

# Access provider-specific features while maintaining consistent interface

297

```