Jucoin network market and arbitrage analysis, jucoin market arbitrage

Source: Internet
Author: User

Jucoin network market and arbitrage analysis, jucoin market arbitrage

Obtain the quote of the RMB transaction Zone

Import urllib. requestimport jsonimport randomimport osos. system ("cls") t = str (random. random () print ("[RMB transaction price list]") response = urllib. request. urlopen ('https: // www.jubi.com/coin/allcoin? T = '+ t) page = response. read () allcoin = json. loads (page) print ("code ---------- Chinese name -------- latest price ---------- buy a price ---------- sell a price ---------- highest price ---------- lowest price ---------- transaction volume ---------- transaction amount") for k, v in allcoin. items (): print ("% s \ t % 10s \ t % 10s \ t % 10s \ t % 10s \ t % 10s \ t % 10s \ t % 10s \ t % 10 s" % (k, v [0], v [1], v [2], v [3], v [4], v [5], v [6], v [7]) # obtain the price of PEB pebsell1 = allcoin ['peb'] [3] pebprice = pebsell1

Returned data

[Price List of RMB transaction Zone] Code ---------- Chinese name -------- latest price ---------- buy a price ---------- sell a price ---------- highest price ---------- lowest price ---------- transaction volume ---------- transaction amount act Achain 3.764 3.761 3.766 4.499 251139039bcc 2.614 72055225 5085 5084.89 6666 3880 28894 144027878btm compared with the original chain 1.5468 1.5468 1.5469 1.86 1.451 73232909 120282422btk B-Token 0.89 0.89 0.9 1.25 0.85 116310042 122092812ugt UG Token 5.952 5.952 5.978 7.28 5.6 110360174hcc medical chain 17143621 0.6205 0.6205 0.623 0.78 0.6 142668505 96304312eth ethereum 2033.5 2034 2038 2145 2007 43311 90540892ans small ant shares 247 246.51 247.99 276 230 322401 82347695ico ICO coins 6.083 6.083 6.135 7.6 5.78 58174366elc election chain 8746386 0.06 0.05996 0.06 0.07088 0.0562 832763354 qtum quantum Chain 77.79 77.4 77.79 87.9 497209 40695745ltc litecoin 315 314 315 333.99 292 32942885tic titancoin 104495 9.25 9.249 9.25 11.06 33748923bts bitshares 9.1 3402383 0.87 0.867 0.869 22651097btc bitcoin 0.988 0.86 25113140 28798.99 30160 28100 677 19842799etc Ethernet classic 94.43 94.43 94.64 103.99 93.1 197175 19130271rss red shells 2.296 2.296 2.309 2.66 2.27 7587980 9.63 18756872eos EOS 9.63 9.65 10.4 9.55 1203143 12053007xas Axi currency 5.154 5.154 5.219 5.511 1948825 10257115 xsgs xueshan ancient tree 56.8 56.6 56.8 73.2001 174876 11163154xrp ripbo coin 1.0633 1.0634 1.07198 1.148 1.032 6313890 6883210dnc network coin 0.033899 0.033605 0.033897 0.040753 0.0332 193227221 7160718nxt future currency 0.699989 0.699989 0.7 0.75 0.68701 6126473vtc green coin 8585634 3.18 3.139001 3.199994 3.55 2.759 1610564 5110269zcc lucky money 0.33311 0.33311 0.33798 0.44 0.328888 15330834 5639006ifc unlimited currency 0.000594 0.000594 0.000595 0.000633 0.000576 7915413878 4749549max maximum currency 0.51 0.501 0.51 0.588 0.47 9186297 4805679 gooc Valley shell currency 0.3825 0.3825 0.3827 0.413 0.376 12018463 4744659peb puyin 0.115 0.1144 0.115 0.1244 0.112 35154267 1.3451 1.3451 4125460mcc Xingyun coin 1.3452 1.489 1.26 2949082 0.123 0.123 4042108hlb dynamic coin 0.125 0.152 0.12 28280808 0.129 20176026plc Paul coin 0.128 0.13 0.152 0.124 23758250 3232691zet Zeta coin 0.15301 0.15301 0.1557 0.176 0.15009 15979942 2561570tfc transfer currency 1.083177 1.083185 1.108 1.35 1.061 1983304 doge dog coins 2395808 0.01146 0.011411 0.011467 0.01178 0.011279 171890832 mryc mermaid coins 1984709 0.3074 0.3072 0.3114 0.33 0.30501 1950229ytc 1 Currency 6175438 0.116 0.114 0.123 0.112 15118595 0.171 1779081mtc monkey coins 0.171 0.172 0.197 0.165 9747793 0.08 0.08 1745669met meitong coins 0.081 0.088 0.08 20632181 0.184 0.183 1721389qec penguin chain 0.184 0.195 0.178 8287096 0.628 0.628 1539114pgc Park connect 0.629 0.69 0.612 2368727 152.1690vrc 7.2 7.110001 7.2 8.31 206552 0.109 0.109 1577923skt shark's letter 0.11 0.115 0.108 13423160 1.007 1.054 0.98 1498778rio coin 1 1 1415989 1.393 1.393 1.408 1.49 1444697blk black coin 1.3762 939052 1356796 game point 12.795 12.6 12.792 13.399 12.45 86126 1113842lkc lucky coin 0.159 0.157 0.159 0.167 0.157 6894103 1116108lsk LISK 14 13.81 14.03 14.6 13.8 70973 0.00697 1004731eac Earth coin 0.006982 0.007137 0.007433 0.0068 136353263 0.4015 972276wdc 0.4015 0.402995 0.425 0.40001 2230212 910300ktc Kent coins 2.74 2.664 2.73 2.99 2.653 295942 823284jbc jubaocoin 0.117 0.11656 0.117 0.137011 0.116 6724887 831032fz glacier coins 2.175549 2.080033 2.175555 2.295 2.079999 315161 692062xpm prime coin 2.13592 2.13592 2.136002 2.2397 2.1 299497 648435ppc point coins 10.607 10.639 10.976 11.53 10.35 59985 652186

 

Obtain the quote of the puyin trading zone

#3. puyin transaction price list print ("\ n [puyin transaction price list]") req = urllib. request. Request ('https: // www.jubi.com/coin/peballcoin? T = '+ t) req. add_header ('Accept ', 'application/json, text/javascript, */*; q = 0.01') req. add_header ('Referer', 'https: // www.jubi.com/') # req. add_header ('x-Requested-with', 'xmlhttprequest ') req. add_header ('user-agent', 'mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/100 ') response = urllib. request. urlopen (req) page = response. read () peballcoin = json. loads (page) print ("code ---------- Chinese name -------- latest price ---------- buy a price ---------- sell a price ---------- highest price ---------- lowest price ---------- transaction volume ----- transaction amount [PEB] ----- transaction amount [RMB]") for k, v in peballcoin. items (): print ("% s \ t % 10s \ t % 10s \ t % 10s \ t % 10s \ t % 10s \ t % 10s \ t % 10s \ t % 10s \ t % 10s \ t % 10 s "% (k, v [0], round (v [1], 4), round (v [2], 4), round (v [3], 4 ), round (v [4], 4), round (v [5], 4), round (v [6], 4), round (v [7], 2 ), round (v [7] * pebprice, 2 )))

Returned data

[Price list] Code ---------- Chinese name -------- latest price ---------- buy a price ---------- sell a price ---------- highest price ---------- lowest price ---------- transaction volume ----- transaction amount [PEB] ----- transaction amount [RMB] ans small ant shares 1900.0001 1991.1113 2400 2400 1900.0001 366 84331.68ltc litecoin 733319 2505.31 2505.3509 2900 2880 2305.7028 239 64654.15eth ethereum 562210 17019 16001.0001 19919.0 19990.0 69492.54btc bitcoin 17019 604283 289999.999 231264.0057 289999.99 2 289999.999 60482.41xrp ripbo coin 231300.0166 8.5326 12.333 11 8.2103 45380 430045 49455.18 doge dog coins 0.0956 0.0957 0.1079 0.1069 0.092 3857687 394997 xsgs Snow tree 45424.65 470 470.034 596.9872 633.9999 470 266 142638 12.0085 16403.37blk black coins 11.0331 14.399 12.4 10.3857 6765 83673 9622.4jbc jubao coin 1.359 0.9824 1.35 1.359 0.992 54914 55734 6409.41qec penguin chain 1.535 1.5351 1.819 1.828 1.5214 41824 67476 7759.74 nhgh ninghong orange red 41.5088 41.5088 46.0 877 46 41 37438 5.37etc ethereclassic 900 755.4067 899 900 711.11 29403 3381.35xas ashboard 41.3211 41.4111 47.9999 47.339 41.3211 805 34672 3987.28lsk LISK 148.98 120 148.89 148.98 148.98 1489 90.1258 171.24ppc spot price 85.0557 107.9999 90.1258 90.1258 404 4 46.46

 

Computing arbitrage

#3. calculate the arbitrage space print ("\ n [arbitrage space]") print ("code ----------- Chinese name ----- general bank sells one -------- sells one coin ------ buy one RMB ----------- profit ratio") for k, v in peballcoin. items (): if k in allcoin: pebcoin = peballcoin [k] [3] # PEB sells peb2rmb = pebsell * pebprice # PEB sells one coin rmbbuy = allcoin [k] [2] # Buy one profit = round ((rmbbuy-peb2rmb) /peb2rmb, 2) print ("% s \ t % 10s \ t % 10s \ t % 10s \ t % 10s \ t % 10.2f" % (k, v [0], round (pebround, 4), round (peb2rmb, 4), rmbbuy, profit) print ("\ n [reverse arbitrage ]") print ("code ----------- Chinese name --- RMB sell one ------- sell one turn PEB -------- buy one puyin ---------- profit ratio") for k, v in peballcoin. items (): if k in allcoin: rmbloud = allcoin [k] [3] # RMB for one rmb2peb = rmbloud/pebprice # RMB for one-to-one PEB pebbuy = peballcoin [k] [2] # PEB for one print ("% s \ t % 10s \ t % 10s \ t % 10s \ t % 10s \ t % 10.2f "% (k, v [0], round (rmbloud, 4), round (rmb2peb, 4), round (pebbuy, 4), round (pebbuy-rmb2peb)/rmb2peb, 2 )))


Returned results

[Arbitrage space] Code ----------- Chinese name ----- general bank sells one -------- sells one coin ------ RMB buys one ----------- profit ratio ans Xiaoyi shares 2400 276.0 246.51-0.11ltc litecoin 2900 333.5-0.06eth ethereum 314 2290.685 2034-0.11btc bitcoin 289999.99 33349.9989 28381-0.15xrp ripbo coin 12.333 1.4183 1.0634-0.25 doge dog coin 0.1079 0.0124 0.011411-0.08 xsgs Snow tree 596.9872 68.6535 56.6-0.18blk black coin 14.399 1.6559- 0.16jbc jubaocoin 1.35 0.1552 0.11656-0.25qec penguin chain 1.819 0.2092 0.183-0.13etc ethereclassic 899 103.385 94.43-0.09xas Axi coin 47.9999 5.52 5.154-0.07lsk LISK 148.89 17.1223-0.19ppc diancoin 13.81 107.9999 12.42 10.639 -0.14 [reverse arbitrage] Code ----------- Chinese name --- RMB for one ------- for one-to-one PEB -------- puyin for one ---------- profit ratio to ans Xiaoyi shares 247.99 2156.4348 1991.1113-0.08ltc litecoin 315 2739.1304-0.09eth fang 2038 17721.7391 16001.0001-0.10btc bitcoin 28798.99 250426.0 231264.0057-0.08xrp ripbo coin 1.072 9.3216 8.5326-0.08 doge dog coin 0.0115 0.0997 0.0957-0.04 xsgs Snow tree 56.8 493.913 470.034-0.05blk black coin 1.408 12.2435 11.0331-0.10jbc jubaocoin 0.117 1.0174 0.9824-0.03qec penguin chain 0.184 1.6 1.5351-0.04etc ethereclassic 94.64 822.9565 755.4067-0.08xas Axi coin 5.219 45.3826 41.4111-0.09lsk LISK 14.03 122.0-0.02ppc diancoin 120 95.4435 85.0557-0.11

 

All profits are negative, meaning there is no arbitrage space. Even if there is, it is also a wolf with less meat. In addition, the above does not take into account the service fee, the actual space will be lower.

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.