Package com.studerw.tda.parse
Class TdaJsonParser
java.lang.Object
com.studerw.tda.parse.TdaJsonParser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription
-
Constructor Details
-
TdaJsonParser
public TdaJsonParser()
-
-
Method Details
-
parseQuotes
- Parameters:
in
- inputstream of JSON from rest call to TDA. The stream will be closed upon return.- Returns:
- list of objects that extend Quote.
-
parsePriceHistory
- Parameters:
in
-InputStream
of JSON from TDA; the stream will be closed upon return.- Returns:
- PriceHistory
-
parseAccount
- Parameters:
in
-InputStream
of JSON from TDA; the stream will be closed upon return.- Returns:
- SecuritiesAccount
-
parseAccounts
- Parameters:
in
-InputStream
of JSON from TDA; the stream will be closed upon return.- Returns:
- List of SecuritiesAccounts
-
parseOrder
-
parseOrders
-
parseInstrumentArraySingle
- Parameters:
in
- of json that is either an array of instruments or a map keyed by symbol- Returns:
- a single parsed Instrument from the list
-
parseInstrumentMap
- Parameters:
in
- of json that is either an array of instruments or a map keyed by symbol- Returns:
- list of instruments
-
parseFullInstrumentMap
- Parameters:
in
- of json that is either an array of instruments or a map keyed by symbol- Returns:
- list of full instruments
-
parseMovers
-
parseOptionChain
-
parseTransactions
-
parseTransaction
-
parsePreferences
-
parseUserPrincipals
-
parseSubscriptionKeys
-
parseMarketHours
- Throws:
IOException
-