Commit Graph

88 Commits

Author SHA1 Message Date
waterquarks 5d91691480 Extend fills 2023-04-25 04:47:04 +00:00
waterquarks 04bf6dd456 Ignore .idea 2023-04-25 03:52:49 +00:00
waterquarks dde6494348 Patch fills 2023-04-25 03:52:34 +00:00
Ennio Nasca 893fae316e
Update setup.py
bump version
2022-11-21 14:51:10 +01:00
Ennio Nasca 0c30c030e8
Merge pull request #2 from ennnas/chore/upgrade_solanapy
update solanapy
2022-11-21 14:49:54 +01:00
Ennio Nasca dd7deb8d2b chore: use latest validator version 2022-10-18 18:19:18 +02:00
Ennio Nasca 48e104b3a6 style: linter 2022-10-18 17:34:03 +02:00
Ennio Nasca a4071c9ec4 fix: remove deprecated commitment level 2022-10-18 17:26:51 +02:00
Ennio Nasca 2954a7779f update solanapy 2022-10-18 16:53:45 +02:00
quazzuk 49271da70f
updated init_open_orders and consume_events to reflect layout in serum-ts and serum-dex (#103) 2022-02-03 00:15:59 -08:00
quazzuk d0938e9149
Added support for init and close open_orders_accounts instructions (#99)
* added support for init and close open_orders_accounts instructions

* removed unused variables
2021-12-23 18:16:09 +08:00
SirPalamede 6f3ba279da
signers needs to be passed instead of owner (#98)
In the case that wrapped SOL account is created, the keypair for the new account was not being passed to send transaction resulting in an error when using the settle funds method
2021-11-28 16:41:10 +08:00
michaelhly 58f10123e7 v0.5.0a 2021-11-05 16:36:13 +00:00
Imaclean74 7d10ecc9eb
Replace Deprecated Account type with Keypair (#92)
* Replace Deprecated Account type with Keypair

* revert python version change

* removed comments, unnecessary spaces

* require solana-py >= 0.15.0

* fixed mypy errors

* fixed account loader

* Fix lint error

* fixing market tests

* fixing async_test_ market for Keypair

Co-authored-by: Ian MacLean <Imaclean74@github.com>
2021-11-03 20:57:08 -05:00
Roman Agureev 4ab65b0de7
Fixed wrapped SOL in settle_funds by adding the missing signer. (#83) 2021-09-07 23:11:20 +08:00
Kevin Heavey 954732976d
Add async support (#82)
* add async utils and connection

* refactor market.py before adding async

* add async open orders account

* add async_market

* add type hint

* replace pytest-tornasync with pytest-asyncio

* add async tests

* add async tests

* linting

* add async exmplae to README

* fix unit test selection

* bump minor version number

* chmod

* fix keygen error when key already exists

* use --cov-append

* fix coverage for multi test

* fix typo

Co-authored-by: kevinheavey <kevinheavey123@gmail.com>
2021-08-12 20:36:28 +01:00
Kevin Heavey a2f9bd6ca4
Typing fixes (#81) 2021-08-10 10:06:07 -04:00
michaelhly 4aed066b59 0.3.4a1 2021-06-17 10:55:20 -05: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
michaelhly 9118bd9be9 0.3.2a1 2021-04-21 14:19:12 -05: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 f734b4f3b9
Bump version to v0.3.0. (#67)
* Bump version to v0.3.0.

* Update setup.py
2021-03-28 22:26:20 +08: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 30fb5f47cd 0.2.1a1 2020-12-22 20:25:47 -06: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
Michael Huang 43c66c7f3f
Update README.md 2020-11-29 12:20:34 -06:00
Leonard G 73376a5980
Added documentation for load and load_event_queue. (#57) 2020-11-10 16:25:23 +08:00
michaelhly 87cbc5d601 v0.2.0a1 2020-10-31 08:53:35 -05:00
michaelhly b902058fa7 Get token mints 2020-10-31 08:53:01 -05:00
michaelhly c6bfb37df7 0.1.1a1 2020-10-29 23:26:04 -05:00
michaelhly 734b372c33 Simplify get_live_markets 2020-10-29 23:24:45 -05:00
michaelhly da4d62ff43 v0.1.0a1 2020-10-29 18:34:20 -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
Lowell Tarek Abbott Vidal 42b2f03332
Fix typo on example for order information (#50) 2020-10-14 13:24:50 -05:00
michaelhly 4f693e8ed4 v0.0.2a1 2020-10-05 21:20:14 -05:00
michaelhly 8b87d2791c Fix docs workflow 2020-10-05 21:18:12 -05:00
Michael Huang 4c03b7ef31
Set up docs (#47)
* Add sphinx

* Add doc src

* Update Mafile & LICENSE

* Bump down solana

* Docs under construction

* Add docs workflow

* Install sphinxemoji in workflow

* Only build docs on push

* Doc dependencies

* Remove make docs

* force_orphan
2020-10-05 21:12:53 -05: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
michaelhly c7a7d61f01 Update README.md and setup.py 2020-10-01 10:58:28 -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
Leonard G ca281af3f1
Upgraded to v2 layout. (#43)
Upgraded Market and OpenOrderAccount to v2 layout.
2020-09-30 10:05:07 +08:00
michaelhly 4165fa518e Clean up 2020-09-24 12:04:32 -05:00
Leonard G 34d7401d2c
Added SOL wrapping and cancel order by client id. (#40)
Added SOL wrapping and cancel_order_by_client_id.
2020-09-24 23:11:00 +08:00