Author [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: Python script to put portions of delegate pay into markers at or below the feed  (Read 260 times)

0 Members and 1 Guest are viewing this topic.

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12280
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BTS: xeroc
  • GitHub: xeroc

Source:
https://github.com/xeroc/pytshares/blob/master/exchange-delegate-pay.py

Configuration of RPC:
from https://github.com/xeroc/pytshares/blob/master/config-sample.py
put the RPC config stuff into config.py
Code: [Select]
url = "http://127.0.0.1:19988/rpc"
user = 'username'
passwd = 'pwd'
unlock = "unlockPwd"
wallet = "default"

Configuration of Script:
Code: [Select]
accountname = "delegate.xeroc"       # the delegate
exchangename = "exchange.xeroc"      # a separate account to do the market operations
payoutname = "payouts.xeroc"      # collect all funds to that account
partition = {                                  # how to split the pay .. here 50% stay BTS 25% each for EUR and USD
"USD" : .25,
"EUR" : .25,
"BTS" : .5,
} ## BTS has to be last
spread = 0.02                # put ask 2% below feed 
txfee = 0.1 # BTS
btsprecision = 1e5


I am going to run this on a weekly basis at the above settings to feed the USD and BTS markets with my 3% pay delegate.
Also I am elaborating if the 100% pay delegates *.delegate.charity shouldn't do the same. Let me see if the script works out well in the next few weeks ...
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

Offline fluxer555

  • Hero Member
  • *****
  • Posts: 742
    • View Profile
I don't know about this. Doesn't this make the incentives imbalanced? Doesn't this put centralized influence into the free-market system? I'm not an economist, but this doesn't seem kosher to me.


Offline toast

I don't know about this. Doesn't this make the incentives imbalanced? Doesn't this put centralized influence into the free-market system? I'm not an economist, but this doesn't seem kosher to me.

Would it be kosher if delegates did it by hand instead? Some of us want to hedge 30% for tax reasons, for example.

Delegates don't have to run this
Do not use this post as information for making any important decisions. The only agreements I ever make are informal and non-binding. Take the same precautions as when dealing with a compromised account, scammer, sockpuppet, etc.

Offline fluxer555

  • Hero Member
  • *****
  • Posts: 742
    • View Profile
After reading again, I now see that I misunderstood the concept. Carry on

 

Google+