Coder Social home page Coder Social logo

sleet's Introduction

sleet

Sleet is a high performance kotlin client for retrieving free live quotes and options data from TD Ameritrade. It was built in mind for high frequency trading (either generating alerts or placing orders) and therefore optimized in terms of memory consumption and overall request speed from the API. Because it is written in Kotlin, this framework is fully interopable with Java.

Option chain calls can be quite large, (think getting 100 OTM and ITM strikes for every expiration date for a single ticker) and can take a few seconds to get using the naive implementation of a synchronous HTTP call. Sleet can retrieve this data by breaking down the API calls into async batches running in parallel (abstracted away from caller). If there is a need to retrieve option prices for any sort of strategy even at a sub second interval, doing this will reduce the API response time to half or even quarter of what it was, into the millisecond range. Most often, the over-the-wire time is the bottleneck, and should be reduced as much as possible.

sleet-api-service contains the interface to the TD Ameritrade API. A client can call the methods in this package to query the endpoint over REST for option data.

In order to use this API client, you must first have an API key. This requires both an account with the TDAmeritrade, and an account setup on the developer page. Once you have the accounts setup, you can create an API key, and pass it into the service classes.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.