Get Started
System Requirements
- Requires Python 3.10.
- Bittensor
Below are the prerequisites for validators.
-
4 vCPU + 16 GB memory
-
1 TB balanced persistent disk
-
1000 TAO staked
-
A Tiingo API account. (https://www.tiingo.com/) with the “Commercial” ($50/month) subscription.
-
A Polygon API account (https://polygon.io/) with “Currencies Starter ($49/month)” as well as “Stocks Advanced ($199/month)” subscriptions. IMPORTANT: After subscribing, complete the Polygon KYC questionnaire to enable realtime US equities prices. Message a Taoshi team member ASAP if you need guidance with this step! https://polygon.io/dashboard/agreements
Getting Started
Clone repository
git clone https://github.com/taoshidev/proprietary-trading-network.git
Change directory
cd proprietary-trading-network
Create Virtual Environment
python3 -m venv venv
Activate a Virtual Environment
. venv/bin/activate
Disable pip cache
export PIP_NO_CACHE_DIR=1
Install dependencies
pip install -r requirements.txt
Note: You should disregard any warnings about updating Bittensor after this. We want to use the version specified in requirements.txt
.
Create a local and editable installation
python3 -m pip install -e .
2. Create Wallets
This step creates local coldkey and hotkey pairs for your validator.
The validator will be registered to the subnet specified. This ensures that the validator can run the respective validator scripts.
Create a coldkey and hotkey for your validator wallet.
btcli wallet new_coldkey --wallet.name validatorbtcli wallet new_hotkey --wallet.name validator --wallet.hotkey default
You can list the local wallets on your machine with the following.
btcli wallet list
2a. Getting Testnet TAO
Discord
Please ask the Bittensor Discord community for testnet TAO. This will let you register your validators(s) on Testnet.
Please first join the Bittensor Discord here: https://discord.com/invite/bittensor
Please request testnet TAO here: https://discord.com/channels/799672011265015819/1190048018184011867
Bittensor -> help-forum -> requests for testnet tao
3. Register keys
This step registers your subnet validator keys to the subnet, giving it the first slot on the subnet.
btcli subnet register --wallet.name validator --wallet.hotkey default
To register your validator on the testnet add the --subtensor.network test
and --netuid 116
flags.
Follow the below prompts:
>> Enter netuid (0): # Enter the appropriate netuid for your environment (8 for the mainnet)Your balance is: # Your wallet balance will be shownThe cost to register by recycle is τ0.000000001 # Current registration costs>> Do you want to continue? [y/n] (n): # Enter y to continue>> Enter password to unlock key: # Enter your wallet password>> Recycle τ0.000000001 to register on subnet:8? [y/n]: # Enter y to register📡 Checking Balance...Balance: τ5.000000000 ➡ τ4.999999999✅ Registered
4. Check that your keys have been registered
This step returns information about your registered keys.
Check that your validator key has been registered:
btcli wallet overview --wallet.name validator
To check your validator on the testnet add the --subtensor.network test
flag
The above command will display the below:
Subnet: 8 # or 116 on testnetCOLDKEY HOTKEY UID ACTIVE STAKE(τ) RANK TRUST CONSENSUS INCENTIVE DIVIDENDS EMISSION(ρ) VTRUST VPERMIT UPDATED AXON HOTKEY_SS58validator default 197 True 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0 0.00000 56 none 5GKkQKmDLfsKaumnkD479RBoD5CsbN2yRbMpY88J8YeC5DT41 1 1 τ0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 ρ0 0.00000 Wallet balance: τ0.000999999