create account

Python Library for Blocktrades.us Updates - All Convert Operations | Session | Coin | Balance | Citizenship | Bank | Wallet | Convert & User | and New Version V0.0.4 by hakancelik

View this thread on: hive.blogpeakd.comecency.com
· @hakancelik · (edited)
$49.03
Python Library for Blocktrades.us Updates - All Convert Operations | Session | Coin | Balance | Citizenship | Bank | Wallet | Convert & User | and New Version V0.0.4
#### Repository
https://github.com/hakancelik96/blocktrades

### Before the start
V0.0.1 version was really bad but a good start. Now, this library has been created in a more professional way and almost all operations have been added.

<img gnrl="br-4" src="https://cdn.steemitimages.com/DQmcxMvuEU6RaU3H5jFLEZT2PhwqTTVSaVV8DRQpc5aJavj/blocktrades.jpg"></img>

### HttpClient Class
#### Commits;

- [v2_wallets, v2_active_wallets api added, HttpClient class, convert opimproved](https://github.com/hakancelik96/blocktrades/commit/b72021e026d1c42b236b10e53f52fd64e7828f34#diff-22f463031d401882287a61efe22d7ddf)
- [readme update and base file name changed base to blocktrades_base](https://github.com/hakancelik96/blocktrades/commit/0da2b74ab3507185b21ba8e67f973a7de4fd35dc#diff-92e09362694...

<hr>

Read this content         on [www.coogger.com](www.coogger.com/@hakancelik/python-library-for-blocktradesus-updates-all-convert-operations-session-coin-balance-citizenship-bank-wallet-convert-user-and-new-version-v004)


- Dapp; [www.coogger.com](www.coogger.com)
- Category; [project](https://www.coogger.com/category/project/)
- Language; [english](https://www.coogger.com/language/english/)
- Topic; [blocktrades](https://www.coogger.com/blocktrades/@hakancelik/)
- User; [@hakancelik](www.coogger.com/@hakancelik)<br>

--------

Posted using [www.coogger.com](https://www.coogger.com)
Coogger is an ecosystem where is **knowledge sharing network** which can **build web dapps** and **groups**

#### Contact Us

- [on Spectrum](https://spectrum.chat/coogger)
- [on Discord](https://discord.gg/avmdZJa)
πŸ‘  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 168 others
properties (23)
authorhakancelik
permlinkpython-library-for-blocktradesus-updates-all-convert-operations-session-coin-balance-citizenship-bank-wallet-convert-user-and-new-version-v004
categorycoogger
json_metadata"{"format": "markdown", "tags": ["coogger", "utopian-io", "development", "blocktrades", "python"], "app": "coogger/1.4.1", "ecosystem": {"name": "coogger", "version": "1.4.1", "dapp": "coogger", "topic": "blocktrades", "category": "project", "language": "english", "address": "https://github.com/hakancelik96/blocktrades", "body": "#### Repository\r\nhttps://github.com/hakancelik96/blocktrades\r\n\r\n### Before the start\r\nV0.0.1 version was really bad but a good start. Now, this library has been created in a more professional way and almost all operations have been added.\r\n\r\n<img gnrl=\"br-4\" src=\"https://cdn.steemitimages.com/DQmcxMvuEU6RaU3H5jFLEZT2PhwqTTVSaVV8DRQpc5aJavj/blocktrades.jpg\"></img>\r\n\r\n### HttpClient Class\r\n#### Commits;\r\n\r\n- [v2_wallets, v2_active_wallets api added, HttpClient class, convert opimproved](https://github.com/hakancelik96/blocktrades/commit/b72021e026d1c42b236b10e53f52fd64e7828f34#diff-22f463031d401882287a61efe22d7ddf)\r\n- [readme update and base file name changed base to blocktrades_base](https://github.com/hakancelik96/blocktrades/commit/0da2b74ab3507185b21ba8e67f973a7de4fd35dc#diff-92e0936269466006f59cc5e4ec48f880)\r\n- [more doc/HttpClient and get_coins function imporved.](https://github.com/hakancelik96/blocktrades/commit/4fed875d174c52e3df8876e0b4370e2446a44298#diff-92e0936269466006f59cc5e4ec48f880)\r\n- [blocktrades class added/convert and api imporved/new function and services](https://github.com/hakancelik96/blocktrades/commit/bfa5e88c7f65e218c85c4a0fe6331e3d78173620#diff-92e0936269466006f59cc5e4ec48f880)\r\n- [get_user, register_user, forgot_password, restore_password, validate_email](https://github.com/hakancelik96/blocktrades/commit/0303d0a46eca3515c7bef2f0fb084aa068c566a2#diff-92e0936269466006f59cc5e4ec48f880)\r\n- [Classes - Coin|Balance | Citizenship | Bank | Wallet | Convert | User | Session](https://github.com/hakancelik96/blocktrades/commit/62908108ae17301b7241966faa3acd833838a98c#diff-92e0936269466006f59cc5e4ec48f880)\r\n- [Bank class finished](https://github.com/hakancelik96/blocktrades/commit/b2edfb7d8ac3d1266dab10a7f77e5afd6972712e#diff-92e0936269466006f59cc5e4ec48f880)\r\n- [finished citizenship](https://github.com/hakancelik96/blocktrades/commit/92cacf1c49cbe1235d5b6c05e0c0b042e9a6794f#diff-92e0936269466006f59cc5e4ec48f880)\r\n- [finished Sessions class](https://github.com/hakancelik96/blocktrades/commit/b6aa61ceceb6a1003a6c7013ada4032afb3155fe#diff-92e0936269466006f59cc5e4ec48f880)\r\n- [some bugs fixed, Sessions class was tested](https://github.com/hakancelik96/blocktrades/commit/19f024e4524503b07d936b3423a8f52124bf4ebc#diff-92e0936269466006f59cc5e4ec48f880)\r\n\r\nWe can use this class to get parameters and send request from Blocktrades API services.\r\n\r\nFor example ;\r\n\r\n```python\r\n\r\n>>> from blocktrades_base.http_client import HttpClient\r\n>>> client = HttpClient(**kwargs)\r\n>>> client.get(api_address:str)\r\n# get request\r\n>>> client.post(api_address:str, data:dict | default None)\r\n# post request\r\n>>> client.put(api_address:str, data:dict | default None)\r\n# put request\r\n>>> client.delete_requets(api_address:str)\r\n# delete request\r\n\r\n```\r\n\r\n### utils.get_active_wallets_by_type\r\n#### Commit;\r\n\r\n- [v2_wallets, v2_active_wallets api added, HttpClient class, convert op improved](https://github.com/hakancelik96/blocktrades/commit/b72021e026d1c42b236b10e53f52fd64e7828f34#diff-5abc319d7cc1201be24e20cc83d7d045)\r\n- [all convert ops were added](https://github.com/hakancelik96/blocktrades/commit/8efb0c7ddbd08961960c25a054cde01fab3ac14c#diff-5abc319d7cc1201be24e20cc83d7d045)\r\n- [more doc/HttpClient and get_coins function imporved.](https://github.com/hakancelik96/blocktrades/commit/4fed875d174c52e3df8876e0b4370e2446a44298#diff-9649dc245e0c6fc872bacffc48ff8b35)\r\n- [blocktrades class added/convert and api imporved/new function and services](https://github.com/hakancelik96/blocktrades/commit/bfa5e88c7f65e218c85c4a0fe6331e3d78173620#diff-9649dc245e0c6fc872bacffc48ff8b35)\r\n- [some bugs fixed, Sessions class was tested](https://github.com/hakancelik96/blocktrades/commit/19f024e4524503b07d936b3423a8f52124bf4ebc#diff-9649dc245e0c6fc872bacffc48ff8b35)\r\n\r\nWe can see the active wallet types using this function and this library use it for execute convert operations.\r\n\r\n```python\r\n\r\n>>> from blocktrades_base.utils import get_active_wallets_by_type\r\n>>> for wallet_type in get_active_wallets_by_type():\r\n>>> print(wallet_type)\r\n\r\n```\r\n\r\n\r\n### All Converter Functions\r\n#### Commit;\r\n\r\n- [v2_wallets, v2_active_wallets api added, HttpClient class, convert op improved](https://github.com/hakancelik96/blocktrades/commit/b72021e026d1c42b236b10e53f52fd64e7828f34#diff-da13791b1879027446be92ee3b113362)\r\n- [all convert ops were added](https://github.com/hakancelik96/blocktrades/commit/8efb0c7ddbd08961960c25a054cde01fab3ac14c#diff-da13791b1879027446be92ee3b113362)\r\n- [readme update and base file name changed base to blocktrades_base](https://github.com/hakancelik96/blocktrades/commit/0da2b74ab3507185b21ba8e67f973a7de4fd35dc#diff-da13791b1879027446be92ee3b113362)\r\n- [blocktrades class added/convert and api imporved/new function and services](https://github.com/hakancelik96/blocktrades/commit/bfa5e88c7f65e218c85c4a0fe6331e3d78173620#diff-da13791b1879027446be92ee3b113362)\r\n- [finished Sessions class](https://github.com/hakancelik96/blocktrades/commit/b6aa61ceceb6a1003a6c7013ada4032afb3155fe#diff-da13791b1879027446be92ee3b113362)\r\n\r\nIf you want to see all convert functions, you should write like this to see all functions, there are **132 functions**,\r\nyou can use all\r\n\r\n```python\r\n\r\n>>> from blocktrades.convert import __all__\r\n>>> from blocktrades.convert import *\r\n>>> for func in __all__:\r\n>>> print(func)\r\n\r\n```\r\n\r\nFor example;\r\n\r\n```python\r\n\r\n>>> steem_to_sp(10)\r\n>>> ltc_to_steem(1)\r\n>>> btc_to_ltc(1)\r\n>>> doge_to_sbd(10000)\r\n# run all convert function\r\n>>> for i in __all__:\r\n>>> exec(f\"print({i}(1))\")\r\n\r\n```\r\n\r\n### Blocktrades package\r\n#### Commit;\r\n\r\n- [blocktrades class added/convert and api imporved/new function and services](https://github.com/hakancelik96/blocktrades/commit/bfa5e88c7f65e218c85c4a0fe6331e3d78173620#diff-baa73fdc5901821b8c604e668ced545b)\r\n- [readme/api address bug fixed/functions doc](https://github.com/hakancelik96/blocktrades/commit/985568268e16a6e1b70f94edb3df7d6ff6dd8458#diff-baa73fdc5901821b8c604e668ced545b)\r\n- [wallet_validator/](https://github.com/hakancelik96/blocktrades/commit/88b66d37d1f0dcf7f42884caa78bcfe6674dcae5#diff-baa73fdc5901821b8c604e668ced545b)\r\n- [get_user, register_user, forgot_password, restore_password, validate_email](https://github.com/hakancelik96/blocktrades/commit/0303d0a46eca3515c7bef2f0fb084aa068c566a2#diff-baa73fdc5901821b8c604e668ced545b)\r\n- [Classes - Coin|Balance | Citizenship | Bank | Wallet | Convert | User| Session](https://github.com/hakancelik96/blocktrades/commit/62908108ae17301b7241966faa3acd833838a98c#diff-baa73fdc5901821b8c604e668ced545b)\r\n- [Bank class finished](https://github.com/hakancelik96/blocktrades/commit/b2edfb7d8ac3d1266dab10a7f77e5afd6972712e#diff-baa73fdc5901821b8c604e668ced545b)\r\n- [finished citizenship](https://github.com/hakancelik96/blocktrades/commit/92cacf1c49cbe1235d5b6c05e0c0b042e9a6794f#diff-baa73fdc5901821b8c604e668ced545b)\r\n- [finished Sessions class](https://github.com/hakancelik96/blocktrades/commit/b6aa61ceceb6a1003a6c7013ada4032afb3155fe#diff-baa73fdc5901821b8c604e668ced545b)\r\n- [some bugs fixed, Sessions class was tested](https://github.com/hakancelik96/blocktrades/commit/19f024e4524503b07d936b3423a8f52124bf4ebc#diff-baa73fdc5901821b8c604e668ced545b)\r\n- [Coin class fixed](https://github.com/hakancelik96/blocktrades/commit/864f36e9d8afef5c3476f1820e7318bdb8fc3595#diff-baa73fdc5901821b8c604e668ced545b)\r\n- [readme and V0.0.4](https://github.com/hakancelik96/blocktrades/commit/d750d6dc8a7e7c72858672962631f495651a26f1#diff-ea12217e089daf4a5dab30b029874e3a)\r\n\r\nThere are a lot of classes in this package, these are **Session**, **Coin**, **Balance**,\r\n**Citizenship**, **Bank**, **Wallet**, **Convert** and **User**. The classes in this package help us to use all the operations that blocktrades.us provides with API services.\r\n\r\n### How to use blocktrades package?\r\n\r\n#### Session Class\r\n\r\nI've written how to use each function in all functions,\r\nso you can learn how to use it by writing a code like the one below.\r\n\r\n```python\r\n\r\n>>> from blocktrades.blocktrades import Session\r\n>>> session = Session(session_token:str)\r\n>>> session.session\r\n>>> Session.session.__doc__\r\n# >>> session = Session(session_token:str)\r\n# >>> session.session\r\n#\r\n# Implementation Notes;\r\n# \"Get information about the specified session\"\r\n#\r\n# Model Schema;\r\n# {\r\n# \"token\": \"\",\r\n# \"user\": {\r\n# \"email\": \"\",\r\n# \"userId\": \"\",\r\n# \"timeZone\": \"\",\r\n# \"activated\": false,\r\n# \"creationTime\": \"\",\r\n# \"lastModifiedTime\": \"\",\r\n# \"lastLoginTime\": \"\"\r\n# },\r\n# \"expirationTime\": \"\"\r\n# }\r\n>>> session = Session(session_token:str)\r\n>>> session.invalid_method\r\n>>> Session.invalid_method.__doc__\r\n# >>> session = Session(session_token:str)\r\n# >>> session.invalid_method\r\n#\r\n# Implementation Notes;\r\n# \"Test invalid method\"\r\n>>> session = Session(session_token:str)\r\n>>> session.user_details\r\n>>> Session.user_details.__doc__\r\n# >>> session = Session(session_token:str)\r\n# >>> session.user_details\r\n#\r\n# Implementation Notes;\r\n# \"Get user details\"\r\n>>> session = Session(email:str, password:str)\r\n>>> session.create\r\n>>> Session.create.__doc__\r\n# >>> session = Session(email:str, password:str)\r\n# >>> session.create\r\n#\r\n# Implementation Notes;\r\n# \"To login as an existing user, specify a username and password.\r\n# To create a new unregistered session, leave the username, and password null.\"\r\n>>> session = Session(session_token:str, first_name:str, last_name:str, date_of_birth:str, place_of_birth:str,\r\n national_id_number:str, national_id_type:str)\r\n>>> session.create_user_details\r\n>>> session = Session(session_token:str, old_password:str, new_password:str, email:str)\r\n>>> session.update_user_credentials\r\n>>> session = Session(session_token:str, first_name:str, last_name:str, date_of_birth:str, place_of_birth:str,\r\nnational_id_number:str, national_id_type:str)\r\n>>> session.update_user_details\r\n>>> session = Session(session_token:str)\r\n>>> session.delete\r\n\r\n```\r\n\r\n#### Coin Class\r\n\r\n```python\r\n\r\n>>> from blocktrades.blocktrades import Coin\r\n>>> coin = Coin()\r\n>>> coin.coins\r\n>>> Coin.coins.__doc__\r\n# >>> coin = Coin()\r\n# >>> coin.coins\r\n# Implementation Notes;\r\n# \"Returns detailed info about each of the cryptocoin types supported by *BlockTrades*\"\r\n>>> coin = Coin(coin_type:str)\r\n>>> coin.coin\r\n>>> Coin.coin.__doc__\r\n# >>> coin = Coin(coin_type:str)\r\n# >>> coin.coin\r\n# Implementation Notes;\r\n# \"Returns detailed info about a specific coin type including users' declarations\"\r\n\r\n```\r\n\r\n#### Balance class\r\n\r\n```python\r\n\r\n>>> from blocktrades.blocktrades import Balance\r\n>>> balance = Balance(session_token:str)\r\n>>> balance.balances\r\n# Returns all user's affiliate balances\r\n>>> balance = Balance(coin_type:str, session_token:str)\r\n>>> balance.balance\r\n# Returns detailed info about a selected user's affiliate balance\r\n>>> balance = Balance(coin_type:str, rate_fee:str, session_token:str)\r\n>>> balance.set_rate_fee\r\n# Set the affiliate rate fee on a given coin type\r\n>>> balance = Balance(\r\n coin_type:str, amount_to_withdraw:str, receive_address:str,\r\n receive_memo:str, output_coin_type:str, session_token:str\r\n)\r\n>>> balance.withdraw\r\n# Allow an affiliate to withdraw some or all of their balance in a coin type\r\n\r\n```\r\n\r\n#### Citizenship class\r\n\r\n```python\r\n\r\n>>> from blocktrades.blocktrades import Citizenship\r\n>>> citizenship = Citizenship(session_token:str)\r\n>>> citizenship.citizenship\r\n# Returns info of user's citizenships\r\n>>> citizenship = Citizenship()\r\n>>> citizenship.countries\r\n# Returns list of all countries\r\n>>> citizenship = Citizenship(country_id:str, session_token:str)\r\n>>> citizenship.country\r\n# Returns info about a specific user's citizenship\r\n>>> citizenship = Citizenship(country_id:str, is_primary:str, session_token:str)\r\n>>> citizenship.create\r\n# Create New User's citizenship\r\n>>> citizenship = Citizenship(country_id:str, new_country_id:str, is_primary:str, session_token:str)\r\n>>> citizenship.update\r\n# Update Existing User's Ctizenship\r\n>>> citizenship = Citizenship(country_id:str, session_token:str)\r\n>>> citizenship.delete\r\n# Delete Given User's Citizenship\r\n\r\n```\r\n\r\n#### Bank class\r\n\r\n```python\r\n\r\n>>> from blocktrades.blocktrades import Bank\r\n>>> bank = Bank(full:bool | default True, session_token:str)\r\n>>> bank.banks\r\n# Returns list of all user's bank accounts\r\n>>> bank = Bank()\r\n>>> bank.currencies\r\n# Returns list of all currencies\r\n>>> bank = Bank(country_id:str, cy_id:str)\r\n>>> bank.rule\r\n# Returns best matching rule for showing/hiding fields of\r\n# Bank Account for given country and currency\r\n>>> bank = Bank()\r\n>>> bank.rules\r\n# Returns rules for showing/hiding fields of Bank Account depending\r\n# on country and currency\r\n>>> bank = Bank(create:bool | default True)\r\n>>> bank.validations\r\n# Returns validation information for fields of Bank Account\r\n>>> bank = Bank(bank_account_id:str, session_token:str)\r\n>>> bank.bank\r\n# Returns validation information for fields of Bank Account\r\n>>> bank = Bank(nick_name:str, currency_id:str, account_holder:str, account_number:str,\r\n iban:str, bank_name:str, sort_code:str, routing_number:str, swift_bic:str, ifsc_code:str, routing_code:str,\r\n user_address_id:str, country_id:str, zip:str, city:str, administrative_area:str, dependent_locality:str,\r\n sorting_code:str, organization:str, address_line1:str, address_line2:str, session_token:str )\r\n>>> bank.create\r\n# Create New User's Bank Account.\r\n>>> bank = Bank(nick_name:str, currency_id:str, account_holder:str, account_number:str,\r\n iban:str, bank_name:str, sort_code:str, routing_number:str, swift_bic:str, ifsc_code:str, routing_code:str,\r\n user_address_id:str, country_id:str, zip:str, city:str, administrative_area:str, dependent_locality:str,\r\n sorting_code:str, organization:str, address_line1:str, address_line2:str, session_token:str)\r\n>>> bank.update\r\n# Update Exisiting User's Bank Account\r\n>>> bank = Bank(account_id:str, session_token:str)\r\n>>> bank.delete\r\n# Delete Given User's Bank Account\r\n\r\n```\r\n\r\n#### Wallet class\r\n\r\n```python\r\n\r\n>>> from blocktrades.blocktrades import Wallet\r\n>>> wallet = Wallet()\r\n>>> wallet.active_wallets\r\n# This returns a list of walletTypes\r\n>>> wallet = Wallet()\r\n>>> wallet.wallets\r\n# Returns the list of wallets supported by *BlockTrades*\r\n>>> wallet = Wallet(wallet_type='steem')\r\n>>> wallet.wallet\r\n# Returns information about a single specific wallet\r\n>>> wallet = Wallet(wallet_type:str, address:str, request_balances:bool | default True)\r\n>>> wallet.wallet_validator\r\n# Validate whether an address is valid for a given wallet.\r\n\r\n```\r\n\r\n#### Convert class\r\n\r\n```python\r\n\r\n>>> from blocktrades.blocktrades import Convert\r\n>>> convert = Convert(amount:float, input_type:str, output_type:str)\r\n>>> convert.estimate_output_amount\r\n>>> convert = Convert(amount:float, input_type:str, output_type:str)\r\n>>> convert.estimate_input_amount\r\n\r\n```\r\n\r\n#### User class\r\n\r\n```python\r\n\r\n>>> from blocktrades.blocktrades import User\r\n>>> user = User(session_token:str)\r\n>>> user.get_user\r\n# You can only get user details when logged in as that user.\r\n# This call works for both registered and unregistered sessions.\r\n>>> user = User(email:str, password:str, session_token:str)\r\n>>> user.register_user\r\n# This registers a new user with the given username and password. The newly-registered\r\n# user is initally inactive. The user will be sent an email with a validation link to\r\n# verify that they own the email address. Once they click on the validation link,\r\n# they will be able to login.\r\n>>> user = User(email:str)\r\n>>> user.forgot_password\r\n# When a new user forgot password, BlockTrades sends a restoring email with a link.\r\n# The user clicks on to restore password.\r\n>>> user = User(user_id:str, restoration_id:str)\r\n>>> user.restore_password\r\n# When a user clicks link from restoring email, then user has possibility of changing password.\r\n>>> user = User(user_id:str, validation_id:str)\r\n>>> user.validate_email\r\n# When a new user is created, BlockTrades sends a validation email with a link.\r\n# The user clicks on to verify that they own the email address.\r\n\r\n```\r\n\r\n#### More\r\n\r\n```python\r\n\r\nfrom blocktrades.convert import __all__\r\nfrom blocktrades.blocktrades import Session, Convert, Coin, User\r\n\r\nfor func in __all__:\r\n print(func, end=\", \")\r\nsession = Session(email=\"hakancelik96@outlook.com\", password=\"password\")\r\nconvert = Convert(amount=2, input_type=\"ltc\", output_type=\"steem\")\r\ncoin = Coin(coin_type=\"ltc\")\r\nuser = User(email=\"hakancelik96@outlook.com\")\r\nprint(\" --- session ---\")\r\nprint(session.create)\r\nprint(\" --- coin ---\")\r\nprint(coin.coin)\r\nprint(\" --- convert ---\")\r\nprint(convert.estimate_input_amount)\r\nprint(\" --- user ---\")\r\nprint(user.forgot_password)\r\n\r\n```\r\n\r\n**You can see execute of these codes in the comment of @execute-python.**\r\n\r\n### Roadmap\r\n\r\nI have written the headings that need to be done below, There are yet unfinished operations, I will be tested and added using this [address ](https://blocktrades.us/api/v2/explorer/)\r\n\r\n- TODO Class Address\r\n- TODO Class Announcement\r\n- TODO Class Aeclaration\r\n- TODO Class Delegation\r\n- TODO Class InputAddress\r\n- TODO Class TradingPairs\r\n- TODO Class DepositLimit\r\n- TODO Class Mapping\r\n- TODO Class OutputAddress\r\n- TODO Class Transaction\r\n- TODO Class InitiateTrade\r\n- TODO Class InitiateFixedPriceRrade\r\n- TODO Class Transaction\r\n- TODO Class Crowdfund\r\n\r\n#### GitHub Account\r\nhttps://github.com/hakancelik96"}}"
created2018-11-06 00:15:36
last_update2018-12-30 01:27:36
depth0
children6
last_payout2018-11-13 00:15:36
cashout_time1969-12-31 23:59:59
total_payout_value37.153 HBD
curator_payout_value11.877 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,621
author_reputation15,102,487,166,852
root_title"Python Library for Blocktrades.us Updates - All Convert Operations | Session | Coin | Balance | Citizenship | Bank | Wallet | Convert & User | and New Version V0.0.4"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id74,754,497
net_rshares45,070,520,832,243
author_curate_reward""
vote details (232)
@codingdefined ·
$9.50
Thank you for your contribution. I really like when someone improves someone's code, it is helpful for the people using it as well as for maintaining it. The post could have been improved a little bit without writing everything in the code block but if you would have used [Carbon](https://carbon.now.sh/?bg=rgba(189%2C16%2C224%2C1)&t=seti&wt=none&l=text%2Fx-csharp&ds=true&dsyoff=20px&dsblur=68px&wc=true&wa=true&pv=48px&ph=32px&ln=false&fm=Hack&fs=14px&lh=133%25&si=false&es=2x&wm=false&ts=false). The code looks good and a nice contribution.

----

Your contribution has been evaluated according to [Utopian policies and guidelines](https://join.utopian.io/guidelines), as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, [click here](https://review.utopian.io/result/3/2222222).

---- 
Need help? Write a ticket on https://support.utopian.io/. 
Chat with us on [Discord](https://discord.gg/uTyJkNm). 
[[utopian-moderator]](https://join.utopian.io/)
πŸ‘  , , , , , , , , , ,
properties (23)
authorcodingdefined
permlinkre-hakancelik-python-library-for-blocktradesus-updates-all-convert-operations-session-coin-balance-citizenship-bank-wallet-convert-user-and-new-version-v004-20181106t094109720z
categorycoogger
json_metadata{"tags":["coogger"],"links":["https://carbon.now.sh/?bg=rgba(189%2C16%2C224%2C1)&t=seti&wt=none&l=text%2Fx-csharp&ds=true&dsyoff=20px&dsblur=68px&wc=true&wa=true&pv=48px&ph=32px&ln=false&fm=Hack&fs=14px&lh=133%25&si=false&es=2x&wm=false&ts=false","https://join.utopian.io/guidelines","https://review.utopian.io/result/3/2222222","https://support.utopian.io/","https://discord.gg/uTyJkNm","https://join.utopian.io/"],"app":"steemit/0.1"}
created2018-11-06 09:41:09
last_update2018-11-06 09:41:09
depth1
children2
last_payout2018-11-13 09:41:09
cashout_time1969-12-31 23:59:59
total_payout_value7.201 HBD
curator_payout_value2.302 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,041
author_reputation529,662,702,871,277
root_title"Python Library for Blocktrades.us Updates - All Convert Operations | Session | Coin | Balance | Citizenship | Bank | Wallet | Convert & User | and New Version V0.0.4"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id74,776,469
net_rshares8,688,293,914,494
author_curate_reward""
vote details (11)
@hakancelik ·
Thanks for reviewing and advice, I had no idea the carbon site, Next time I will try to improve my post using this site.
properties (22)
authorhakancelik
permlinkre-codingdefined-re-hakancelik-python-library-for-blocktradesus-updates-all-convert-operations-session-coin-balance-citizenship-bank-wallet-convert-user-and-new-version-v004-20181106t101002229z
categorycoogger
json_metadata{"tags":["coogger"],"app":"steemit/0.1"}
created2018-11-06 10:10:00
last_update2018-11-06 10:10:00
depth2
children0
last_payout2018-11-13 10:10:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length120
author_reputation15,102,487,166,852
root_title"Python Library for Blocktrades.us Updates - All Convert Operations | Session | Coin | Balance | Citizenship | Bank | Wallet | Convert & User | and New Version V0.0.4"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id74,777,711
net_rshares0
@utopian-io ·
Thank you for your review, @codingdefined! Keep up the good work!
properties (22)
authorutopian-io
permlinkre-re-hakancelik-python-library-for-blocktradesus-updates-all-convert-operations-session-coin-balance-citizenship-bank-wallet-convert-user-and-new-version-v004-20181106t094109720z-20181108t190243z
categorycoogger
json_metadata"{"app": "beem/0.20.9"}"
created2018-11-08 19:02:45
last_update2018-11-08 19:02:45
depth2
children0
last_payout2018-11-15 19:02:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length65
author_reputation152,955,367,999,756
root_title"Python Library for Blocktrades.us Updates - All Convert Operations | Session | Coin | Balance | Citizenship | Bank | Wallet | Convert & User | and New Version V0.0.4"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id74,932,857
net_rshares0
@execute-python ·
$0.06
Execute Python
#### Your python code

```

from blocktrades.convert import __all__
from blocktrades.blocktrades import Session, Convert, Coin, User

for func in __all__:
    print(func, end=", ")
session = Session(email="hakancelik96@outlook.com", password="password")
convert = Convert(amount=2, input_type="ltc", output_type="steem")
coin = Coin(coin_type="ltc")
user = User(email="hakancelik96@outlook.com")
print(" --- session ---")
print(session.create)
print(" --- coin ---")
print(coin.coin)
print(" --- convert ---")
print(convert.estimate_input_amount)
print(" --- user ---")
print(user.forgot_password)


```

#### Execute your python code

```
btc_to_bch, btc_to_bts, btc_to_dash, btc_to_doge, btc_to_eth, btc_to_ltc, btc_to_xmr, btc_to_omni, btc_to_steem, btc_to_sbd, btc_to_delegated_steem_power_90_days, bch_to_btc, bch_to_bts, bch_to_dash, bch_to_doge, bch_to_eth, bch_to_ltc, bch_to_xmr, bch_to_omni, bch_to_steem, bch_to_sbd, bch_to_delegated_steem_power_90_days, bts_to_btc, bts_to_bch, bts_to_dash, bts_to_doge, bts_to_eth, bts_to_ltc, bts_to_xmr, bts_to_omni, bts_to_steem, bts_to_sbd, bts_to_delegated_steem_power_90_days, dash_to_btc, dash_to_bch, dash_to_bts, dash_to_doge, dash_to_eth, dash_to_ltc, dash_to_xmr, dash_to_omni, dash_to_steem, dash_to_sbd, dash_to_delegated_steem_power_90_days, doge_to_btc, doge_to_bch, doge_to_bts, doge_to_dash, doge_to_eth, doge_to_ltc, doge_to_xmr, doge_to_omni, doge_to_steem, doge_to_sbd, doge_to_delegated_steem_power_90_days, eth_to_btc, eth_to_bch, eth_to_bts, eth_to_dash, eth_to_doge, eth_to_ltc, eth_to_xmr, eth_to_omni, eth_to_steem, eth_to_sbd, eth_to_delegated_steem_power_90_days, ltc_to_btc, ltc_to_bch, ltc_to_bts, ltc_to_dash, ltc_to_doge, ltc_to_eth, ltc_to_xmr, ltc_to_omni, ltc_to_steem, ltc_to_sbd, ltc_to_delegated_steem_power_90_days, xmr_to_btc, xmr_to_bch, xmr_to_bts, xmr_to_dash, xmr_to_doge, xmr_to_eth, xmr_to_ltc, xmr_to_omni, xmr_to_steem, xmr_to_sbd, xmr_to_delegated_steem_power_90_days, omni_to_btc, omni_to_bch, omni_to_bts, omni_to_dash, omni_to_doge, omni_to_eth, omni_to_ltc, omni_to_xmr, omni_to_steem, omni_to_sbd, omni_to_delegated_steem_power_90_days, steem_to_btc, steem_to_bch, steem_to_bts, steem_to_dash, steem_to_doge, steem_to_eth, steem_to_ltc, steem_to_xmr, steem_to_omni, steem_to_sbd, steem_to_delegated_steem_power_90_days, sbd_to_btc, sbd_to_bch, sbd_to_bts, sbd_to_dash, sbd_to_doge, sbd_to_eth, sbd_to_ltc, sbd_to_xmr, sbd_to_omni, sbd_to_steem, sbd_to_delegated_steem_power_90_days, delegated_steem_power_90_days_to_btc, delegated_steem_power_90_days_to_bch, delegated_steem_power_90_days_to_bts, delegated_steem_power_90_days_to_dash, delegated_steem_power_90_days_to_doge, delegated_steem_power_90_days_to_eth, delegated_steem_power_90_days_to_ltc, delegated_steem_power_90_days_to_xmr, delegated_steem_power_90_days_to_omni, delegated_steem_power_90_days_to_steem, delegated_steem_power_90_days_to_sbd,  --- session ---
{'error': {'code': 400, 'message': 'unspecified: authentication error: invalid username or password', 'details': {'code': 0}}}
 --- coin ---
{'coinType': 'ltc', 'walletName': 'Litecoin', 'name': 'Litecoin', 'symbol': 'LTC', 'walletSymbol': 'LTC', 'walletType': 'litecoin', 'transactionFee': '0.003', 'precision': '100000000.', 'backingCoinType': None, 'supportsOutputMemos': False, 'restricted': False, 'authorized': None, 'notAuthorizedReasons': None}
 --- convert ---
{'inputAmount': '0.02945764', 'inputCoinType': 'ltc', 'outputAmount': '2', 'outputCoinType': 'steem'}
 --- user ---
<Response [200]>

```

---------
<center>
<sub>**If you found this comment useful, please consider upvoting it to help keep this execute python bot running.**</sub>
<sub>Made by @hakancelik</sub>
</center>
πŸ‘  
properties (23)
authorexecute-python
permlinkre-python-library-for-blocktradesus-updates-all-convert-operations-session-coin-balance-citizenship-bank-wallet-convert-user-and-new-version-v004-20181106t013630
categorycoogger
json_metadata""
created2018-11-06 01:36:33
last_update2018-11-06 01:36:33
depth1
children0
last_payout2018-11-13 01:36:33
cashout_time1969-12-31 23:59:59
total_payout_value0.062 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,715
author_reputation2,776,454,012
root_title"Python Library for Blocktrades.us Updates - All Convert Operations | Session | Coin | Balance | Citizenship | Bank | Wallet | Convert & User | and New Version V0.0.4"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id74,757,664
net_rshares77,013,691,452
author_curate_reward""
vote details (1)
@steem-ua ·
#### Hi @hakancelik!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
**Feel free to join our [@steem-ua Discord server](https://discord.gg/KpBNYGz)**
properties (22)
authorsteem-ua
permlinkre-python-library-for-blocktradesus-updates-all-convert-operations-session-coin-balance-citizenship-bank-wallet-convert-user-and-new-version-v004-20181106t103326z
categorycoogger
json_metadata"{"app": "beem/0.20.9"}"
created2018-11-06 10:33:27
last_update2018-11-06 10:33:27
depth1
children0
last_payout2018-11-13 10:33:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length289
author_reputation23,214,230,978,060
root_title"Python Library for Blocktrades.us Updates - All Convert Operations | Session | Coin | Balance | Citizenship | Bank | Wallet | Convert & User | and New Version V0.0.4"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id74,778,750
net_rshares0
@utopian-io ·
Hey, @hakancelik!

**Thanks for contributing on Utopian**.
We’re already looking forward to your next contribution!

**Get higher incentives and support Utopian.io!**
 Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via [SteemPlus](https://chrome.google.com/webstore/detail/steemplus/mjbkjgcplmaneajhcbegoffkedeankaj?hl=en) or [Steeditor](https://steeditor.app)).

**Want to chat? Join us on Discord https://discord.gg/h52nFrV.**

<a href='https://steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1'>Vote for Utopian Witness!</a>
properties (22)
authorutopian-io
permlinkre-python-library-for-blocktradesus-updates-all-convert-operations-session-coin-balance-citizenship-bank-wallet-convert-user-and-new-version-v004-20181106t195119z
categorycoogger
json_metadata"{"app": "beem/0.20.9"}"
created2018-11-06 19:51:21
last_update2018-11-06 19:51:21
depth1
children0
last_payout2018-11-13 19:51:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length592
author_reputation152,955,367,999,756
root_title"Python Library for Blocktrades.us Updates - All Convert Operations | Session | Coin | Balance | Citizenship | Bank | Wallet | Convert & User | and New Version V0.0.4"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id74,808,007
net_rshares0