Comments (1)
i found the solution
long? before =null;
long? after = null;
for (int i = 1; i < 4; i++)
{
var result = client.GetCandlesticksHistory(symbolName, (OkexPeriod)interval, after , before ,limit );
if (result.Success)
{
foreach (var k in result.Data)
{
var n = new Quote()
{
Date = k.Time,
Open = k.Open,
Close = k.Close,
High = k.High,
Low = k.Low,
Volume = k.Close
};
allCandles.Add(n);
}
before = (long?)allCandles[allCandles.Count - 1].Date.ToUniversalTime().Subtract(new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc)).TotalMilliseconds;
}
}
from okex.net.
Related Issues (20)
- Can't connect to candles socket. HOT 1
- Dostum mükemmel kütüphaneler hazırlamışsın. Teşekkürler ! HOT 1
- OKX api doesnt respond account balance anymore
- Funds Transfer Error HOT 1
- SubscribeToOrderUpdates Failed to deserialize data HOT 3
- Please update CryptoExchange.Net up to version 5.3.0 HOT 1
- Please update CryptoExchange.Net up to version 5.3.0 HOT 1
- How to use stoploss and take profit? HOT 4
- Can't get list of deals sequentially
- error in calling UnitConvert HOT 1
- The parameter tag of the function PlaceOrder has been removed HOT 1
- Could you please add a new api: /api/v5/market/exchange-rate HOT 2
- Missing params in Place Order HOT 3
- Cyclic Error by WebSocket HOT 2
- Spot -> Market Emir Hatası HOT 3
- api.GetInstruments error Error setting value to 'state' HOT 2
- How can I calculate withdrawal fee automatically? HOT 4
- What password do I need to use? HOT 2
- how to create a new deposit address via api? HOT 1
- Sync with new CryptoExchange.Net v6 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 okex.net.