Skip to content

Potential need for update to accommodate for crypto #2

@MuneMalik

Description

@MuneMalik

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions