Skip to main content
# Price Feed Script for BitShares

## Installation

Ubuntu 16.04 LTS

Start the installation

```
cd ~
pip3 install bitshares-pricefeed --user
```

Create config.yml
```
bitshares-pricefeed create
```

Add a feed producer name to the config.yml file just created
```
vim config.yml
# The producer name(s)
producer: your_witness_name
```

Enter Credentials

```
bitshares-pricefeed addkey
```

You will need to enter your cli wallet encryption passphrase. If you
don't have a pybitshares wallet, yet, one will be created:

```
Wallet Encryption Passphrase:
Repeat for confirmation:
```

You will need to enter your Private Key (Active key) here. Hit enter the second time it asks you.

```
Private Key (wif) [Enter to quit]:
```

Manually run the feed update

```
bitshares-pricefeed update
```

Create a place for a logfile

```
sudo touch /var/log/bitshare-pricefeed.log
sudo chown ubuntu /var/log/bitshare-pricefeed.log
```

Add to cron, where PASSWD is your Wallet Encryption Passphrase. This logic will send stdin and sterr to the logfile.

```
$ crontab -e

SHELL=/bin/bash
PATH=/home/ubuntu/bin:/home/ubuntu/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
UNLOCK="PASSWD"

0,15,30,45 * * * * bitshares-pricefeed --configfile /home/ubuntu/config.yml --skip-critical --no-confirm-warning update >> /var/log/bitshares-pricefeed.log 2>&1
```

## Help

```
# bitshares-pricefeed --help
Usage: bitshares-pricefeed [OPTIONS] COMMAND [ARGS]...

Options:
--configfile TEXT
--confirm-warning / --no-confirm-warning
Need for manual confirmation of warnings
--skip-critical / --no-skip-critical
Skip critical feeds
--help Show this message and exit.

Commands:
addkey Add a private key to the wallet
create Create config file
update Update price feed for assets
```

# IMPORTANT NOTE

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

Metadata

Release files for bitshares-pricefeed 0.0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bitshares-pricefeed 0.0.10
File Size Uploaded
bitshares-pricefeed-0.0.10.tar.gz 63.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bitshares-pricefeed 0.0.10
File Interpreter ABI Platform
bitshares_pricefeed-0.0.10-py3-none-any.whl Python 3 none any Details

Total release size: 160.9 kB

Release files / bitshares-pricefeed-0.0.10.tar.gz

Download URL bitshares-pricefeed-0.0.10.tar.gz
Size 63.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c8e475f2b5d8ee4a4878d49eb810592551fccae7d018f87fda10456e9dd18ca9
BLAKE2b-256 checksum
How to use checksums
b623ef83b9691e153b96bebe02629346d2f80209ea374ed1dab1e74d7dc339b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / bitshares_pricefeed-0.0.10-py3-none-any.whl

Download URL bitshares_pricefeed-0.0.10-py3-none-any.whl
Size 97.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
17a0bc17cd76bdb949187f176812feec31230a8c24bf4bec0505acd25a23bed0
BLAKE2b-256 checksum
How to use checksums
b2eb6b7ac3f9a98c54c6d9a8a48458367c67e57adae993ae6a525f27a18c1259
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.10 This release

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page