Databaser.insert_execution_details(msg)
    except ValueError:
        pass


# Websocket - tickertape
api = StockfighterAPI.StockFighterApi(api_key)
ticker = api.tickertape_socket(venue, account, tickertape_message)
fill_socket = api.executions_socket(venue, account, executions_message )


# check if api is up
print(pos.heartbeat())

# get quote
quote = pos.get_quote()
pprint.pprint(quote)

# create new dictionary object: order (means you will be placing the same size order all the time)
order = {
    'account': account,
    'venue': venue,
    'symbol': pos.ticker,
    'price': 3400,
    'qty': 50,
    'direction': 'sell',
    'orderType': 'limit'
}

# initialise qty
pos.qty = 0