Giter Site home page Giter Site logo

Comments (8)

rupurt avatar rupurt commented on June 11, 2024

Hi @AwaitFuture,

Can you post a copy of your config.exs and/or config/dev.exs?

from tai.

AwaitFuture avatar AwaitFuture commented on June 11, 2024

I didnt have a config set; I just tried to use one of your example configs, but that didnt seem to get me any closer:
config/config.exs

use Mix.Config
# [default: 10_000] [optional] Adapter start timeout in milliseconds
config :tai, adapter_timeout: 60_000

# [default: nil] [optional] Handler to call after all venues & advisors have successfully started on boot
config :tai, after_boot: {Mod, :func_name, []}

# [default: nil] [optional] Handler to call after any venues or advisors have failed to start on boot
config :tai, after_boot_error: {Mod, :func_name, []}

# [default: false] [optional] Flag which enables the forwarding of each order book change set to the system bus
config :tai, broadcast_change_set: true

# [default: false] [optional] Flag which enables the sending of orders to the venue. When this is `false`, it
# acts a safety net by enqueueing and skipping the order transmission to the venue. This is useful in
# development to prevent accidently sending live orders.
config :tai, send_orders: true

# [default: System.schedulers_online] [optional] Number of processes that can forward internal pubsub messages.
# Defaults to the number of CPU's available in the Erlang VM `System.schedulers_online/0`.
config :tai, system_bus_registry_partitions: 2

# [default: %{}] [optional] Map of configured venues. See below for more details.
config :tai, venues: %{}

# [default: %{}] [optional] Map of configured advisor groups. See below for more details.
config :tai, advisor_groups: %{}

from tai.

rupurt avatar rupurt commented on June 11, 2024

Take a look at the example configs https://github.com/fremantle-capital/tai/tree/master/config

https://github.com/fremantle-capital/tai/blob/master/config/dev.exs.example is a good starting point. I will make setting up the configuration more clear. Perhaps a generator.

from tai.

AwaitFuture avatar AwaitFuture commented on June 11, 2024

Yep, using appropriate configs fixes hanging indefinitely; thank you.

closing.

from tai.

rupurt avatar rupurt commented on June 11, 2024

Sweet. Glad to hear 🍾

I've also got another open source project that might be helpful. It's a GUI frontend using tai underneath the hood https://github.com/fremantle-industries/workbench

from tai.

AwaitFuture avatar AwaitFuture commented on June 11, 2024

Hey,
using appropriate configurations did get me beyond generating tai, but Ive run into a new error; I just assumed I needed to clean and recompile the project but I really cant figure out whats going wrong here:

** (Mix) Could not start application logger: Logger.App.start(:normal, []) returned an error: shutdown: failed to start child: Logger.BackendSupervisor
    ** (EXIT) an exception was raised:
        ** (RuntimeError) EXIT when installing backend {LoggerFileBackendWithFormatters, :file_log}: an exception was raised:
    ** (UndefinedFunctionError) function LoggerFileBackendWithFormatters.init/1 is undefined (module LoggerFileBackendWithFormatters is not available)
        LoggerFileBackendWithFormatters.init({LoggerFileBackendWithFormatters, :file_log})
        (stdlib) gen_event.erl:473: :gen_event.server_add_handler/4
        (stdlib) gen_event.erl:318: :gen_event.handle_msg/6
        (stdlib) proc_lib.erl:249: :proc_lib.init_p_do_apply/3
            (logger) lib/logger/backend_supervisor.ex:19: anonymous fn/2 in Logger.BackendSupervisor.start_link/1
            (elixir) lib/enum.ex:1948: Enum."-reduce/3-lists^foldl/2-0-"/3
            (logger) lib/logger/backend_supervisor.ex:13: Logger.BackendSupervisor.start_link/1
            (stdlib) supervisor.erl:379: :supervisor.do_start_child_i/3
            (stdlib) supervisor.erl:365: :supervisor.do_start_child/2
            (stdlib) supervisor.erl:349: anonymous fn/3 in :supervisor.start_children/2
            (stdlib) supervisor.erl:1157: :supervisor.children_map/4
            (stdlib) supervisor.erl:315: :supervisor.init_children/2

I get this error while running MIX_ENV=dev iex -S mix with the configs youve posted. do you have any idea what might be happening here?

from tai.

rupurt avatar rupurt commented on June 11, 2024

Looks like you don't have the file logger dependency installed. You'll need to add it to mix.exs https://github.com/fremantle-capital/tai/blob/master/docs/CONFIGURATION.md#logging

from tai.

rupurt avatar rupurt commented on June 11, 2024

Closing issue due to inactivity. Lmk if you still have trouble getting up and running after #153 (comment)

from tai.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.