uniVocity / univocity-trader

open-source trading framework for java, supports backtesting and live trading with exchanges
578 stars 140 forks source link

TD Ameritrade interface #112

Open jecker7 opened 3 years ago

jecker7 commented 3 years ago

Hi Jeronimo - I'm interested in adding a TD Ameritrade interface to the project for personal use. The TDA API uses JSON schemas to define requests for orders, price history, etc. so for implementation I was thinking of storing the schemas in the project, and then using a serialization library to generate classes as needed.

Any thoughts on this approach? And do you have a preferred JSON serialization library?

jbax commented 3 years ago

That's great, I'm familiar with Jackson for serializing JSON

You can even generate the classes by copying and pasting the JSON here:

http://www.jsonschema2pojo.org/

Select "Source type = JSON", "Annotation style = Jackson 2.x" and you'll probably get something very close to what you'd need to make it work

Thank you for your contribution!

On Fri, 23 Oct 2020 at 07:45, jecker7 notifications@github.com wrote:

Hi Jeronimo - I'm interested in adding a TD Ameritrade interface to the project for personal use. The TDA API uses JSON schemas https://developer.tdameritrade.com/content/place-order-samples to define requests for orders, price history, etc. so for implementation I was thinking of storing the schemas in the project, and then using a serialization library to generate classes as needed.

Any thoughts on this approach? And do you have a preferred JSON serialization library?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/uniVocity/univocity-trader/issues/112, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABWFQPRUUB74C5UX4K664ITSMCOGTANCNFSM4S3XQ2RA .