Commit Graph

18 Commits

Author SHA1 Message Date
Kevin Heavey a2f9bd6ca4
Typing fixes (#81) 2021-08-10 10:06:07 -04:00
Jarry Xiao 1eb806f516
Fixed parse error (#80) 2021-06-17 10:53:19 -05:00
Leonard G f11a6f8ce8
Fixed market and token mint URL. (#76)
* Fixed market.

* Fixed linter.

* Update setup.py

Co-authored-by: Michael Huang <michaelhly@gmail.com>

Co-authored-by: Michael Huang <michaelhly@gmail.com>
2021-04-29 11:55:02 +08:00
Dave 89592a8d4c
Fix Wrapping SOL in place_order, add wrapped SOL in settle_funds (#73)
There was a missing () in the should_wrap_sol for place_order, causing
it to never be true on the SELL/base_mint() case

The program_id was set to SYSVAR_RENT_PUBKEY which didn't work on the
initialization param

Allows for handling of wrapped sol on settle_funds

Co-authored-by: Dave <DaveWK@users.noreply.github.com>
2021-04-21 10:28:36 +08:00
Leonard G 9a0752be59
Default to use DEX v3. (#72)
* Default to use DEX v3.
2021-04-20 11:28:30 -05:00
Leonard G 19ae0c5a42
Fixed size bug. (#70)
* Fixed size bug.

* Fixed linting error.

* Updated version.

* Fixed linting error.

* Fixed linting error.

* Fixed bug.
2021-04-05 10:31:39 -05:00
Leonard G dad9a8e075
Support Serum v3. (#65)
Added support for DEX v3.
2021-03-01 17:49:04 +08:00
Moshe Malawach b5335be638
event.order_id is already an int (#64)
In market.parse_fill_event, no need to cast event.order_id to int as it's already one.
Doing so raises an exception whenever I try to get fills, this fixes it.
2021-01-26 09:54:47 +08:00
michaelhly cfdf6f009f Fix lint error 2020-12-22 20:25:25 -06:00
michaelhly 2944582a49 Validate settle_fund addresses to prevent settling to dex vault 2020-12-22 20:20:36 -06:00
Leonard G 73376a5980
Added documentation for load and load_event_queue. (#57) 2020-11-10 16:25:23 +08:00
michaelhly b902058fa7 Get token mints 2020-10-31 08:53:01 -05:00
michaelhly 734b372c33 Simplify get_live_markets 2020-10-29 23:24:45 -05:00
Michael Huang 722935cb5f
Add load_orders_for_owner and get_live_markets (#52)
* true list of live markets and open orders

* linting fix

* remove unused req file

* moar lints

* fixing commitment with solana api

* using chain

* MOAR LINT

* Revert layout changes

* Revert state.py changes

* Move get_live_markets

* Format and lint

* Add test for get_live_markets

* Update README.md

* Address prior feedback

Co-authored-by: gitjcs <julien.collardseguin@gmail.com>
2020-10-29 18:17:29 -05:00
Leonard G fb219b9207
Added settle funds. (#45)
* Added settle funds.

* Added tests.

* Fixed bug.

* Removed unnecessary tests.

* Address comments

Co-authored-by: michaelhly <michaelhly@gmail.com>
2020-10-29 14:15:35 -05:00
guanqun 74355e01bf
Fix typo(#51) 2020-10-21 18:03:07 +08:00
Michael Huang d38cd2eef7
Bump solana to 0.5.0 (#48)
* Bump solana to 0.5.0

* Use TxOpts

* Use non-deprecated MemcmpOpts

* Fix lint errors
2020-10-05 21:02:12 -05:00
Michael Huang 135c770dcf
Changes for pypi release (#44)
* Adjustments for pypi release

* Remove if else

* Fix typo

* Revert "Remove if else"

This reverts commit 9beb895e56b4e9fa9d9a0b597671486afc84c072.

* Restore queue.py

* Revert "Restore queue.py"

This reverts commit d868475b0059d5d8c1c62132d9d031524e85729b.

* Restore event_queue_binary

* Restore other stuff

* Update README.md

* Fix version

* Address feedback
2020-10-01 10:37:32 -05:00