Commit Graph

93 Commits

Author SHA1 Message Date
Gary Wang 9bb12cb4b0 Use new token instructions 2020-08-29 05:11:15 -07:00
Nathaniel Parke ee13c6ed41
Update spl-token program instruction (#8) 2020-08-29 19:00:10 +08:00
Nishad 21b0040355 Rename function to makeCancelOrderInstruction 2020-08-27 18:54:46 +08:00
Nishad 7375763aba Make DEX program ID configurable 2020-08-27 03:37:17 +08:00
Nishad dbc29b2390 eslint 2020-08-26 19:34:39 +08:00
Nathaniel Parke c06ec61ac0
Add makeSettleInstruction (#5)
Add makeSettleInstruction
2020-08-26 19:33:47 +08:00
Nathaniel Parke 7f60007135
Add makeCanceOrderInstruction (#4)
Add makeCanceOrderInstruction
2020-08-26 18:50:23 +08:00
Nishad d989bd6f6b Export a few more functions and upgrade solana/web3.js version 2020-08-26 18:34:31 +08:00
Nathaniel Parke 2f726f3071
Add makePlaceOrderInstruction (#3) 2020-08-26 18:27:03 +08:00
Nathaniel Parke d2f748f431
clientId is an optional field in Order objects 2020-08-26 08:03:56 +08:00
Nishad a807bd8500 Update 2020-08-26 03:50:44 +08:00
Nishad aefa39c020 Update event parsing to account for rebates 2020-08-26 03:46:01 +08:00
Nishad 74e98df58b Update event parsing 2020-08-26 02:24:10 +08:00
Nishad 3fd28e535b Update program ID, update layouts 2020-08-25 06:33:12 +08:00
Nishad 91cd66b4df Update DEX program ID and expose makeMatchOrdersInstruction 2020-08-23 14:13:20 +08:00
Nishad 19be2f9eb3 Make compatible with solana RPC interface change for retrieving account data 2020-08-21 00:57:21 +08:00
Nishad c432d4faa2 Update program Id 2020-08-19 08:34:52 +08:00
Nishad ae38c4e19b Update program ID 2020-08-19 07:56:29 +08:00
Gary Wang db5635c1f6 Add method to settle funds 2020-08-18 04:23:36 -07:00
Gary Wang 4d1e45f815 Rename owner field on orders to openOrdersAddress, fix cancellations, add confirmation options 2020-08-18 03:38:25 -07:00
Nishad c59b456226 v0.4.7 2020-08-18 15:06:52 +08:00
Gary Wang 39d6b4ba22 Update loadOrdersForOwner to use open orders accounts 2020-08-16 23:55:33 -07:00
Nishad 72f68f07fd Update DEX program ID 2020-08-17 14:12:22 +08:00
Nishad 477ccfac52 Update DEX program ID 2020-08-17 14:08:19 +08:00
Gary Wang 7848262c4d Throw error if price or size is too small 2020-08-15 22:28:17 -07:00
Gary Wang 9223575e6f Add convenience method for retrieving orders by user, update README 2020-08-13 13:32:51 -07:00
Gary Wang 8c5ef2aa68 Switch to latest program address on testnet, with 5/7 padding 2020-08-13 12:53:46 -07:00
Gary Wang 9b7e39c8fe Add method for retrieving fills 2020-08-13 12:46:09 -07:00
Gary Wang b5ee5e2127 Add some types and fix some bugs 2020-08-13 10:12:14 -07:00
Gary Wang ee5728f288 Add methods for fetching the request and event queues 2020-08-13 08:35:02 -07:00
Gary Wang a1d699b088 Switch to tsc for transpilation 2020-08-13 07:29:12 -07:00
Gary Wang f6858ef533 Implement cancellation, update instruction layout 2020-08-13 03:53:13 -07:00
Gary Wang c405061e92 Implement order placement 2020-08-12 11:48:00 -07:00
Gary Wang 3753e0ac29 Fix fetching markets 2020-08-12 06:37:05 -07:00
Gary Wang 4689343350 Fix typo in README example, remove unused import 2020-08-10 09:47:58 -07:00
Gary Wang 6f300b5dba Add iteration over orders, add README 2020-08-10 09:26:22 -07:00
Gary Wang 02f41fd3b1 Add more instructions 2020-08-10 06:06:31 -07:00
Gary Wang 0888234da3 Fix cjs build 2020-08-09 20:31:54 -07:00
Gary Wang 2070393423 Orderbook parsing 2020-08-09 05:08:30 -07:00
Gary Wang c0a5f28e96 Add instruction layouts 2020-08-08 23:01:26 -07:00
Gary Wang ec3bf95181 Add market state layouts 2020-08-07 02:06:11 -07:00
Gary Wang 876c378948 Walk through slab nodes 2020-08-06 12:31:59 -07:00
Gary Wang cc100d59c7 Initial commit 2020-08-06 10:17:24 -07:00