waterquarks
5d91691480
Extend fills
2023-04-25 04:47:04 +00:00
waterquarks
dde6494348
Patch fills
2023-04-25 03:52:34 +00: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
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
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