Bitcoin Forum
December 17, 2017, 12:09:44 PM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  

Warning: Moderators do not remove likely scams. You must use your own brain: caveat emptor. Watch out for Ponzi schemes. Do not invest more than you can afford to lose.

Pages: [1]
  Print  
Author Topic: Elevara Trading/Lending services  (Read 578 times)
R00TC0IN
Jr. Member
*
Offline Offline

Activity: 56


View Profile
January 27, 2017, 01:11:52 AM
 #1

Elevara Micro Loan Trading


Hi guys,

We are offering a chance to make some micro earnings with the possibility of additional trading profit shares from my Loan & margin trading platform over at poloniex

We can only take on a limited number of participants to begin with but we are looking into a way to expand the idea with help from the community or to help those who do not understand the day trading or lending markets at poloniex but would like to partake in some earnings with us.

As some of you might of seen we have a lending bot running from the forum see link below with a good reputation from the community a number of members are laving fantastic success using this platform to create loans or use the trading bot,

https://bitcointalk.org/index.php?topic=1744380.0
Here is the system we use to generate the loans across the poloniex platform.

Rates

LTC - 0.2025% above 1.11161136 LTC - 2 Days
CLAM - 0.0191% above 0.05178380 CLAM - 2 Days
ETH - 0.0067% above 0.08567636 ETH - 2 Days
BTC - 0.0268% above 0.00102987 BTC - 2 Days

We also offer 60 day terms but we feel its better to have multiple smaller loans on shorter periods.

Like we say we want this to be a community project so your input is valuable to the process.

How it works

The bot places micro loans across the poloniex platform, Taking into account masses of market data it places percentile loans based upon market trends
and as of the market's rate.

user deposits Amount = X ($5 Minimum / Maximum  $100)

Duration - 2 Days to 60 Days

Bot places loans and sets rates based upon the market data.
User receive a list of there loans rate & return time & dates.


Exchange / Margin Trades

