opam-version: "2.0"
maintainer: "gu.oliver@yahoo.com"
authors: ["Oliver Gu <gu.oliver@yahoo.com>"]
homepage: "https://bitbucket.org/ogu/ibx"
license: "LGPL-2.1-or-later with OCaml-LGPL-linking-exception"
build: [
  ["ocaml" "setup.ml" "-configure" "--prefix" prefix]
  ["ocaml" "setup.ml" "-build"]
  ["ocaml" "setup.ml" "-doc"] {with-doc}
]
remove: [["ocamlfind" "remove" "ibx"]]
depends: [
  "ocaml" {>= "3.12"}
  "ocamlfind"
  "async" {< "109.35.00"}
  "core" {>= "109.07.00" & < "v0.15"}
  "core_extended" {< "109.24.00"}
  "fieldslib" {< "113.01.00"}
  "sexplib" {< "113.01.00"}
  "ocamlbuild" {build}
]
install: ["ocaml" "setup.ml" "-install"]
synopsis: "OCaml implementation of the Interactive Brokers TWS API"
description: """
IBX is a pure OCaml implementation of the Interactive Brokers
Trader Workstation API (TWS API) built on top of Jane Street's
Core and Async library."""
flags: light-uninstall
url {
  src: "https://bitbucket.org/ogu/ibx/downloads/ibx-0.5.1.tar.gz"
  checksum: "md5=2e130aec424e89bc84f9edbbfdf85f7f"
}
