Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - alt

Pages: 1 2 [3] 4 5 6 7 8 9 10 ... 16
31
Technical Support / web wallet become slowly when display a long memo
« on: January 14, 2016, 12:23:13 am »
try to import WIF private key:
5KJJNfiSyzsbHoVb81WkHHjaX2vZVQ1Fqq5wE5ro8HWXe6qNFyQ

view the page from account:  announce

there are long memo in this page, the UI become very slow

32
General Discussion / an important feature maybe usefull
« on: January 08, 2016, 05:54:05 am »
we have a transaction type named proposol,
a proposol can contain multi transactions,
and  all transactions in a proposol will confirm/expired  togother,
so all transactions will execute in an atom op
this is a very usefull feature you should know

for example, if you want to do a business, sell BTS account
you can build a proposol include 2 transactions:
1. change the key to buyer's
2. transfer 100 CNY from buyer to you

then you signed it and broadcast it
after the buyer signed it, your deal complete.
no agency need

and many other business can use this feature.
I will use it in my next public service

33
General Discussion / I suggest privated BTS
« on: January 08, 2016, 02:47:24 am »
currently, all fees earned by the network belong to this account 'committee-account'
this account is controled by 11 committee
but the committes don't have enough authority, the money don't belong to them.

I suggest two changes to privated BTS:
1. all fees earned should belong to committees, seperate by the vote weight.
2. 1 BTS can only vote for 1 committee.

after the change, big capital can got chance to get profit from BTS, they will buy BTS to become the committee,
they will hired pro group to maintain the business, hired more programer to help develop

public ownership is the most evil system.

34
General Discussion / network down??
« on: January 04, 2016, 12:30:11 am »
all my 4 nodes froze at block 2359544
Code: [Select]
1191310ms th_a       application.cpp:496           handle_block         ] Got block: #2359544 time: 2016-01-04T00:19:51 latency: 317 ms from: roadscape  irreversible: 2359526 (-18)

35
General Discussion / btsbots reborn
« on: December 31, 2015, 05:20:23 pm »
https://bitsharestalk.org/index.php/topic,20835.msg269215.html#msg269215
I have redesign the whole architecture, now we can provide trading robot service
This trading robot is used to provide market making services.
1. get source from each exchange,  got a basic bid/ask price.
2. according to each asset's weights and some parameters, we got another premium.
3. Finally, according to the additional premium individual local settings, and the additional price peg parameter, we got the last price

During the test, it is suggested keep a small balance at the  account.

use it with follow step :
1. run a cli wallet, and import your trade account.
2. install the btsbots client
Code: [Select]
pip3 install btsbots --upgrade
edit config.json, reference:
https://github.com/pch957/btsbots/blob/master/config-example.json
3. run the trade bots, you can see some output from the console
Code: [Select]
btsbots --config config.json run_trade
4. you need to recharge for the service,  now it's 1USD/per day for each market.
we will not  charge  fees for filled order during test period.
accept all peg assets for recharge.
run command at a new console, and you can see infomation from last console
Code: [Select]
btsbots --config config.json recharge 1 USD
5. after recharge, you can upload your profile.json for the trade
reference:
https://github.com/pch957/btsbots/blob/master/profile-example.json
run command to upload profile
Code: [Select]
btsbots --config config.json --profile profile.json update_profile
after the profile upload success, you can see output from the 1st console, and the trade will begin.
we support all peg asset, and BOTSCNY,  TRADE.BTC, OPENBTC, METAEX.BTC now