Code:
Date,Market,Category,Type,Price,Amount,Total,Fee,Order Number,Base Total Less Fee,Quote Total Less Fee
2017-01-11 17:12:33,CLAM/BTC,Settlement,Sell,0.00089625,0.00002231,0.00000001,0.25%,14651313041,0.00000001,-0.00002231
2017-01-11 17:12:33,ETH/BTC,Margin trade,Sell,0.01233902,0.01186554,0.00014640,0.25%,197324047579,0.00014604,-0.01186554
2017-01-11 17:05:52,ETH/BTC,Margin trade,Buy,0.01199999,0.01189527,0.00014274,0.25%,197318707924,-0.00014274,0.01186554
2017-01-10 04:41:02,ETH/BTC,Margin trade,Sell,0.01159373,0.13219705,0.00153265,0.25%,196066417468,0.00152882,-0.13219705
2017-01-10 02:21:10,ETH/BTC,Margin trade,Buy,0.01148907,0.13252838,0.00152262,0.25%,195972216763,-0.00152262,0.13219706
2017-01-10 02:17:17,BCN/BTC,Exchange,Sell,0.00000005,16625.00000000,0.00083125,0.25%,1077318610,0.00082918,-16625.00000000
2017-01-10 02:16:37,HZ/BTC,Exchange,Sell,0.00000022,4987.50000000,0.00109725,0.25%,1377114553,0.00109451,-4987.50000000
2017-01-09 15:31:21,ETH/BTC,Settlement,Buy,0.01191599,0.00250959,0.00002990,0.25%,195410569972,-0.00002990,0.00250332
2017-01-09 15:31:21,CLAM/BTC,Settlement,Sell,0.00092721,0.03233355,0.00002997,0.25%,14629330046,0.00002990,-0.03233355
2017-01-09 15:31:21,ETH/BTC,Margin trade,Buy,0.01191599,1.00000000,0.01191599,0.25%,195410566975,-0.01191599,0.99750000
2017-01-09 14:54:49,ETH/BTC,Margin trade,Sell,0.01197000,1.00000000,0.01197000,0.15%,195361339252,0.01195205,-1.00000000
2017-01-09 13:47:12,ETH/BTC,Settlement,Buy,0.01195000,0.03872966,0.00046281,0.25%,195327719905,-0.00046281,0.03863284
2017-01-09 13:47:12,CLAM/BTC,Settlement,Sell,0.00092609,0.45260179,0.00041914,0.25%,14628886490,0.00041810,-0.45260179
2017-01-09 13:47:12,ETH/BTC,Margin trade,Buy,0.01195000,0.98903670,0.01181898,0.25%,195327718906,-0.01181898,0.98656411
2017-01-09 13:46:14,ETH/BTC,Settlement,Buy,0.01193500,0.00000196,0.00000002,0.25%,195327181444,-0.00000002,0.00000196
2017-01-09 13:46:14,ETH/BTC,Margin trade,Buy,0.01193500,0.08377707,0.00099987,0.25%,195327179446,-0.00099987,0.08356763
2017-01-09 13:13:25,DOGE/BTC,Margin trade,Sell,0.00000024,3324.66750000,0.00079792,0.25%,5753222046,0.00079593,-3324.66750000
2017-01-09 12:18:06,XRP/BTC,Settlement,Buy,0.00000679,0.22312543,0.00000151,0.25%,22887486720,-0.00000151,0.22256762
2017-01-09 12:18:06,CLAM/BTC,Settlement,Sell,0.00093249,0.00163004,0.00000151,0.25%,14628590786,0.00000151,-0.00163004
2017-01-09 12:18:06,XRP/BTC,Margin trade,Buy,0.00000679,88.00000000,0.00059752,0.25%,22887484722,-0.00059752,87.78000000
2017-01-09 07:46:52,ETH/BTC,Margin trade,Sell,0.01163947,1.10874058,0.01290515,0.15%,194779833340,0.01288580,-1.10874058
2017-01-09 03:21:24,XRP/BTC,Margin trade,Sell,0.00000698,88.00000000,0.00061424,0.25%,22858054182,0.00061271,-88.00000000
2017-01-09 02:51:12,XRP/BTC,Exchange,Sell,0.00000703,28.52828111,0.00020055,0.25%,22856932305,0.00020005,-28.52828111
2017-01-09 02:47:20,ETH/BTC,Settlement,Buy,0.01161175,0.00000764,0.00000008,0.25%,194807436709,-0.00000008,0.00000763
2017-01-09 02:47:20,XRP/BTC,Settlement,Sell,0.00000705,0.01276595,0.00000008,0.25%,22856642595,0.00000008,-0.01276595
2017-01-09 02:47:20,XRP/BTC,Settlement,Sell,0.00000705,32.09929078,0.00022629,0.25%,22856641596,0.00022573,-32.09929078
2017-01-09 02:47:20,ETH/BTC,Margin trade,Sell,0.01161170,0.09750000,0.00113214,0.25%,194807435710,0.00112931,-0.09750000
2017-01-09 02:03:25,ETH/BTC,Margin trade,Buy,0.01159994,1.00000000,0.01159994,0.25%,194777415760,-0.01159994,0.99750000
2017-01-09 01:51:36,XRP/BTC,Margin trade,Sell,0.00000704,32.91750000,0.00023173,0.25%,22853581659,0.00023116,-32.91750000
2017-01-09 01:50:45,STR/BTC,Margin trade,Sell,0.00000261,500.16599788,0.00130543,0.25%,15315286472,0.00130217,-500.16599788
2017-01-09 01:50:45,STR/BTC,Margin trade,Sell,0.00000261,0.00000212,0.00000000,0.25%,15315286472,0.00000000,-0.00000212
2017-01-09 01:48:42,CLAM/BTC,Margin trade,Sell,0.00092242,2.99250000,0.00276034,0.25%,14622278105,0.00275344,-2.99250000
2017-01-09 00:12:04,QORA/BTC,Exchange,Sell,0.00000007,12468.75000000,0.00087281,0.25%,1051224802,0.00087063,-12468.75000000
2017-01-08 23:04:12,SYS/BTC,Exchange,Sell,0.00000909,182.47790399,0.00165872,0.15%,5946530609,0.00165624,-182.47790399
2017-01-08 23:03:44,SYS/BTC,Exchange,Sell,0.00000909,153.59560812,0.00139618,0.25%,5946530609,0.00139269,-153.59560812
2017-01-08 23:03:32,FLDC/BTC,Exchange,Sell,0.00000109,766.46788993,0.00083545,0.15%,1748635645,0.00083420,-766.46788993
2017-01-08 23:03:06,FLDC/BTC,Exchange,Sell,0.00000109,183.53211009,0.00020004,0.25%,1748635645,0.00019954,-183.53211009
2017-01-08 22:35:26,XRP/BTC,Margin trade,Buy,0.00000694,33.00000000,0.00022902,0.25%,22842602649,-0.00022902,32.91750000
2017-01-08 22:34:15,STR/BTC,Margin trade,Sell,0.00000258,55.00000000,0.00014190,0.25%,15311300462,0.00014155,-55.00000000
2017-01-08 21:08:13,ETH/BTC,Margin trade,Sell,0.01132101,0.90000000,0.01018890,0.15%,194529122302,0.01017362,-0.90000000
2017-01-08 21:02:58,STR/BTC,Margin trade,Buy,0.00000259,556.00000000,0.00144004,0.15%,15309330434,-0.00144004,555.16600000
2017-01-08 21:01:36,DOGE/BTC,Margin trade,Buy,0.00000025,3333.00000000,0.00083325,0.25%,5737960323,-0.00083325,3324.66750000
2017-01-08 20:32:13,CLAM/BTC,Margin trade,Buy,0.00091600,3.00000000,0.00274800,0.25%,14620105280,-0.00274800,2.99250000
2017-01-08 18:17:40,CLAM/BTC,Exchange,Buy,0.00091200,0.38621199,0.00035222,0.15%,14619265121,-0.00035222,0.38563268
2017-01-08 18:16:52,CLAM/BTC,Exchange,Buy,0.00091200,0.57984633,0.00052881,0.25%,14619265121,-0.00052881,0.57839672
2017-01-08 18:16:52,CLAM/BTC,Exchange,Buy,0.00091200,0.13043290,0.00011895,0.25%,14619265121,-0.00011895,0.13010682
2017-01-08 18:15:03,FLDC/BTC,Exchange,Buy,0.00000105,2.56364048,0.00000269,0.25%,1746644638,-0.00000269,2.55723138
2017-01-08 18:15:03,FLDC/BTC,Exchange,Buy,0.00000105,949.81731190,0.00099730,0.25%,1746644638,-0.00099730,947.44276863
2017-01-08 18:13:12,BCN/BTC,Exchange,Buy,0.00000006,16666.66666666,0.00099999,0.25%,1076234695,-0.00099999,16625.00000000
2017-01-08 18:09:05,QORA/BTC,Exchange,Buy,0.00000008,12500.00000000,0.00100000,0.25%,1050895132,-0.00100000,12468.75000000
2017-01-08 18:08:16,HZ/BTC,Exchange,Buy,0.00000020,5000.00000000,0.00100000,0.25%,1371883789,-0.00100000,4987.50000000
2017-01-08 14:43:36,NAV/BTC,Exchange,Sell,0.00004358,0.00018467,0.00000000,0.15%,12343520185,0.00000000,-0.00018467
2017-01-08 14:43:35,NAV/BTC,Exchange,Sell,0.00004358,20.51904970,0.00089422,0.15%,12343520185,0.00089288,-20.51904970
2017-01-08 14:38:50,BURST/BTC,Exchange,Sell,0.00000056,1495.44235512,0.00083744,0.15%,1815182016,0.00083619,-1495.44235512
2017-01-08 14:38:21,DOGE/BTC,Exchange,Sell,0.00000024,4419.74299195,0.00106073,0.25%,5723383914,0.00105808,-4419.74299195
2017-01-08 14:38:09,NAV/BTC,Exchange,Sell,0.00004358,29.35576563,0.00127932,0.15%,12343520185,0.00127741,-29.35576563
2017-01-08 14:35:50,BURST/BTC,Exchange,Sell,0.00000056,1497.05764488,0.00083835,0.25%,1815182016,0.00083626,-1497.05764488
2017-01-08 14:34:39,SC/BTC,Exchange,Sell,0.00000032,499.25000000,0.00015976,0.25%,3974295876,0.00015937,-499.25000000
2017-01-08 00:59:11,SYS/BTC,Exchange,Buy,0.00000867,286.91580161,0.00248755,0.25%,5933985167,-0.00248755,286.19851211
2017-01-08 00:56:18,BCN/BTC,Exchange,Sell,0.00000005,49875.00000000,0.00249375,0.25%,1075442488,0.00248752,-49875.00000000
2017-01-08 00:29:40,LTC/BTC,Exchange,Buy,0.00441480,1.11329542,0.00491497,0.25%,43342183481,-0.00491497,1.11051219
2017-01-08 00:28:01,DGB/BTC,Exchange,Sell,0.00000037,9975.00000000,0.00369075,0.25%,2895563563,0.00368153,-9975.00000000
2017-01-08 00:23:17,C2/BTC,Exchange,Sell,0.00000100,241.21127430,0.00024121,0.25%,1944200869,0.00024061,-241.21127430
2017-01-08 00:23:17,C2/BTC,Exchange,Sell,0.00000100,756.92000000,0.00075692,0.25%,1944200869,0.00075503,-756.92000000
2017-01-08 00:20:29,DASH/BTC,Exchange,Sell,0.01390025,0.01201130,0.00016696,0.25%,66234077646,0.00016655,-0.01201130
2017-01-07 22:45:14,C2/BTC,Exchange,Buy,0.00000102,451.41668522,0.00046044,0.15%,1943958112,-0.00046044,450.73956020
2017-01-07 22:43:48,C2/BTC,Exchange,Buy,0.00000102,179.85758975,0.00018345,0.15%,1943958112,-0.00018345,179.58780337
2017-01-07 22:29:42,C2/BTC,Exchange,Buy,0.00000102,183.43641597,0.00018710,0.25%,1943958112,-0.00018710,182.97782494
2017-01-07 22:29:42,C2/BTC,Exchange,Buy,0.00000102,185.28930906,0.00018899,0.25%,1943958112,-0.00018899,184.82608579
2017-01-07 22:28:56,BURST/BTC,Exchange,Buy,0.00000057,3000.00000000,0.00171000,0.25%,1812262938,-0.00171000,2992.50000000
2017-01-07 22:23:28,BCN/BTC,Exchange,Buy,0.00000006,50000.00000000,0.00300000,0.25%,1075354576,-0.00300000,49875.00000000
2017-01-07 18:27:20,DGB/BTC,Exchange,Buy,0.00000037,10000.00000000,0.00370000,0.25%,2891134996,-0.00370000,9975.00000000
2017-01-07 18:22:53,POT/BTC,Exchange,Sell,0.00001843,498.75000000,0.00919196,0.25%,6328538201,0.00916899,-498.75000000
2017-01-07 18:20:57,FLDC/BTC,Exchange,Sell,0.00000111,299.25000000,0.00033216,0.15%,1722808498,0.00033167,-299.25000000
2017-01-07 17:48:03,XRP/BTC,Exchange,Buy,0.00000702,60.79231863,0.00042676,0.25%,22732127235,-0.00042676,60.64033784
2017-01-07 17:46:54,FLDC/BTC,Exchange,Buy,0.00000101,119.10283066,0.00012029,0.25%,1722008299,-0.00012029,118.80507359
2017-01-07 17:46:54,FLDC/BTC,Exchange,Buy,0.00000101,180.89716934,0.00018270,0.25%,1722008299,-0.00018270,180.44492642
2017-01-07 17:42:17,SC/BTC,Exchange,Buy,0.00000028,500.00000000,0.00014000,0.15%,3950471724,-0.00014000,499.25000000
2017-01-07 15:19:46,SYS/BTC,Exchange,Buy,0.00000874,50.00000000,0.00043700,0.25%,5926875284,-0.00043700,49.87500000
2017-01-07 15:18:45,NAV/BTC,Exchange,Buy,0.00004319,50.00000000,0.00215950,0.25%,12259426363,-0.00215950,49.87500000
2017-01-07 15:16:24,POT/BTC,Exchange,Buy,0.00001790,500.00000000,0.00895000,0.25%,6320536211,-0.00895000,498.75000000
2017-01-07 15:15:39,DOGE/BTC,Exchange,Buy,0.00000025,5000.00000000,0.00125000,0.25%,5666190165,-0.00125000,4987.50000000
2017-01-07 15:11:54,DASH/BTC,Exchange,Sell,0.01370111,1.00000000,0.01370111,0.25%,66150750057,0.01366686,-1.00000000


Loans

Code:
Currency,Rate,Amount,Duration,Interest,Fee,Earned,Open,Close
CLAM,0.00017851,0.36454250,2.00037037,0.00013017,-0.00001952,0.00011065,2017-01-09 15:37:17,2017-01-11 15:37:49
CLAM,0.00019100,0.18124454,2.00037037,0.00006924,-0.00001038,0.00005886,2017-01-09 15:37:17,2017-01-11 15:37:49
LTC,0.00199600,1.11056603,0.55479166,0.00122980,-0.00018447,0.00104533,2017-01-10 20:44:25,2017-01-11 10:03:19
CLAM,0.00019100,0.06178380,1.34820601,0.00001591,-0.00000238,0.00001353,2017-01-09 15:37:21,2017-01-10 23:58:46
BTC,0.00026700,0.00000005,0.00275462,0.00000001,0.00000000,0.00000001,2017-01-10 20:44:06,2017-01-10 20:48:04
LTC,0.00006530,1.11051289,0.86199074,0.00006251,-0.00000937,0.00005314,2017-01-09 20:48:12,2017-01-10 17:29:28
BTC,0.00028869,0.00028672,0.09032407,0.00000001,0.00000000,0.00000001,2017-01-10 12:10:02,2017-01-10 14:20:06
BTC,0.00028869,0.00043199,0.09028935,0.00000002,0.00000000,0.00000002,2017-01-10 12:10:02,2017-01-10 14:20:03
BTC,0.00028869,0.00038157,0.09027777,0.00000001,0.00000000,0.00000001,2017-01-10 12:10:02,2017-01-10 14:20:02
BTC,0.00028100,0.00193938,0.00009259,0.00000001,0.00000000,0.00000001,2017-01-10 12:56:01,2017-01-10 12:56:09
BTC,0.00023900,0.00109999,1.28437500,0.00000034,-0.00000005,0.00000029,2017-01-09 02:27:15,2017-01-10 09:16:45
ETH,0.00006700,0.11408364,0.05315972,0.00000041,-0.00000006,0.00000035,2017-01-10 01:50:01,2017-01-10 03:06:34
BTC,0.00014399,0.00000953,0.06465277,0.00000001,0.00000000,0.00000001,2017-01-09 22:34:26,2017-01-10 00:07:32
BTC,0.00027289,0.00102983,0.12206018,0.00000004,0.00000000,0.00000004,2017-01-09 20:18:46,2017-01-09 23:14:32
BTC,0.00014399,0.00090305,0.00372685,0.00000001,0.00000000,0.00000001,2017-01-09 22:34:45,2017-01-09 22:40:07
BTC,0.00014399,0.00015863,0.00003472,0.00000001,0.00000000,0.00000001,2017-01-09 22:34:36,2017-01-09 22:34:39
BTC,0.00014399,0.00015863,0.00003472,0.00000001,0.00000000,0.00000001,2017-01-09 22:34:27,2017-01-09 22:34:30
BTC,0.00019500,0.00562402,0.70706018,0.00000078,-0.00000011,0.00000067,2017-01-09 05:12:57,2017-01-09 22:11:07
BTC,0.00023900,0.00116697,0.82216435,0.00000023,-0.00000003,0.00000020,2017-01-09 02:27:12,2017-01-09 22:11:07
BTC,0.00027800,0.00308954,0.01809027,0.00000002,0.00000000,0.00000002,2017-01-09 20:32:31,2017-01-09 20:58:34
LTC,0.00006540,1.11051219,0.01120370,0.00000082,-0.00000012,0.00000070,2017-01-09 20:31:37,2017-01-09 20:47:45
BTC,0.00027399,0.00102984,0.00049768,0.00000001,0.00000000,0.00000001,2017-01-09 20:31:45,2017-01-09 20:32:28
BTC,0.00027600,0.00205968,0.00046296,0.00000001,0.00000000,0.00000001,2017-01-09 20:31:48,2017-01-09 20:32:28
BTC,0.00026400,0.00132566,0.00813657,0.00000001,0.00000000,0.00000001,2017-01-09 20:19:45,2017-01-09 20:31:28
BTC,0.00026499,0.00132565,0.00813657,0.00000001,0.00000000,0.00000001,2017-01-09 20:19:45,2017-01-09 20:31:28
BTC,0.00026800,0.00019703,0.00069444,0.00000001,0.00000000,0.00000001,2017-01-09 20:19:07,2017-01-09 20:20:07
BTC,0.00026800,0.00019708,0.00068287,0.00000001,0.00000000,0.00000001,2017-01-09 20:19:08,2017-01-09 20:20:07
BTC,0.00026800,0.00004405,0.00067129,0.00000001,0.00000000,0.00000001,2017-01-09 20:19:09,2017-01-09 20:20:07
BTC,0.00020498,0.00136089,0.79104166,0.00000022,-0.00000003,0.00000019,2017-01-09 00:07:48,2017-01-09 19:06:54
BTC,0.00020598,0.00272177,0.79104166,0.00000045,-0.00000006,0.00000039,2017-01-09 00:07:48,2017-01-09 19:06:54
BTC,0.00019500,0.00562401,0.00033564,0.00000001,0.00000000,0.00000001,2017-01-09 05:12:24,2017-01-09 05:12:53
BTC,0.00023799,0.00512717,0.11516203,0.00000015,-0.00000002,0.00000013,2017-01-09 02:26:10,2017-01-09 05:12:00
BTC,0.00023900,0.00029663,0.04187500,0.00000001,0.00000000,0.00000001,2017-01-09 02:27:16,2017-01-09 03:27:34
BTC,0.00023900,0.00000001,0.00136574,0.00000001,0.00000000,0.00000001,2017-01-09 02:27:15,2017-01-09 02:29:13
BTC,0.00023900,0.00256359,0.00065972,0.00000001,0.00000000,0.00000001,2017-01-09 02:26:10,2017-01-09 02:27:07
BTC,0.00025499,0.00769075,0.00184027,0.00000001,0.00000000,0.00000001,2017-01-09 02:23:01,2017-01-09 02:25:40
BTC,0.00025400,0.00769074,0.00106481,0.00000001,0.00000000,0.00000001,2017-01-09 02:21:02,2017-01-09 02:22:34
BTC,0.00021100,0.00501019,0.02861111,0.00000004,0.00000000,0.00000004,2017-01-09 01:39:41,2017-01-09 02:20:53
BTC,0.00021199,0.00256356,0.02861111,0.00000002,0.00000000,0.00000002,2017-01-09 01:39:41,2017-01-09 02:20:53
BTC,0.00021100,0.00011692,0.00831018,0.00000001,0.00000000,0.00000001,2017-01-09 01:39:39,2017-01-09 01:51:37
BTC,0.00021300,0.00769066,0.00486111,0.00000001,0.00000000,0.00000001,2017-01-09 01:32:07,2017-01-09 01:39:07
BTC,0.00020699,0.00000002,0.02155092,0.00000001,0.00000000,0.00000001,2017-01-09 00:06:45,2017-01-09 00:37:47
BTC,0.00020699,0.00408265,0.00035879,0.00000001,0.00000000,0.00000001,2017-01-09 00:06:52,2017-01-09 00:07:23

