CWKSecuritySymbol Class Reference

Inherits from NSObject
Conforms to NSCopying
Declared in CWKSecuritySymbol.h

Overview

This class is used to describe a financial security

  symbol

The financial security symbol, such as AAPL for Apple.

@property (nullable, nonatomic, copy) NSString *symbol

Declared In

CWKSecuritySymbol.h

  displaySymbol

The name that should be shown instead of symbol. If not set, symbol will be used instead

@property (nullable, nonatomic, copy) NSString *displaySymbol

Declared In

CWKSecuritySymbol.h

  issueID

The symbol’s IssueID

@property (nullable, nonatomic, copy) NSString *issueID

Declared In

CWKSecuritySymbol.h

  exchange

The exchange code

@property (nullable, nonatomic, copy) NSString *exchange

Declared In

CWKSecuritySymbol.h

  country

The country code

@property (nullable, nonatomic, copy) NSString *country

Declared In

CWKSecuritySymbol.h

  lineWidth

Width of the line when drawing line or mountain charts with this symbol

@property (nullable, nonatomic, strong) NSNumber *lineWidth

Declared In

CWKSecuritySymbol.h

  symbolComparisonColor

The base color to be used for the symbol when drawn on a chart. If not set light gray will be set as a default that way it will show up either in a dark or light theme.

@property (nonatomic, strong) UIColor *symbolComparisonColor

Declared In

CWKSecuritySymbol.h

– initWithSymbol:color:

Create an instance of CWKSecuritySymbol with a symbol name.

- (instancetype)initWithSymbol:(NSString *)symbol color:(UIColor *)color

Parameters

symbol

NSString containing the symbol name

color

UIColor used for comparisons

Declared In

CWKSecuritySymbol.h

– initWithIssueID:color:

Create an instance of CWKSecuritySymbol with an Issue ID

- (instancetype)initWithIssueID:(NSString *)issueID color:(UIColor *)color

Parameters

issueID

NSString containing the Issue ID

color

UIColor used for comparisons

Declared In

CWKSecuritySymbol.h

– initWithIssueID:symbol:color:

Create an instance of CWKSecuritySymbol with an Issue ID

- (instancetype)initWithIssueID:(nullable NSString *)issueID symbol:(nullable NSString *)symbol color:(UIColor *)color

Parameters

issueID

NSString containing the Issue ID

symbol

NSString containing the symbol name

color

UIColor used for comparisons

Declared In

CWKSecuritySymbol.h

– isEqualToSymbol:

A method to compare to CWKSecuritySymbol objects to test for equality

- (BOOL)isEqualToSymbol:(CWKSecuritySymbol *)symbol

Parameters

symbol

the symbol to compare with

Return Value

if the two symbols are equal, this will return YES

Declared In

CWKSecuritySymbol.h