```python## Places a sell order (both limit and market orders are available)## amount - ## - string## price - If supplied, this will place a limit order to sell at the specified price.## If not supplied, this will place a market order to sell the amount of major## currency specified in amount at the market rate## - string## [book = 'btc_mxn'] - Specifies which book to use## - str>>> s_order = api.sell(amount='.0032', price='08000')>>> s_orderOrder(order_id=whtyptv0f348fajdydoswcf6cj20d0kahd97647l7ctnnd1lrpdn2suebwfpxz0f, type=sell, price=8000.00, amount=0.00320000, created_datetime=2016-04-22 15:41:00)

**Access to this API is available on request, and not enabled by default. Users won’t be able to use this API unless Bitso has enabled it on their account. [API Docs](https://bitso.com/api_info/?shell#transfer-api5)**

```python## Get a quote for a transfer for various Bitso Outlets.#### btc_amount - Mutually exclusive with amount. Either this, or amount should## be present in the request. The total amount in Bitcoins, as## provided by the user. NOTE: The amount is in BTC format## (900mbtc = .9 BTC).## - string## amount - Mutually exclusive with btc_amount. Either this, or btc_amount## should be present in the request. The total amount in Fiat currency.## Use this if you prefer specifying amounts in fiat instead of BTC.## - string## currency - An ISO 4217 fiat currency symbol (ie, "MXN"). If btc_amount is## provided instead of amount, this is the currency to which the BTC## price will be converted into. Otherwise, if amount is specified## instead of btc_amount, this is the currency of the specified amount.## - string

```python## Get a quote for a transfer for various Bitso Outlets.#### btc_amount - Mutually exclusive with amount. Either this, or amount should## be present in the request. The total amount in Bitcoins, as## provided by the user. NOTE: The amount is in BTC format## (900mbtc = .9 BTC).## - string## amount - Mutually exclusive with btc_amount. Either this, or btc_amount## should be present in the request. The total amount in Fiat currency.## Use this if you prefer specifying amounts in fiat instead of BTC.## - string## currency - An ISO 4217 fiat currency symbol (ie, "MXN"). If btc_amount is## provided instead of amount, this is the currency to which the BTC## price will be converted into. Otherwise, if amount is specified## instead of btc_amount, this is the currency of the specified amount.## - string## rate - This is the rate (e.g. BTC/MXN), as acquired from the## transfer_quote method. You must request a quote in this way before## creating a transfer.## - string## payment_outlet - The outlet_id as provided by quote method.## - string## required fields parameters - Each of the other 'required_fields', ## as stipulated in the TransferQuote for the chosen payment_outlet.## - string

WebSocket is a protocol providing full-duplex communication channels over a single TCP connection. [Bitso's Websocket API](https://bitso.com/api_info/?shell#websocket-api) allows a continuous connection that will receive updates according to the client's subscribed channels.

#### Available Channels: ####+ **'trades':** will send updates on each new registered trade.+ **'diff-orders':** will send across any modifications to the order book. Specifically, any state changes in existing orders (including orders not in the top 20), and any new orders.+ **'orders':** maintains an up-to-date list of the top 20 asks and the top 20 bids, new updates are sent across the channel whenever there is a change in either top 20.

An order book is always referred to in the API as “Major_Minor”. For example: “**btc_mxn**”

# Licence #

The MIT License (MIT)

Copyright (c) 2016 Mario Romero

Permission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, 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 THESOFTWARE.