PyWaves / WavesDataFeed

Market data feed and WebSocket proxy for the Waves platorm
4 stars 18 forks source link

wdf-1.5.0.jar cann't load the trading history and candles. #5

Open username1565 opened 4 years ago

username1565 commented 4 years ago
11:10:27.623 [wavesdatafeed-akka.actor.default-dispatcher-6] INFO com.wavesplatf
orm.datafeed.Synchronizer - Parsing block 613276
11:10:27.637 [wavesdatafeed-akka.actor.default-dispatcher-9] ERROR akka.actor.On
eForOneStrategy - JsResultException(errors:List((,List(JsonValidationError(List(
error.expected.long),WrappedArray())))))
play.api.libs.json.JsResultException: JsResultException(errors:List((,List(JsonV
alidationError(List(error.expected.long),WrappedArray())))))
        at play.api.libs.json.JsReadable.$anonfun$as$2(JsReadable.scala:24)
        at play.api.libs.json.JsError.fold(JsResult.scala:55)
        at play.api.libs.json.JsReadable.as(JsReadable.scala:23)
        at play.api.libs.json.JsReadable.as$(JsReadable.scala:22)
        at play.api.libs.json.JsDefined.as(JsLookup.scala:148)
        at com.wavesplatform.datafeed.model.AssetPair.$anonfun$getAssetSupply$1(
AssetPair.scala:59)
        at com.wavesplatform.datafeed.model.AssetPair.$anonfun$getAssetSupply$1$
adapted(AssetPair.scala:58)
        at scala.collection.immutable.List.foreach(List.scala:378)
        at com.wavesplatform.datafeed.model.AssetPair.getAssetSupply(AssetPair.s
cala:58)
        at com.wavesplatform.datafeed.model.AssetPair.(AssetPair.scala:66)

        at com.wavesplatform.datafeed.model.TimeSeries.addTradeToPair(TimeSeries
.scala:31)
        at com.wavesplatform.datafeed.Synchronizer.$anonfun$syncBlocks$4(Synchro
nizer.scala:138)
        at com.wavesplatform.datafeed.Synchronizer.$anonfun$syncBlocks$4$adapted
(Synchronizer.scala:129)
        at scala.collection.immutable.List.foreach(List.scala:378)
        at com.wavesplatform.datafeed.Synchronizer.$anonfun$syncBlocks$1(Synchro
nizer.scala:129)
        at scala.runtime.java8.JFunction1$mcVI$sp.apply(JFunction1$mcVI$sp.java:
12)
        at scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala
:234)
        at scala.collection.immutable.Range.foreach(Range.scala:156)
        at scala.collection.TraversableLike.map(TraversableLike.scala:234)
        at scala.collection.TraversableLike.map$(TraversableLike.scala:227)
        at scala.collection.AbstractTraversable.map(Traversable.scala:104)
        at com.wavesplatform.datafeed.Synchronizer.com$wavesplatform$datafeed$Sy
nchronizer$$syncBlocks(Synchronizer.scala:123)
        at com.wavesplatform.datafeed.Synchronizer$$anonfun$receive$1.applyOrEls
e(Synchronizer.scala:152)
        at akka.actor.Actor.aroundReceive(Actor.scala:497)
        at akka.actor.Actor.aroundReceive$(Actor.scala:495)
        at com.wavesplatform.datafeed.Synchronizer.aroundReceive(Synchronizer.sc
ala:18)
        at akka.actor.ActorCell.receiveMessage(ActorCell.scala:526)
        at akka.actor.ActorCell.invoke(ActorCell.scala:495)
        at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:257)
        at akka.dispatch.Mailbox.run(Mailbox.scala:224)
        at akka.dispatch.Mailbox.exec(Mailbox.scala:234)
        at java.util.concurrent.ForkJoinTask.doExec(Unknown Source)
        at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(Unknown Source)
        at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)
        at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)
11:10:27.822 [wavesdatafeed-akka.actor.default-dispatcher-9] INFO com.wavesplatf
orm.datafeed.Synchronizer - Parsing block 613276
...etc

on the node v1.0.2 with synchronized blockchain, I see many requests:

2020-04-09 11:10:44,745 INFO  [ctor.default-dispatcher-5] c.w.a.h.CompositeHttpS
ervice - HTTP 200 OK from GET http://127.0.0.1:6869/blocks/at/613276
2020-04-09 11:10:44,747 INFO  [ctor.default-dispatcher-5] c.w.a.h.CompositeHttpS
ervice - HTTP 200 OK from GET http://127.0.0.1:6869/transactions/info/F6s3Uhpm4c
b7zPqt3neUx8kpWyZxx8B4sLK6Z1W4S4CD
2020-04-09 11:10:44,748 WARN  [ctor.default-dispatcher-5] c.w.a.h.CompositeHttpS
ervice - HTTP 404 Not Found from GET http://127.0.0.1:6869/transactions/info/WAV
ES
2020-04-09 11:10:44,749 INFO  [ctor.default-dispatcher-5] c.w.a.h.CompositeHttpS
ervice - HTTP 200 OK from GET http://127.0.0.1:6869/transactions/info/F6s3Uhpm4c
b7zPqt3neUx8kpWyZxx8B4sLK6Z1W4S4CD
2020-04-09 11:10:44,757 INFO  [ctor.default-dispatcher-4] c.w.a.h.CompositeHttpS
ervice - HTTP 200 OK from GET http://127.0.0.1:6869/assets/balance/3P5yhciJb6DBa
x4JirviviKWRUsbU4zjL2s
2020-04-09 11:10:44,760 INFO  [ctor.default-dispatcher-4] c.w.a.h.CompositeHttpS
ervice - HTTP 200 OK from GET http://127.0.0.1:6869/blocks/last
2020-04-09 11:10:44,762 INFO  [ctor.default-dispatcher-5] c.w.a.h.CompositeHttpS
ervice - HTTP 200 OK from GET http://127.0.0.1:6869/blocks/headers/last
2020-04-09 11:10:44,763 INFO  [ctor.default-dispatcher-5] c.w.a.h.CompositeHttpS
ervice - HTTP 200 OK from GET http://127.0.0.1:6869/blocks/at/613276
2020-04-09 11:10:44,765 INFO  [ctor.default-dispatcher-4] c.w.a.h.CompositeHttpS
ervice - HTTP 200 OK from GET http://127.0.0.1:6869/transactions/info/F6s3Uhpm4c
b7zPqt3neUx8kpWyZxx8B4sLK6Z1W4S4CD
2020-04-09 11:10:44,766 WARN  [ctor.default-dispatcher-4] c.w.a.h.CompositeHttpS
ervice - HTTP 404 Not Found from GET http://127.0.0.1:6869/transactions/info/WAV
ES
2020-04-09 11:10:44,766 INFO  [ctor.default-dispatcher-4] c.w.a.h.CompositeHttpS
ervice - HTTP 200 OK from GET http://127.0.0.1:6869/transactions/info/F6s3Uhpm4c
b7zPqt3neUx8kpWyZxx8B4sLK6Z1W4S4CD
2020-04-09 11:10:44,774 INFO  [ctor.default-dispatcher-4] c.w.a.h.CompositeHttpS
ervice - HTTP 200 OK from GET http://127.0.0.1:6869/assets/balance/3P5yhciJb6DBa
x4JirviviKWRUsbU4zjL2s
2020-04-09 11:10:44,777 INFO  [ctor.default-dispatcher-5] c.w.a.h.CompositeHttpS
ervice - HTTP 200 OK from GET http://127.0.0.1:6869/blocks/last
...etc...

Is there any already synchronized datafeed.dat, like blockchain files: http://blockchain.wavesnodes.com/ or/and can I specify the last block, to don't parse all blocks from this invalid 613276-th block up to 2,000,000-th block, and higher, just to loading this non-sence list of trades, and non actual candles? Can you make any snapshoots, to don't parse each EACH block???