publish feed price automatic(From BitSuperLab)

Started by alt, August 28, 2014, 02:18:26 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

alt

both
Quote from: monsterer on December 01, 2014, 03:12:13 PM
Quote from: alt on December 01, 2014, 02:44:22 PM
I have fixed some bug maybe cause this problem
please update to the latest

The freezing problem, or the btc38 problem?

monsterer

Quote from: alt on December 01, 2014, 02:44:22 PM
I have fixed some bug maybe cause this problem
please update to the latest

The freezing problem, or the btc38 problem?
My opinions do not represent those of metaexchange unless explicitly stated.
[url="https://metaexchange.info"]https://metaexchange.info[/url] | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

alt

I have fixed some bug maybe cause this problem
please update to the latest
Quote from: monsterer on December 01, 2014, 09:33:51 AM
I can't find the version number anywhere, but the last tty output is this:

   ASSET  RATE(CNY)    CURRENT_FEED   CURRENT_PRICE    MEDIAN_PRICE    LAST_PUBLISH   CHANGE
-----------------------------------------------------------------------------------------------
    *AUD      5.227               0         0.01982         0.01983         0.01983   -0.01%
    *BTC   2316.707       4.457e-05       4.471e-05       4.473e-05       4.481e-05   -0.18%
    *CAD      5.377               0         0.01926         0.01926         0.01928   -0.07%
    *CHF      6.363               0         0.01628         0.01628         0.01629   -0.03%
    *CNY      1.000          0.1025          0.1036          0.1036          0.1036   -0.01%
    *EUR      7.646         0.01342         0.01355         0.01355         0.01355   -0.03%
    *GBP      9.605               0         0.01078         0.01079         0.01079   -0.05%
   *GOLD   7171.012       1.415e-05       1.444e-05       1.445e-05       1.445e-05   -0.02%
    *HKD      0.792               0          0.1307          0.1308          0.1308   -0.01%
    *JPY      0.052               0               2           2.003               2    0.17%
    *KRW      0.005               0           18.83           18.83           18.84   -0.01%
    *MXN      0.442               0          0.2346          0.2345          0.2344    0.02%
    *NZD      4.820               0         0.02149          0.0215         0.02149    0.04%
    *RUB      0.122               0          0.8476          0.8443           0.843    0.15%
    *SEK      0.824               0          0.1258          0.1257          0.1257    0.01%
    *SGD      4.713               0         0.02198         0.02198         0.02199   -0.03%
*SILVER     95.169               0        0.001088        0.001089        0.001089   -0.02%
    *TRY      2.768               0         0.03743         0.03744         0.03744    0.00%
    *USD      6.144          0.0167         0.01686         0.01686         0.01686   -0.02%
===============================================================================================


and the last log output is this:

2014-11-28 20:17:59,586[INFO]: btc38: price is 0.00000, depth is 0.000, scale is 1.000
2014-11-28 20:17:59,586[INFO]: bter: price is 0.10240, depth is 71027.086, scale is 1.000
2014-11-28 20:17:59,586[INFO]: bts_cny: price is 0.10353, depth is 391458.503, scale is 1.000
2014-11-28 20:17:59,587[INFO]: bts_usd: price is 0.10396, depth is 381613.131, scale is 1.000
2014-11-28 20:17:59,587[INFO]: yunbi: price is 0.10300, depth is 69401.710, scale is 1.000
2014-11-28 20:17:59,587[INFO]: average price is 0.10358
2014-11-28 20:19:04,619[ERROR]: Error fetching results from btc38!
2014-11-28 20:19:04,620[ERROR]: Error get price from btc38!


