Git Product home page Git Product logo

Comments (7)

Tyruiop avatar Tyruiop commented on July 1, 2024 1

Done! You can try curl -X GET https://api.syncretism.io/ops/chain/PAYO/1626393600 to experiment with it, and thanks for the feature request!

from syncretism.

Tyruiop avatar Tyruiop commented on July 1, 2024

I implemented the following API call
curl -X GET https://api.syncretism.io/ops/expirations/AAPL

I think that combined with the ladder call (e.g. curl -X GET https://api.syncretism.io/ops/ladder/PAYO/C/1626393600) it should allow you to do what you want, waiting for your reply to close the issue 🙏

from syncretism.

jmaslek avatar jmaslek commented on July 1, 2024

So having the expirations is awesome! Is it possible to do something that could be like (that lists all possible contracts):

curl -X GET https://api.syncretism.io/ops/contracts/{ticker}/{timestamp}

This would avoid having to loop through each expiration to get the ladder -> contractSymbol

from syncretism.

Tyruiop avatar Tyruiop commented on July 1, 2024

Isn't this equivalent to doing
curl -X GET https://api.syncretism.io/ops/ladder/PAYO/C/1626393600
followed by curl -X GET https://api.syncretism.io/ops/ladder/PAYO/P/1626393600

the idea would be to do both in one request and to only return the contract symbols ?

from syncretism.

jmaslek avatar jmaslek commented on July 1, 2024

Pretty much. I am thinking the equivalent of the finance: Ticker("AAPL").option_chains(date).calls["contractSymbol"] merged with Ticker("AAPL").option_chains(date).puts["contractSymbol"] which returns the following:
Screen Shot 2021-07-29 at 3 55 22 PM

I am not sure exactly how the API's are done, but I would imagine a json response like {'call': call_chain_ids , 'puts': call_chain_ids}.

That may not be super clear or not super helpful to have for you.

from syncretism.

jmaslek avatar jmaslek commented on July 1, 2024

Awesome thanks! And what is the time stamp, I presume UNIX seconds?

from syncretism.

Tyruiop avatar Tyruiop commented on July 1, 2024

Yes, and even more specifically, it needs to be one of the timestamps provided by curl -X GET https://api.syncretism.io/ops/expirations/PAYO

from syncretism.

Related Issues (20)

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.