Hi, thanks so much for producing this library! I'm using it for a side project, and am having trouble getting it to work for CLOB order placement, I believe because the 0.2.0 tag is a bit behind main. I'm getting this error:
simulator: internal error, uncaught exception:
Failure("int_of_string")
Raised by primitive operation at Polymarket_common__Order_signing.sign_order.encode_uint256_str in file "lib/polymarket/common/order_signing.ml", line 66, characters 59-76
Called from Polymarket_common__Order_signing.sign_order in file "lib/polymarket/common/order_signing.ml", line 70, characters 6-33
Called from Polymarket_clob__Order_builder.create_limit_order in file "lib/polymarket/clob/order_builder.ml", lines 58-60, characters 4-71
Called from Polymarket_analyzer__Polymarket_connector.execute_trade.(fun) in file "lib/polymarket_connector.ml", lines 58-64, characters 10-14
Called from Eio__core__Switch.run_internal in file "lib_eio/core/switch.ml", line 133, characters 8-12
Re-raised at Eio__core__Switch.maybe_raise_exs in file "lib_eio/core/switch.ml", line 119, characters 21-56
Called from Eio__core__Switch.run_internal in file "lib_eio/core/switch.ml", line 149, characters 4-21
Called from Eio__core__Cancel.with_cc in file "lib_eio/core/cancel.ml", line 118, characters 8-12
Re-raised at Eio__core__Cancel.with_cc in file "lib_eio/core/cancel.ml", line 120, characters 50-58
Called from Eio_posix__Sched.with_op in file "lib_eio_posix/sched.ml", line 318, characters 8-12
Re-raised at Eio_posix__Sched.with_op in file "lib_eio_posix/sched.ml", line 324, characters 4-12
Called from Eio_posix__Sched.run.(fun) in file "lib_eio_posix/sched.ml", line 386, characters 29-47
Called from Eio_unix__Thread_pool.run in file "lib_eio/unix/thread_pool.ml", line 108, characters 8-13
Re-raised at Eio_unix__Thread_pool.run in file "lib_eio/unix/thread_pool.ml", line 113, characters 4-39
Re-raised at Eio_posix__Sched.run.fork.(fun) in file "lib_eio_posix/sched.ml", line 342, characters 12-76
Called from Stdlib__Fun.protect in file "fun.ml", line 34, characters 8-15
Re-raised at Stdlib__Fun.protect in file "fun.ml", line 39, characters 6-52
Called from Eio_posix__Sched.run in file "lib_eio_posix/sched.ml", lines 381-388, characters 4-9
Called from Eio_posix__Sched.with_sched in file "lib_eio_posix/sched.ml", line 258, characters 8-12
Re-raised at Eio_posix__Sched.with_sched in file "lib_eio_posix/sched.ml", line 263, characters 4-39
Called from Dune__exe__Polymarket_cli.manually_place_order_main in file "bin/polymarket_cli.ml", line 15, characters 15-90
Called from Cmdliner_term.app.(fun) in file "cmdliner_term.ml", line 24, characters 19-24
Called from Cmdliner_eval.run_parser in file "cmdliner_eval.ml", line 35, characters 37-44
> dune build
File "lib/polymarket_connector.ml", line 1:
Error: The files /home/chris/.opam/5.4.0/lib/polymarket/polymarket.cmi
and /home/chris/.opam/5.4.0/lib/ocaml/compiler-libs/types.cmi
make inconsistent assumptions over interface Types
I'd be so grateful if you could help me out with this, right now I place orders by execveing JS scripts, which I don't love.
Hi, thanks so much for producing this library! I'm using it for a side project, and am having trouble getting it to work for CLOB order placement, I believe because the
0.2.0tag is a bit behindmain. I'm getting this error:I think this is because the
0.2.0branch doesn't incorporate thezarithchanges necessary to parse token ID's, which obviously don't fit in a normal OCaml int.I've tried checking out the
mainbranch on my machine and pinning the package to that, but when I try to build my project that usespolymarketI'm getting this error:I'd be so grateful if you could help me out with this, right now I place orders by
execveing JS scripts, which I don't love.