So it clearly stopped working on the 28th, but like I say the script is still running (I've screened it, so I can see there is no command prompt)

monsterer

Quote from: emski on December 01, 2014, 12:12:05 PM
That error shouldn't prevent the script from finishing. I've seen similar behavior but I'm not yet sure why it happens. I'll investigate further.

When I ctrl-d'ed the process it said it was stuck in a sleep() call, if that's any help?
My opinions do not represent those of metaexchange unless explicitly stated.
[url="https://metaexchange.info"]https://metaexchange.info[/url] | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Riverhead

Mine froze too. I just restarted them and they are fine again.

Sent from my Timex Sinclair.


emski

Quote from: monsterer on December 01, 2014, 12:07:56 PM
Quote from: svk on December 01, 2014, 10:55:34 AM
btc38 changed their API from BTSX to BTS, is your script updated for that?

Evidently not. But there are loads of instances of that particular error in the log, so not sure why it just stopped working now.

That error shouldn't prevent the script from finishing. I've seen similar behavior but I'm not yet sure why it happens. I'll investigate further.
[url="https://bitsharestalk.org/index.php/topic,9857.0.html"]https://bitsharestalk.org/index.php/topic,9857.0.html[/url]

monsterer

Quote from: svk on December 01, 2014, 10:55:34 AM
btc38 changed their API from BTSX to BTS, is your script updated for that?

Evidently not. But there are loads of instances of that particular error in the log, so not sure why it just stopped working now.
My opinions do not represent those of metaexchange unless explicitly stated.
[url="https://metaexchange.info"]https://metaexchange.info[/url] | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

svk

Quote from: monsterer on December 01, 2014, 09:33:51 AM
I can't find the version number anywhere, but the last tty output is this:

   ASSET  RATE(CNY)    CURRENT_FEED   CURRENT_PRICE    MEDIAN_PRICE    LAST_PUBLISH   CHANGE
-----------------------------------------------------------------------------------------------
    *AUD      5.227               0         0.01982         0.01983         0.01983   -0.01%
    *BTC   2316.707       4.457e-05       4.471e-05       4.473e-05       4.481e-05   -0.18%
    *CAD      5.377               0         0.01926         0.01926         0.01928   -0.07%
    *CHF      6.363               0         0.01628         0.01628         0.01629   -0.03%
    *CNY      1.000          0.1025          0.1036          0.1036          0.1036   -0.01%
    *EUR      7.646         0.01342         0.01355         0.01355         0.01355   -0.03%
    *GBP      9.605               0         0.01078         0.01079         0.01079   -0.05%
   *GOLD   7171.012       1.415e-05       1.444e-05       1.445e-05       1.445e-05   -0.02%
    *HKD      0.792               0          0.1307          0.1308          0.1308   -0.01%
    *JPY      0.052               0               2           2.003               2    0.17%
    *KRW      0.005               0           18.83           18.83           18.84   -0.01%
    *MXN      0.442               0          0.2346          0.2345          0.2344    0.02%
    *NZD      4.820               0         0.02149          0.0215         0.02149    0.04%
    *RUB      0.122               0          0.8476          0.8443           0.843    0.15%
    *SEK      0.824               0          0.1258          0.1257          0.1257    0.01%
    *SGD      4.713               0         0.02198         0.02198         0.02199   -0.03%
*SILVER     95.169               0        0.001088        0.001089        0.001089   -0.02%
    *TRY      2.768               0         0.03743         0.03744         0.03744    0.00%
    *USD      6.144          0.0167         0.01686         0.01686         0.01686   -0.02%
===============================================================================================


and the last log output is this:

2014-11-28 20:17:59,586[INFO]: btc38: price is 0.00000, depth is 0.000, scale is 1.000
2014-11-28 20:17:59,586[INFO]: bter: price is 0.10240, depth is 71027.086, scale is 1.000
2014-11-28 20:17:59,586[INFO]: bts_cny: price is 0.10353, depth is 391458.503, scale is 1.000
2014-11-28 20:17:59,587[INFO]: bts_usd: price is 0.10396, depth is 381613.131, scale is 1.000
2014-11-28 20:17:59,587[INFO]: yunbi: price is 0.10300, depth is 69401.710, scale is 1.000
2014-11-28 20:17:59,587[INFO]: average price is 0.10358
2014-11-28 20:19:04,619[ERROR]: Error fetching results from btc38!
2014-11-28 20:19:04,620[ERROR]: Error get price from btc38!


So it clearly stopped working on the 28th, but like I say the script is still running (I've screened it, so I can see there is no command prompt)

btc38 changed their API from BTSX to BTS, is your script updated for that?
Worker: dev.bitsharesblocks

monsterer

I can't find the version number anywhere, but the last tty output is this:

   ASSET  RATE(CNY)    CURRENT_FEED   CURRENT_PRICE    MEDIAN_PRICE    LAST_PUBLISH   CHANGE
-----------------------------------------------------------------------------------------------
    *AUD      5.227               0         0.01982         0.01983         0.01983   -0.01%
    *BTC   2316.707       4.457e-05       4.471e-05       4.473e-05       4.481e-05   -0.18%
    *CAD      5.377               0         0.01926         0.01926         0.01928   -0.07%
    *CHF      6.363               0         0.01628         0.01628         0.01629   -0.03%
    *CNY      1.000          0.1025          0.1036          0.1036          0.1036   -0.01%
    *EUR      7.646         0.01342         0.01355         0.01355         0.01355   -0.03%
    *GBP      9.605               0         0.01078         0.01079         0.01079   -0.05%
   *GOLD   7171.012       1.415e-05       1.444e-05       1.445e-05       1.445e-05   -0.02%
    *HKD      0.792               0          0.1307          0.1308          0.1308   -0.01%
    *JPY      0.052               0               2           2.003               2    0.17%
    *KRW      0.005               0           18.83           18.83           18.84   -0.01%
    *MXN      0.442               0          0.2346          0.2345          0.2344    0.02%
    *NZD      4.820               0         0.02149          0.0215         0.02149    0.04%
    *RUB      0.122               0          0.8476          0.8443           0.843    0.15%
    *SEK      0.824               0          0.1258          0.1257          0.1257    0.01%
    *SGD      4.713               0         0.02198         0.02198         0.02199   -0.03%
*SILVER     95.169               0        0.001088        0.001089        0.001089   -0.02%
    *TRY      2.768               0         0.03743         0.03744         0.03744    0.00%
    *USD      6.144          0.0167         0.01686         0.01686         0.01686   -0.02%
===============================================================================================


and the last log output is this:

2014-11-28 20:17:59,586[INFO]: btc38: price is 0.00000, depth is 0.000, scale is 1.000
2014-11-28 20:17:59,586[INFO]: bter: price is 0.10240, depth is 71027.086, scale is 1.000
2014-11-28 20:17:59,586[INFO]: bts_cny: price is 0.10353, depth is 391458.503, scale is 1.000
2014-11-28 20:17:59,587[INFO]: bts_usd: price is 0.10396, depth is 381613.131, scale is 1.000
2014-11-28 20:17:59,587[INFO]: yunbi: price is 0.10300, depth is 69401.710, scale is 1.000
2014-11-28 20:17:59,587[INFO]: average price is 0.10358
2014-11-28 20:19:04,619[ERROR]: Error fetching results from btc38!
2014-11-28 20:19:04,620[ERROR]: Error get price from btc38!


So it clearly stopped working on the 28th, but like I say the script is still running (I've screened it, so I can see there is no command prompt)
My opinions do not represent those of metaexchange unless explicitly stated.
[url="https://metaexchange.info"]https://metaexchange.info[/url] | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

emski

Quote from: monsterer on December 01, 2014, 09:12:40 AM
My feeds quantity has suddenly dropped to zero on bitshareblocks.com, but the script is still running - any idea what could have happened?

Provide script version, commandline arguments and output.
[url="https://bitsharestalk.org/index.php/topic,9857.0.html"]https://bitsharestalk.org/index.php/topic,9857.0.html[/url]

monsterer

My feeds quantity has suddenly dropped to zero on bitshareblocks.com, but the script is still running - any idea what could have happened?
My opinions do not represent those of metaexchange unless explicitly stated.
[url="https://metaexchange.info"]https://metaexchange.info[/url] | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Xeldal

Quote from: monsterer on November 27, 2014, 07:19:34 PM
Do I need to configure anything special to get this script to update faster than once per day?

config.json has update frequency set to 23.5 hours by default, you can change to anything you like.

monsterer

Do I need to configure anything special to get this script to update faster than once per day?
My opinions do not represent those of metaexchange unless explicitly stated.
[url="https://metaexchange.info"]https://metaexchange.info[/url] | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

alt

Quote from: monsterer on November 27, 2014, 02:24:55 PM
module 'statistics' was new for python 3.4, so this script requires min python 3.4.  I had 3.3.

OP Can you update your requirements list to make this more obvious :)
thank you , I'll add to the document :)

monsterer

module 'statistics' was new for python 3.4, so this script requires min python 3.4.  I had 3.3.

OP Can you update your requirements list to make this more obvious :)
My opinions do not represent those of metaexchange unless explicitly stated.
[url="https://metaexchange.info"]https://metaexchange.info[/url] | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads