Author

Topic: HFT scripts on the kraken API. (Read 137 times)

newbie
Activity: 7
Merit: 0
July 16, 2019, 10:52:34 AM
#1

Gains depend with invested volume.
Someday there are more than 10 tx. Some other, the program places sell price upper the rate of the day and there is no tx (HFT risks...). That's why we have to check in order to run another "instance" with a different "standard deviation", and eventually increase time-lags between bids.
It can become a full time job, with 1 bitcoin investment, even at 6000$ we can easily make 700$ to 10 times more a day !


$ ./randomtimebuyfirst
Usage : ./randomtimebuyfirst (randomtime )
$ ./randomtimebuyfirst XXBTZEUR 0.0198 132 120 1400


Here first order is to buy 0.0198 BTC 132EUR lower than actual rate (at runtime).
Following order is to sell 0.0198 BTC 132EUR upper than begin price.

Check price randomly between 120 sec. and 23 min.
We can set 0.5 to 0.501 sec. if relevant ...

We receive an email with last transaction details.


OSZBNZ-VYO5N-E4C4PR  opened 2019-06-22 14:36:43  closed 2019-06-22 14:36:43 (UTC)
   status : closed
   fee : 0.4
   expiretm : 0
   descr :
      leverage : none
      ordertype : market
      price : 0
      close :
      pair : XBTEUR
      price2 : 0
      type : buy
      order : buy 0.01980000 XBTEUR @ market
   vol : 0.01980000
   closetm : 1561214203.35
   trades : TIVM4H-DO4NA-CVCGXK
   misc :
   starttm : 0
   limitprice : 0.00000
   price : 9120.6
   cost : 180.5
   reason : None
   userref : 0



Next trade :


OOA4UG-UIU42-CYB3AE  opened 2019-06-22 15:00:07  closed 2019-06-22 15:00:07 (UTC)
   status : closed
   fee : 0.4
   expiretm : 0
   descr :
      leverage : none
      ordertype : market
      price : 0
      close :
      pair : XBTEUR
      price2 : 0
      type : sell
      order : sell 0.01980000 XBTEUR @ market
   vol : 0.01980000
   closetm : 1561215607.56
   trades : TGNJHW-DUPP5-JUWNM6
   misc :
   starttm : 0
   limitprice : 0.00000
   price : 9461.8
   cost : 187.3
   reason : None
   userref : 0



When a "loop" (first we buy, then sell) is done, volume can be increased.


Another script adjusts "standard deviation" at each new rate (very risky ... but ...  Smiley
Time between each price check is set here at 15.5 sec.


$ ./time_rtsellfirst
Usage : ./time_rtsellfirst
Jump to: