Author Topic: [worker] Python-steem and uptick (1.14.52)  (Read 8470 times)

0 Members and 1 Guest are viewing this topic.

Offline wao

Re: [worker] Python-steem and uptick (1.14.52)
« Reply #15 on: February 04, 2017, 03:29:25 pm »
https://bitsharestalk.org/index.php/topic,23698.0.html

20 hours per week,1600 USD a month,Just want to compare.

and,The job will take ten months to finish?

I think you hold the BTS appreciation is expected to pay part of the wage.

« Last Edit: February 04, 2017, 03:32:30 pm by wao »

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12914
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Re: [worker] Python-steem and uptick (1.14.52)
« Reply #16 on: February 06, 2017, 09:36:26 am »
First of all, thanks for the support!

I would love to read more about trading part. For now I see one simple scheme.

1. Multisig borrow USD and send to worker.
2. next day worker make sell order 5% above feed at USD:BTS
3. Multisig fill worker orders and send USD to worker again.
5.Repeat

If this is the case, why 5%?
It is going to be exactly like [member=5080]Geneko[/member] described it.
The only thing that is not yet clear to me from the procedure, is
* Should a collective account be used to borrow bitUSD instead of spreading shareholder-owned collateral to multiple accounts?
* Should the account's permissions be set to be committee owned after the expiration, or should it be re-useable?

I personally, prefer to send BTS to a separate account that holds the collateral position and sends back the bitUSD. This makes accounting easier but requires another multisig group to organize and maintain the collateral.

We also support this worker proposal. I am looking forward to creating more dev tools for the community. Please also add an extended documentation to the tool so that new devs can get started easily.

Short question:

- How much time will you dedicate for this worker and BitShares?
4,000 euro a month sounds like a full-time worker for 3 months.

- Are you also working on further steemit related projects?

Thanks for the support, chris!
The worker is based on milestones. So you get all milestones fulfilled for 3 months * 4000$/mth =12k$
The amount of time I need to put into it depends on how fast I can bring it on and how many problems I run into it.
In the end, this way is in favor for BTS holders and makes it more risky for me .. but I am pretty confident I can deliver in time :)

I also have commitments with some Steem projects. No commitments so far for Steemit Inc.

Actually, there is no need to put 2.5x collateral. If there are no offers between feed and SQP price, borrow bitUSD with minimum (1.75x) collateral and let it be margin called as soon as an offer appears between feed and SQP.
Depends. Margin Calls can force you to pay up to 10% above the feed while if you maintain collateral, you can just to partially close your position at lower premium.
Given that the shareholders (on paper) pay with more dilution for this worker already, I don't think it's fair to also ask them to pay for margin calls. Hence, 2.5x collateral.
Makes sense?

https://bitsharestalk.org/index.php/topic,23698.0.html

20 hours per week,1600 USD a month,Just want to compare.

and,The job will take ten months to finish?

I think you hold the BTS appreciation is expected to pay part of the wage.
The referred worker has a backing of BTS-munich while I am an independent developer. If someone is willing to top this up, we can negotiate something new after this worker has ended.
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

Offline nmywn

  • Sr. Member
  • ****
  • Posts: 266
    • View Profile
Re: [worker] Python-steem and uptick (1.14.52)
« Reply #17 on: February 06, 2017, 05:29:44 pm »
It is going to be exactly like [member=5080]Geneko[/member] described it.
The only thing that is not yet clear to me from the procedure, is
* Should a collective account be used to borrow bitUSD instead of spreading shareholder-owned collateral to multiple accounts?
* Should the account's permissions be set to be committee owned after the expiration, or should it be re-useable?

I personally, prefer to send BTS to a separate account that holds the collateral position and sends back the bitUSD. This makes accounting easier but requires another multisig group to organize and maintain the collateral.
I see one flaw. Collective account income isn't specified. Are they working for free? I would give them 10% of savings that they made, or better to say: if. Fair offer.
Your idea is amazing btw.

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12914
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Re: [worker] Python-steem and uptick (1.14.52)
« Reply #18 on: February 07, 2017, 07:29:29 am »
I see one flaw. Collective account income isn't specified. Are they working for free? I would give them 10% of savings that they made, or better to say: if. Fair offer.
Your idea is amazing btw.
The original plan was to get the BitShares foundation bootstrapped by offering this as a service for a fee. But due to some time-delaying issues they couldn't make it til now. Hoping to find a way to do this for a subsequent worker.
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12914
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Re: [worker] Python-steem and uptick (1.14.52)
« Reply #19 on: February 07, 2017, 09:42:20 am »
updated the faucet code for the testnet to run on the new library. This is a worker/background process donates TEST tokens to every newly created account (even if you create it):

Code: [Select]
import yaml
from pprint import pprint
from bitshares import BitShares
from bitshares.account import Account
from bitshares.blockchain import Blockchain

config = yaml.load(open("config.yml").read())

bitshares = BitShares(
    "wss://node.testnet.bitshares.eu",
    keys=[config["wif"]],
    nobroadcast=False
)


def run(begin=None, end=None):

    blockchain = Blockchain(
        mode="head",
        bitshares_instance=bitshares
    )

    for op in blockchain.stream(
        opNames=["account_create"],
        start=int(begin) if begin else None,
        stop=int(end) if end else None,
    ):
        try:
            pprint(bitshares.transfer(
                op["op"][1]["name"],
                config["donation_amount"], config["donation_asset"],
                account=config["registrar"]
            ))
        except Exception as e:
            log.error(str(e))
            pass


