Comments (10)
@markwkjr That would be fantastic.
from gdax.netcore.
Is there any progress on support for the candles end point. What's the ETA?
from gdax.netcore.
sefbkn maekwkjr I have a crude Candles endpoint working if you want it. Let me know here and I'll try to figure out how to post it.
from gdax.netcore.
That'd be great @UniversalAE
Just fork, commit, and submit a Pull Request.
May want to check out a blog, such as: https://blog.scottlowe.org/2015/01/27/using-fork-branch-git-workflow/
from gdax.netcore.
yes, I am aware of the error and have corrected this. i'm glad you are interested. I will investigate posting. Right now I have the return type as JArray. I'm just about to do the necessary parsing. I will fork when this is complete unless there is a more private way to release to you. I think my changes should go in the main body of work. I'm not interested in attribution. I have tried to add the endpoint following your style of coding. There is an additional type Candles.cs and slight changes to ProductClient.cs and OrderClient.cs. I've also overloaded the PlaceOrderAsync interface to add post_only as an option.
from gdax.netcore.
I'm done. Works great. Investigating the Pull request. Look in ProductClient.cs for recommended usage example.
from gdax.netcore.
QED
from gdax.netcore.
Dammit! I forgot one last cleanup item. The Candle granularity can be down to one second. I was testing in 1 minute intervals and had obscured the seconds in string formatting ISO 8601.
yyyy-MM-ddTHH:mm:00.00000Z should be changed to yyyy-MM-ddTHH:mm:ss.00000Z. The change should be made in ProductClient.cs .
from gdax.netcore.
One more Dammit! I had to move the line Candle c = new Candle(); inside the while loop. It was working last night the way I posted it. This morning the 200 candle list all had the same candle data for each record. Moving the class initializer inside the loop corrects the problem but I do not comprehend why it fixes it. Play with it on your end to see if you get the same results.
from gdax.netcore.
In the ProductClient.cs, I noticed the candle data was returning the same values for all items. I updated the code to new up the candle on each iteration and that fixed it. I also wanted the latest values in the front of the array so I changed the loop.
Final code looks like:
for (int i = 0; i <= x.Count - 1; i++){
c = new Candle(); //added by PMC
c.time = (long)x[i][0];
c.low = (decimal)x[i][1];
c.high = (decimal)x[i][2];
c.open = (decimal)x[i][3];
c.close = (decimal)x[i][4];
c.volume = (decimal)x[i][5];
cl.Add(c);
}
from gdax.netcore.
Related Issues (17)
- Example code HOT 1
- RealtimeClient.ParseMessage is private HOT 1
- Keep getting "user-agent header is required" message from gdax api. HOT 1
- RealTimeClient Updates HOT 2
- Nuget package
- IOrderClient Not implementing anything
- IRealtimeClient Does Not Implement RealTimeClient
- var response = await this.GetResponseAsync<ProductTicker>
- ComputeSignature localisation problem
- when i place order on sandbox - it gives error "Missing product_id"
- Websocket HOT 1
- RequestAuthenticator HOT 2
- Looks like there is an error in RequestAuthenticator -> GetAuthenticationToken parameter order HOT 1
- ClientWebSocket truncates large messages. HOT 3
- await keyword in example is throwing an error HOT 1
- accountClient requests hang HOT 3
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 gdax.netcore.