for now, account exchange.btsbots is test this bots at market BOTSCNY/BTS
you can visit the bot's orders. and here is the config.json profile.json used now
config.json
Code: [Select]
{
    "account": "exchange.btsbots",
    "cli_wallet": {
        "host" : "localhost",
        "port" : 9092,
        "rpc_user" : "",
        "rpc_passwd" : "",
        "wallet_unlock" : ""
    },
    "addition_spread": 0.01,
    "threshold": 0.01,
    "price_factor": {
        "CNY": 1.0,
        "BTS": 1.00,
        "USD": 1.05
    }
}
profile.json
Code: [Select]
{
    "quota_in_usd": 50,
    "market": [
        ["BTS", "BOTSCNY"]
        ],
    "asset": {
        "BTS": {
            "weight": 8.0,
            "spread": [0.007, 0.12]
        },
        "BOTSCNY": {
            "weight": 4.0,
            "spread": [0.005, 0.1]
        },
        "CNY": {
            "weight": 2.0,
            "spread": [0.005, 0.1]
        },
        "USD": {
            "weight": 2.0,
            "spread": [0.005, 0.1]
        },
        "GOLD": {
            "weight": 1.0,
            "spread": [0.005, 0.1]
        },
        "SILVER": {
            "weight": 1.0,
            "spread": [0.005, 0.1]
        }
    }
}

36
中文 (Chinese) / BTSBOTS 重新启动了
« on: December 31, 2015, 02:52:26 pm »
这次对整个架构做了全新的设计,可以提供交易机器人服务,使用步骤如下:
1. 需要在 linux 下运行一个 cli_wallet,并导入交易帐号(以后可以省略这一布,不需要安装任何钱包)
2. 安装 btsbots 客户端:
Code: [Select]
pip3 install btsbots --upgrade
配置 config.json 文件,指定钱包API地址等信息,可参考以下链接:
https://github.com/pch957/btsbots/blob/master/config-example.json
以下信息和交易有关,其中 addition_spread 是本地配置的一个额外的价格调整,
threshold 决定了价格偏离重下单的阈值
price_factor 是自己定义的锚定参数,比如美元你可以设定为 1.05~1.1 比较合适

Code: [Select]
    "addition_spread": 0.005,
    "threshold": 0.01,
    "price_factor": {
        "CNY": 1.0,
        "USD": 1.05
    }

3. 启动机器人,可以查看交互信息
Code: [Select]
btsbots --config config.json run_trade
4. 需要充值才能激活使用,测试阶段不收成交手续费,每个市场每天收费1美元,可接受所有锚定资产,按市价换算成美元计算。
再开一个终端,运行以下命令,在上面的交易机器人终端可以看到充值反馈信息。
Code: [Select]
btsbots --config config.json recharge 1 USD
5. 充值完后还无法交易,需要上传自己的交易信息。
配置 profile.json 文件,参考以下链接
https://github.com/pch957/btsbots/blob/master/profile-example.json
"quota_in_usd" 配置了每单最大下单限额,按美元计价
market 中配置的是自己要交易的市场,支持所有锚定资产及BOTSCNY, TRADE.BTC, OPENBTC, METAEX.BTC
market 中涉及的资产,必须在 "asset"项中配置,主要配置资产占比权重,以及两个 spread 值。
比如 [0.005, 0.08] 的意思是, 当资产占比和权重正好匹配时,按(1+ 0.005) 的价格溢价卖,当资产占比趋于0的时候,按 (1+0.08)溢价卖
Code: [Select]
{
    "quota_in_usd": 100,
    "market": [
        ["BTS", "TCNY"],
        ["BTS", "USD"]
        ],
    "asset": {
        "BTS": {
            "weight": 3.0,
            "spread": [0.007, 0.12]
        },
        "TCNY": {
            "weight": 1.0,
            "spread": [0.005, 0.08]
        },
        "USD": {
            "weight": 1.0,
            "spread": [0.005, 0.1]
        }
    }
}
配置完后,运行以下命令上传配置文件
Code: [Select]
btsbots --config config.json --profile profile.json update_profile
当上传完毕后,回到交易客户端,可以看到相关信息,正常情况就会开始下单了

37
Technical Support / howto signature the transaction from python?
« on: December 21, 2015, 09:35:45 am »
If I got a transaction like this:
Code: [Select]
{'expiration': '2015-12-21T09:33:30',
 'extensions': [],
 'operations': [[1,
                 {'amount_to_sell': {'amount': 900000000,
                                     'asset_id': '1.3.0'},
                  'expiration': '1969-12-31T23:59:59',
                  'extensions': [],
                  'fee': {'amount': 500000, 'asset_id': '1.3.0'},
                  'fill_or_kill': False,
                  'min_to_receive': {'amount': 1900000,
                                     'asset_id': '1.3.1'},
                  'seller': '1.2.18'}],
                [1,
                 {'amount_to_sell': {'amount': 2000000,
                                     'asset_id': '1.3.1'},
                  'expiration': '1969-12-31T23:59:59',
                  'extensions': [],
                  'fee': {'amount': 500000, 'asset_id': '1.3.0'},
                  'fill_or_kill': False,
                  'min_to_receive': {'amount': 1100000000,
                                     'asset_id': '1.3.0'},
                  'seller': '1.2.18'}]],
 'ref_block_num': 30631,
 'ref_block_prefix': 2405814624,
 'signatures': []}
how to signature it with a private key from python? thanks

#edit: seems xeroc have provid this tools, but don't know how to use it
https://github.com/xeroc/python-graphenelib/blob/master/graphenebase/transactions.py

38
Stakeholder Proposals / what's the responsbility for witness?
« on: December 19, 2015, 01:51:32 am »
please clearify responsibility for witness,
and vote out witness can't fit it.

39
Stakeholder Proposals / witness, please publish a correct feed price
« on: December 19, 2015, 12:56:14 am »
bts price is 0.0245CNY/BTS from about 13 hours ago, but now, the feed price for CNY is still 0.0236CNY/bts
many witness publish a wrong price




40
Technical Support / [python] get bts price
« on: December 10, 2015, 03:09:36 am »
https://github.com/pch957/btsprice
this is a script to fetch BTS's order book from each exchange,
match all order book, get a real price which can give a maximum match volume
display the price and efficient depth
Code: [Select]
2015/12/10 11:02:48                                                                                                                                           [195/8526]
+----------+---------------+---------------+---------------+--------------+--------------+
|    asset | current(/BTC) | current(/BTS) | current(BTS/) | median(/BTS) | median(BTS/) |
+----------+---------------+---------------+---------------+--------------+--------------+
|      AUD |       575.841 |    0.00522667 |       191.326 |   0.00522667 |      191.326 |
|      BTC |         1.000 |    0.00000908 |    110173.498 |   0.00000908 |   110173.498 |
|      CAD |       568.891 |    0.00516359 |       193.664 |   0.00516359 |      193.664 |
|      CHF |       413.016 |    0.00374878 |       266.754 |   0.00374878 |      266.754 |
|      CNY |      2749.500 |    0.02495609 |        40.070 |   0.02495609 |       40.070 |
|      EUR |       380.983 |    0.00345802 |       289.182 |   0.00345802 |      289.182 |
|      GBP |       276.514 |    0.00250981 |       398.437 |   0.00250981 |      398.437 |
|     GOLD |         0.390 |    0.00000354 |    282548.404 |   0.00000354 |   282548.404 |
| HANGSENG |         0.149 |    0.00000135 |    738079.277 |   0.00004590 |    21785.530 |
|      HKD |      3251.938 |    0.02951652 |        33.879 |   0.02951652 |       33.879 |
|      JPY |     51158.537 |    0.46434522 |         2.154 |   0.46434522 |        2.154 |
|      KRW |    524375.000 |    4.75953847 |         0.210 |   4.75953847 |        0.210 |
|      MXN |      7158.703 |    0.06497663 |        15.390 |   0.06497663 |       15.390 |
|  NASDAQC |         0.084 |    0.00000076 |   1319158.894 |   0.00019909 |     5022.870 |
|   NIKKEI |         2.686 |    0.00002438 |     41024.779 |   0.00005249 |    19049.660 |
|      NZD |       623.606 |    0.00566022 |       176.672 |   0.00566022 |      176.672 |
|      RUB |     29131.944 |    0.26441880 |         3.782 |   0.26441880 |        3.782 |
|      SEK |      3531.145 |    0.03205076 |        31.201 |   0.03205076 |       31.201 |
|      SGD |       589.020 |    0.00534629 |       187.045 |   0.00534629 |      187.045 |
| SHENZHEN |         1.235 |    0.00001121 |     89215.810 |   0.00044914 |     2226.478 |
|   SILVER |        29.617 |    0.00026882 |      3719.898 |   0.00026882 |     3719.898 |
|      TRY |      1222.319 |    0.01109450 |        90.135 |   0.01109450 |       90.135 |
|      USD |       419.500 |    0.00380763 |       262.631 |   0.00380763 |      262.631 |
+----------+---------------+---------------+---------------+--------------+--------------+

