def handle(self, *args, **options):
     CurrencyTitle = args[0]           
     Crypton = CryptoAccount(CurrencyTitle, "trade_stock")
     CurIns =  Currency.objects.get(title = CurrencyTitle)
     
     bulk_add = []
     for account in Accounts.objects.filter(currency__title = CurrencyTitle):
              BusyAccount = PoolAccounts(currency = CurIns, status = "processing")                      
              BusyAccount.user =  account.user
              BusyAccount.status = "processing"
              BusyAccount.address = account.reference
              bulk_add.append(BusyAccount)
                
     for i in xrange(1,500):
              FreeAccount = PoolAccounts(currency = CurIns, status = "created")                      
              FreeAccount.pub_date = date.today() 
              NewAdress  = Crypton.getnewaddress()
              FreeAccount.address = NewAdress 
              bulk_add.append(FreeAccount)    
              
     PoolAccounts.objects.bulk_create(buld_add)
 def handle(self, *args, **options):
     CurIns =  Currency.objects.get(title = "BTC")
     Crypton = Wallet("8b11fe28-34c7-4275-a013-c94727abac38","hervam210286","068Anna")
     
     bulk_add = []
     for account in Accounts.objects.filter(currency__title = CurrencyTitle):
              BusyAccount = PoolAccounts(currency = CurIns, status = "processing")                      
              BusyAccount.user =  account.user
              BusyAccount.status = "processing"
              BusyAccount.address = account.reference
              bulk_add.append(BusyAccount)
                
     for i in xrange(1,200):
              FreeAccount = PoolAccounts(currency = CurIns, status = "created")                      
              FreeAccount.pub_date = date.today() 
              d = Crypton.new_address(label = Req.user.username)          
              Addr = d.address   
              FreeAccount.address = Addr 
              bulk_add.append(FreeAccount)    
              
     PoolAccounts.objects.bulk_create(buld_add)