Beispiel #1
0
 def buy(self, base, amount, alternate, price):
     return secure_request(self, "create_order", \
             ("ordertype", "amount", "currency1", "unitprice", "currency2"), \
             ("BUY", amount, base, price, alternate))
Beispiel #2
0
 def orders(self, otype):
     return secure_request(self, "orders", (), (), {'otype': otype})
Beispiel #3
0
 def delete_order(self, orderid):
     return secure_request(self, "delete_order", ("orderid", ), (orderid, ))
Beispiel #4
0
 def balances(self):
     return secure_request(self, "balances")
Beispiel #5
0
 def order(self, orderid, otype):
     return secure_request(self, "order", ("orderid", ), (orderid, ),
                           {'otype': otype})
Beispiel #6
0
 def orders(self):
     return secure_request(self, "orders")
Beispiel #7
0
 def balance(self, currency):
     return secure_request(self, "balance", ("currency", ), (currency, ))
Beispiel #8
0
 def delete_order(self, orderid):
     return secure_request(self, "delete_order", ("orderid",), (orderid,))
Beispiel #9
0
 def sell(self, base, amount, alternate, price):
     return secure_request(self, "create_order", \
             ("ordertype", "amount", "currency1", "unitprice", "currency2"), \
             ("SELL", amount, base, price, alternate))
Beispiel #10
0
 def order(self, orderid, otype):
     return secure_request(self, "order", ("orderid",), (orderid,),
                           {'otype': otype})
Beispiel #11
0
 def orders(self, otype):
     return secure_request(self, "orders", (), (),
                           {'otype': otype})
Beispiel #12
0
 def balances(self):
      return secure_request(self, "balances")
Beispiel #13
0
 def balance(self, currency):
     return secure_request(self, "balance", ("currency",), (currency,))
 def quick_buy(self, base, amount, alternate, price):
     return secure_request(self, "create_released_order", \
             ("ordertype", "amount", "currency1", "unitprice", "currency2"), \
             ("BUY", amount, base, price, alternate))
Beispiel #15
0
 def release_order(self, orderid):
     return secure_request(self, "release_order", ("orderid", ),
                           (orderid, ))
Beispiel #16
0
 def release_order(self, orderid):
     return secure_request(self, "release_order", ("orderid",), (orderid,))
Beispiel #17
0
 def quick_sell(self, base, amount, alternate, price):
     return secure_request(self, "create_released_order", \
             ("ordertype", "amount", "currency1", "unitprice", "currency2"), \
             ("SELL", amount, base, price, alternate))
Beispiel #18
0
 def order(self, orderid):
     return secure_request(self, "order", ("orderid",), (orderid,))