midas-client 1.0.23

A Python client library to access the midas_server backend.
Documentation
{
  "parameters": {
    "strategy_name": "cointegrationzscore",
    "capital": 100000,
    "data_type": "BAR",
    "schema": "ohlcv-1h",
    "start": 1704862800,
    "end": 1704893000,
    "tickers": ["AAPL", "MSFT"]
  },
  "trades": [
    {
      "trade_id": 1,
      "signal_id": 1,
      "timestamp": 1704903000,
      "ticker": "AAPL",
      "quantity": 4,
      "avg_price": 13074,
      "trade_value": -52296,
      "trade_cost": -52296,
      "action": "BUY",
      "fees": 0
    }
  ],
  "signals": [
    {
      "timestamp": 1704903000,
      "trade_instructions": [
        {
          "ticker": "AAPL",
          "order_type": "MKT",
          "action": "BUY",
          "signal_id": 1,
          "weight": 5,
          "quantity": 10,
          "limit_price": "12345",
          "aux_price": "234"
        },
        {
          "ticker": "MSFT",
          "order_type": "MKT",
          "action": "SELL",
          "signal_id": 1,
          "weight": 5,
          "quantity": 10,
          "limit_price": "12345",
          "aux_price": "234"
        }
      ]
    }
  ],
  "account": {
    "currency": "USD",
    "start_buying_power": 2557567,
    "start_excess_liquidity": 767270,
    "start_full_available_funds": 767270,
    "start_full_init_margin_req": 2823937,
    "start_full_maint_margin_req": 2823938,
    "start_futures_pnl": -464883,
    "start_net_liquidation": 767552392,
    "start_total_cash_balance": -11292332,
    "start_unrealized_pnl": 0,
    "start_timestamp": 1704903000,
    "end_buying_power": 25355889282,
    "end_excess_liquidity": 762034292,
    "end_full_available_funds": 760676292,
    "end_full_init_margin_req": 707499,
    "end_full_maint_margin_req": 5716009,
    "end_futures_pnl": -487998,
    "end_net_liquidation": 767751998,
    "end_total_cash_balance": 76693599,
    "end_unrealized_pnl": -2899,
    "end_timestamp": 1704904000
  }
}