Giter Club home page Giter Club logo

Comments (7)

Sm4rtK1dz avatar Sm4rtK1dz commented on June 7, 2024 1

Nice!! thank you for this awesome wrapper, are changes already available on Composer?

from coinbase-pro-sdk.

MockingMagician avatar MockingMagician commented on June 7, 2024 1

@Sm4rtK1dz yes it is 😃 last release v0.9.4

from coinbase-pro-sdk.

Sm4rtK1dz avatar Sm4rtK1dz commented on June 7, 2024

I've found the bug that was making this happen, the problem seems to be that the $level variable was orphan and not used within the function.

I've fixed it and made a pull request to your repository.

from coinbase-pro-sdk.

MockingMagician avatar MockingMagician commented on June 7, 2024

Thanks for reporting, I will close after merge of #24

from coinbase-pro-sdk.

MockingMagician avatar MockingMagician commented on June 7, 2024

Done 🎉 #24 Commit b2f3a05

Thanks to @Sm4rtK1dz

from coinbase-pro-sdk.

zenichanin avatar zenichanin commented on June 7, 2024

Hey @Sm4rtK1dz and @MockingMagician, I am also having an issue with private properties. I'm simply trying to get historical data using getHistoricRates but all the properties (startTime, lowestPrice, highestPrice, etc.) are private. How can I use/save these values from the object? Kinda odd that they'd be private properties as is since it's simply historical data?

EDIT: After playing around with it a bit more, I see that I can get back a usable object by calling getCandles method on the results.

EDIT 2: Well I spoke too soon. Even though getCandles returns a seemingly normal object, each of the properties in it are also private and thus not accessible.

EDIT 3: My apologies for endless chain of edits, but I think I've figured it out. Essentially need to access each individual property using the getter methods such as $historic->getCandles()[0]->getLowestPrice()

from coinbase-pro-sdk.

MockingMagician avatar MockingMagician commented on June 7, 2024

@zenichanin yes it is the way you will have to do it.

$historic->getCandles() is an iterable so you can access all candles if you iterate over it.

By the way, do not hesitate to launch a new issue if you have any question. Talking into a closed one might not be seen.

from coinbase-pro-sdk.

Related Issues (13)

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.