Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Potential need for update to accommodate for crypto #2

Open
MuneMalik opened this issue Apr 18, 2022 · 0 comments
Open

Potential need for update to accommodate for crypto #2

MuneMalik opened this issue Apr 18, 2022 · 0 comments

Comments

@MuneMalik
Copy link

MuneMalik commented Apr 18, 2022

I've been hacking away using the package in an application I'm creating, and the api requests for stocks seems to be working fine. The issue I'm having is with crypto. I know that the requests accommodate for crypto, but I don't think the responses do. Unless, I'm doing something completely wrong.

I've attached some code here to show you what I'm trying along with a screenshot of the error popping up.

    polygon.tickers(sort: .ticker, order: nil, type: nil, market: .Crypto, locale: nil, ticker: "X:ETHUSD", limit: 50, active: true) { (result:TickersQueryResponse?, err) in
        // check if we got any errors
        if let err = err {
            print(err)
        } else {
            print(result)
            print(result?.results)
        }
    }

Screen Shot 2022-04-18 at 1 58 56 PM

I'd love to help out with this if thats something I can do. If I'm on the right track with the issue, then I could go ahead and get started on working on it. I just wanted to know if the direction I'm going in is correct!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant