Thursday, October 27, 2016

Traders pay money to rent these operators

These are the graph operators. The site owner has a bunch of these snippets, on entry to his site.  The trader can rent one, run the graph with it. The general call form, which I ignore, is:
funcall(self,id,dict) 
where dict is a variable length variable dictionary.    These will be bounded operators, and have a couple of  license levels.  So if the trader thinks the market is rigged, he can get verifications for free, and also run one or more inspection scanners over the pool of trades.


# recursion control constants 
APPENDED = 0
CONTINUE = 1
BLOCK = 2
ERROR = 3
DONE = 4
# graph operators allow variable arg list
def NullFun(n,id,x=None) : # complete recursion
 n.return_val = CONTINUE
 print("Null ",n.count,id)
 return(n.return_val ) 
def JustDotsFun(n,id,x=None) : # Testing recursion
 n.return_val = BLOCK
 print("Dots ",n.count,id)
 return(n.return_val ) 
def IsEqualFun(n,id,x) : # Stop when x=y
 if  n == x['target'] : n.return_val = DONE
 if n.count  >= x['target'].count : n.result_val = BLOCK # the target is not in this block
 return(n.return_val)
def UpdateFun(n,id,x) : # Stop when x=y
 if  n == x['target'] :
  print("found ") 
  n.return_val = DONE
 else : 
  n.count = n.count + x['offset']
 return(n.return_val)

 The Matket place to buy and sell operators.

The site owner finds a great operator, verified and bonded, a tap of the screen, the owner here is going to pay big bucks to the other software geek on he other end, secure digits get passed.  Because, you see, the array is rock solid and valuable.

No comments: