Comments (7)
Nice!! thank you for this awesome wrapper, are changes already available on Composer?
from coinbase-pro-sdk.
@Sm4rtK1dz yes it is
from coinbase-pro-sdk.
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.
Thanks for reporting, I will close after merge of #24
from coinbase-pro-sdk.
Thanks to @Sm4rtK1dz
from coinbase-pro-sdk.
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.
@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)
- [Question] What about websockets to get real-time market data? HOT 3
- Change how the API responses to the server? HOT 4
- I cannot place a limit order HOT 13
- getCurrencies() is returning an object HOT 2
- Need better install instructions. HOT 7
- Support Symfony 5.x HOT 2
- OrderData.php post_only must be of the type bool, null given HOT 4
- Unable to get currencies from API HOT 2
- Error while calling it from queue HOT 2
- local.ERROR: NotFound HOT 7
- MockingMagician\CoinbaseProSdk\Functional\Error\ApiError cURL error 3: (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for /products HOT 1
- Products Api Not working its shows error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coinbase-pro-sdk.