The bot uses the following code to check the market data


Code:
def init(config, api1, data1):
    global currencies_to_analyse, open_files, max_age, update_interval, api, Data, lending_style
    currencies_to_analyse = config.get_currencies_list('analyseCurrencies')
    max_age = int(config.get('BOT', 'analyseMaxAge', 30, 1, 365))
    update_interval = int(config.get('BOT', 'analyseUpdateInterval', 60, 10, 3600))
    lending_style = int(config.get('BOT', 'lendingStyle', 50, 1, 99))
    api = api1
    Data = data1
    if len(currencies_to_analyse) != 0:
        for currency in currencies_to_analyse:

            try:
                api.api_query("returnLoanOrders", {'currency': currency, 'limit': '5'})
            except Exception as cur_ex:
                print "Error: You entered an incorrect currency: '" + currency + \
                      "' to analyse the market of, please check your settings. Error message: " + str(cur_ex)
                exit(1)

            else:
                path = "market_data/" + currency + "_market_data.csv"
                open_files[currency] = path

        thread = threading.Thread(target=update_market_loop)
        thread.deamon = True
        thread.start()


def update_market_loop():
    while True:
        update_markets()
        delete_old_data()
        time.sleep(update_interval)


def update_markets():
    for cur in open_files:
        with open(open_files[cur], 'a') as f:
            writer = csv.writer(f, lineterminator='\n')
            raw_data = api.return_loan_orders(cur, 5)['offers'][0]
            market_data = [Data.timestamp(), raw_data['rate']]
            writer.writerow(market_data)


