00 DEMO

pre demo start office with 4 workers

start

  • sever monitoring
  • worker monitoring
  • table counts
  • ccy output

Clear tables


In [1]:
import demo
import process


/Library/Python/2.7/site-packages/novaclient/v1_1/__init__.py:30: UserWarning: Module novaclient.v1_1 is deprecated (taken as a basis for novaclient.v2). The preferable way to get client class or object you can find in novaclient.client module.
  warnings.warn("Module novaclient.v1_1 is deprecated (taken as a basis for "

In [2]:
demo.clear_tables()


refresh_tables
register_price

In [ ]:

Single computer

get data (5) # usdgbp


In [7]:
demo.get_price('GBPUSD')


Out[7]:
'1.5043'

In [8]:
process.processSinglePrice()

In [6]:
demo.get_price('USDEUR')
process.processSinglePrice()

In [10]:
demo.get_price('EURGBP')
process.processSinglePrice()

In [ ]:
demo.get_prices(1)
process.processPrices(3)

limitations

Multi computer (cloud)

set workers to work


In [ ]:
while True:
    process.processSinglePrice()
    #break

In [ ]:


In [ ]:


In [ ]:


In [ ]: