量化机器人系统开发(报价)丨量化炒币机器人系统开发(网站)

量化机器人系统软件开发APP平台设计

什么是量化交易机器人?

量化交易是指借助现代统计学和数学的方法,利用计算机技术来进行交易的投资方式。量化交易从庞大的历史数据中海选能带来超额收益的多种“大概率”事件以制定策略,用数量模型验证及固化这些规律和策略,然后严格执行已固化的策略来指导投资,以求获得可以持续的、稳定且高于平均收益的超额回报。

2.量化机器人有什么用?

(1)量化交易最大的优点就是减少了投资者情绪波动的影响,避免在市场极度狂热或悲观的情况下作出非理性的投资决策。

(2)。有了做市机器人,机器人就可以充当对应的买家或者卖家,在市场上交易盘活交易量。
TITLES = [‘idx’, ‘type’, ‘remaining’, ‘symbol’, ‘price’]
SPACING = [4, 6, 8, 10, 8]

def format_open_orders(orders) -> str:
def join_line(ln):
return ’ | '.join(str(item).center(SPACING[i]) for i, item in enumerate(ln))

title_line = join_line(TITLES)
lines = [title_line]
for idx, order in enumerate(orders):
    line = [idx, order['side'], order['remaining'], order['symbol'], order['price']]
    lines.append(join_line(line))

separator_line = '-' * len(title_line)
return f"\n{separator_line}\n".join(lines)

def format_order(order):
return f"{order[‘amount’]} {order[‘symbol’]} priced at {order[‘price’]}"

def format_balance(balance) -> str:
coin_balance_as_list = list(f"{coin}: {val}" for coin, val in balance.items())
return “\n”.join(coin_balance_as_list)

import logging
import os

import ccxt

from core.exchange import CryptoExchange
from core.telegrambot import TelegramBot
from core.tradeexcutor import TradeExecutor

if name == ‘main’:
logging.basicConfig(format=’%(asctime)s - %(levelname)s - %(message)s’, level=logging.INFO)

c_dir = os.path.dirname(__file__)
with open(os.path.join(c_dir, "config/secrets.txt")) as key_file:
    api_key, secret, telegram_tkn, user_id = key_file.read().splitlines()

ccxt_ex = ccxt.bitfinex()
ccxt_ex.apiKey = api_key
ccxt_ex.secret = secret

exchange = CryptoExchange(ccxt_ex)
trade_executor = TradeExecutor(exchange)
telegram_bot = TelegramBot(telegram_tkn, user_id, trade_executor)

telegram_bot.start_bot()

猜你喜欢

转载自blog.csdn.net/yy625019/article/details/113729463