if __name__ == '__main__':
    run()
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

Offline yvv

  • Hero Member
  • *****
  • Posts: 1186
    • View Profile
Re: [worker] Python-steem and uptick (1.14.52)
« Reply #20 on: February 07, 2017, 09:55:12 am »

Actually, there is no need to put 2.5x collateral. If there are no offers between feed and SQP price, borrow bitUSD with minimum (1.75x) collateral and let it be margin called as soon as an offer appears between feed and SQP.
Depends. Margin Calls can force you to pay up to 10% above the feed while if you maintain collateral, you can just to partially close your position at lower premium.
Given that the shareholders (on paper) pay with more dilution for this worker already, I don't think it's fair to also ask them to pay for margin calls. Hence, 2.5x collateral.
Makes sense?


Yes, it does. I guess, this whole process could be automated with a simple bot, can it?

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12914
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Re: [worker] Python-steem and uptick (1.14.52)
« Reply #21 on: February 07, 2017, 01:09:06 pm »
Yes, it does. I guess, this whole process could be automated with a simple bot, can it?
Yes it can .. more of less .. everything that involves the worker account needs to be approved by the multisig group tho ..
But you can concatenate multiple operations into a single transaction/proposal so that they only need to approve once ..
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12914
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Re: [worker] Python-steem and uptick (1.14.52)
« Reply #22 on: February 13, 2017, 10:42:23 am »
This is a kind reminder for shareholders to consider voting for this worker. There are only a few votes left.
Regards
 -- Fabian
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

Offline Brekyrself

  • Hero Member
  • *****
  • Posts: 511
    • View Profile
Re: [worker] Python-steem and uptick (1.14.52)
« Reply #23 on: February 13, 2017, 08:38:16 pm »
Cast your votes, anything to help developers create Bitshares related projects is great for the community.

Offline vikram

Re: [worker] Python-steem and uptick (1.14.52)
« Reply #24 on: February 15, 2017, 12:29:46 am »
Cast your votes, anything to help developers create Bitshares related projects is great for the community.

 +5%

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12914
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Re: [worker] Python-steem and uptick (1.14.52)
« Reply #25 on: February 16, 2017, 07:00:54 am »
Morning everyone. I am still looking for some support for my worker proposal. Please consider voting so that we can improve the python tools and libraries that other devs can then use to build their apps and improve the ecosystem. Examples are the faucet (tapin) or a market making bot (stakemachine) but even more is possible like tipping bots, trading bots and any kind of automation of your account (like donations of some tokens to new accounts as done on the testnet).
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

Offline nmywn

  • Sr. Member
  • ****
  • Posts: 266
    • View Profile
Re: [worker] Python-steem and uptick (1.14.52)
« Reply #26 on: February 16, 2017, 01:55:27 pm »
Is Python good enough to start a very simple community based sidechain? By saying sidechain I mean bunch of bots operating as multisig account in minimum 2 blockchains (e.g. steem <=> bitshares). Bots read data from blockchain's apis, voting on transactions and store data about it. Is that sidechain? Workers, pegged assets, custom dividend schemes, mining... All done with python bots, flexible UIA's and multisig groups - with possibility to upgrade to faster language if business model generate enough income to hire devs. Every time I see fractals like that I'm super exited. Is this a way how Graphene blockchain is supposed to scale or my uneducated imagination led me to false conclusions?

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12914
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Re: [worker] Python-steem and uptick (1.14.52)
« Reply #27 on: February 16, 2017, 05:43:24 pm »
Absolutely .. in fact, I actually NEED this kind of code to run this worker and get paid (due to the multisig nature of the escrow service for bitUSD payments).
Building bots will be very easy. You can see the same code base in action on STEEM called pysteem (pytsteem.com). It's a very popular library for python devs.

PyBitShares will simplify using the BitShares blockchain and build businesses around BitShares and I am not just talking about faucets or mm bots. Any kind of buisness that wants to run on top of BitShares could build a MVP in python very quickly and move over to custom libs/code while they grow their user base. Or they stick with pybitshares which is build with scalability in mind.
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12914
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Re: [worker] Python-steem and uptick (1.14.52)
« Reply #28 on: February 21, 2017, 10:27:55 am »
@shareholders, @community, and @developers,

As I am making significant progress with both, pybitshares library and uptick, I would like to request input from you as to what features you would like to have in the library and the command line tool uptick in an upcoming public first release candidate.

Uptick currently supports these calls:
  addkey
  allow
  balance
  broadcast
  buy
  changewalletpassphrase
  configuration
  delkey
  disallow
  getkey
  history
  info
  listaccounts
  listkeys
  openorders
  orderbook
  permissions
  randomwif
  sell
  sign
  trades
  transfer

and uses pybitshares to execute those calls on the blockchain.
What do you want to have in addition? I'll try to make it happen right in the first release.
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

iHashFury

  • Guest
Re: [worker] Python-steem and uptick (1.14.52)
« Reply #29 on: February 21, 2017, 01:50:02 pm »
A "Trailing stop loss" sounds like the perfect addition to UpTick.

Also mostly keeps your positions off the blockchain until executed. 
« Last Edit: February 21, 2017, 01:51:59 pm by iHashFury »