efficent depth: 588,510 BTS
+--------------+------------+------------+------------+------------+
|       market |  bid price | bid_volume |  ask price | ask_volume |
+--------------+------------+------------+------------+------------+
|    btc38_btc | 0.00000899 |      3,752 | 0.00000917 |          0 |
|    btc38_cny | 0.02470900 |    498,000 | 0.02520817 |    142,849 |
|     bter_cny | 0.02470900 |          0 | 0.02520817 |          0 |
| poloniex_btc | 0.00000899 |     66,402 | 0.00000917 |    480,023 |
|    yunbi_cny | 0.02470900 |     20,355 | 0.02520817 |          0 |
+--------------+------------+------------+------------+------------+

install:
sudo pip install btsprice

upgrade:
sudo pip install btsprice --upgrade

run:
btsprice

next, I'll release a new version which can used by witness to publish feed price

edit: can used by witness now
https://bitsharestalk.org/index.php/topic,20529.msg265069.html#msg265069

41
General Discussion / an important security enhance
« on: December 09, 2015, 12:30:46 pm »
now, don't know why, several witness publish feed price double
for CNY, the normal price is 0.025, but some witness publish 0.049.

this can be a very serious security problem.
if more witness give wrong price, we will get a final feed price at 0.049,
users can borrow CNY at price 0.049, the collatereal is not enough,  a black swan will happe.

I don't want to talk about why they give a wrong feed price, maybe it's a bug of feed script,
maybe an exchange return a wrong price

the more important thing is we should  avoid this happen even if the witness give a wrong feed price.
so I ask for a new limit at the borrow logic

currently when we borrow from the wallet, the collatereal's price is the feed price.
we should get it from min(feed price, highest bid price)

42
Technical Support / what's the income from a private asset?
« on: December 08, 2015, 05:45:16 am »
seems transfer/borrow/place order ..... all belong to network, issuers can only got market trade fee, right?
and how to check the fees from market trade? and how to withdraw it.


43
Technical Support / issue for collateral with non BTS
« on: December 08, 2015, 02:08:37 am »
I am testing for private MPA which  collateral with non BTS(bitCNY) now
some issue about this will post at this thread.


44
Technical Support / how does globel settlle work?
« on: December 07, 2015, 03:13:15 am »
I'm testing global settle in a private network.
after I ask for global_settle_asset, the asset is still there, how will this work?
if there is a delay, how to change the delay?(I have set force_settlement_delay_sec to 0)

and I have some questions about the details:
1. if the asset is in a market order, will global settle cancel the order automatic?
2. if the asset is another asset's short backing asset, how to handle the asset's which currently in the collatereal?

45
Technical Support / how to change asset's permissions?
« on: December 07, 2015, 02:33:57 am »
with api update_asset, I can remove a permission, but can't add a permission.
from the source code asset_evaluator.cpp, seems don't allow add permission
Code: [Select]
270    // new issuer_permissions must be subset of old issuer permissions                                                                                               
271    FC_ASSERT(!(o.new_options.issuer_permissions & ~a.options.issuer_permissions),
272              "Cannot reinstate previously revoked issuer permissions on an asset.");
273
so how should I do if I want to add a permission for my private asset?

Pages: 1 2 [3] 4 5 6 7 8 9 10 ... 16