def delete_old_data():
    for cur in open_files:
        with open(open_files[cur], 'rb') as file_a:
            new_a_buf = StringIO()
            writer = csv.writer(new_a_buf)
            reader2 = csv.reader(file_a)
            for row in reader2:
                if get_day_difference(row[0]) < max_age:
                    writer.writerow(row)

        # At this point, the contents (new_a_buf) exist in memory
        with open(open_files[cur], 'wb') as file_b:
            file_b.write(new_a_buf.getvalue())


def get_day_difference(date_time):  # Will be in format '%Y-%m-%d %H:%M:%S'
    date1 = datetime.datetime.strptime(date_time, '%Y-%m-%d %H:%M:%S')
    now = datetime.datetime.now()
    diff_days = (now - date1).days
    return diff_days


def get_rate_list(cur='all'):
    if cur == 'all':
        all_rates = {}
        for cur in open_files:
            with open(open_files[cur], 'r') as f:
                reader = csv.reader(f)
                rates = []
                for row in reader:
                    rates.append(row[1])
                rates = map(float, rates)
                all_rates[cur] = rates
        return all_rates

    else:
        if cur not in open_files:
            return []
        with open(open_files[cur], 'r') as f:
            reader = csv.reader(f)
            rates = []
            for row in reader:
                rates.append(row[1])
            rates = map(float, rates)
        return rates


def get_rate_suggestion(cur, percentile=lending_style):
    if cur not in open_files:
        return 0
    rates = get_rate_list(cur)
    if use_numpy:
        result = numpy.percentile(rates, int(percentile), interpolation='linear')
    else:
        rates.sort()
        index = int(percentile * len(rates))
        result = rates[index]
    result = float(int(result * 1000000) / 1000000.0)
    return result

Please check out our other post if you would like to do this by yourself with the bot, as its for sale over at this topic

https://bitcointalk.org/index.php?topic=1744380.0

To try out the service PM us on the forum or leave a comment,

Please do check out our other listings for the lending and trading bots if you want to try this on your own full support is available and auto buy is setup if you want to purchase the software and be your own trading guru.

We look forward to input from the community on this and look to bring some form on online service in the coming months fully automated via the API system.

Also please check out trust we have been building a reputation in the community for our lending bot and have had members vouch our system we now feel its time to offer this service to the wider community.

(trading history is available upon request)

Thanks

RootCoin
Elevara Dev.
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!