Commit Graph

172 Commits

Author SHA1 Message Date
wood 0ca391ebe2 update swqos 2025-07-07 01:26:24 +08:00
wood 227ee20fb2 update define 2025-07-07 01:24:17 +08:00
wood 7f8f240da1 update define 2025-07-07 01:19:12 +08:00
wood 38a8e2dae4 update jito and nextblock 2025-07-07 01:01:38 +08:00
wood badc8e77d8 update readme 2025-07-07 00:02:24 +08:00
wood 5602be41ff update readme 2025-07-06 23:55:57 +08:00
wood 42daa85d22 update readme 2025-07-06 23:52:55 +08:00
wood 6d9c8ae72a update readme 2025-07-06 23:50:49 +08:00
wood d2f0a8e603 update examples 2025-07-06 23:42:47 +08:00
wood 0da3a3b918 remove use_rpc 2025-07-06 23:38:09 +08:00
wood d13c382a46 update trade config and swqos 2025-07-06 23:36:18 +08:00
wood ecbdbc5890 rebuild code 2025-07-06 22:08:14 +08:00
wood 3ac39508d9 rebuild code 2025-07-06 22:06:44 +08:00
ysq 0e57a7f55c docs: remove token creation sections 2025-07-05 20:48:22 +08:00
wei 9e202a1e5e update README 2025-06-29 19:41:26 +08:00
wei 77e1f9a480 dynamic tip optimization 2025-06-24 23:45:51 +08:00
ysq 6983c7603f Merge commit 'bfd6809855a37a55b852fee18b507640a955bb0d' 2025-06-24 20:56:31 +08:00
ysq bfd6809855 refactor: rename PumpFun to SolanaTrade and improve API consistency
- Rename PumpFun class to SolanaTrade to better reflect its expanded functionality
- Rename copy_buy methods to buy for better API clarity
- Update ShredStream and Yellowstone gRPC subscription examples
- Add bonding_curve parameter to trading methods
- Improve documentation with updated code examples
- Update README files with new features and API changes
2025-06-24 20:56:15 +08:00
ysq 8c5aff6ff6 Merge commit 'a0579a338b2c42e1a2706f7a42550a60e8611a22' 2025-06-23 00:51:03 +08:00
ysq a0579a338b feat(pumpswap): Auto-wrap SOL and enrich gRPC events
This commit introduces two main enhancements:

    1.  Adds an `auto_handle_wsol` parameter to `PumpSwap` buy/sell functions. When enabled, the SDK automatically manages the wrapping of SOL to WSOL and unwrapping back to SOL, simplifying client-side logic.
    2.  Enriches `PumpSwap` gRPC buy/sell events by parsing transaction instructions to include token mints and account addresses, providing more context for event consumers.
2025-06-23 00:50:51 +08:00
ysq 9396871b01 Merge commit 'd8643c8421026f41266e41ac6dde676306a1cb93' into dev 2025-06-22 23:06:57 +08:00
ysq 926201b4c7 refactor(trading): Adapt buy/sell functions to use parameter objects
This commit refactors the `copy_buy_with_tip`, `sell_by_percent`, `sell_by_amount`, and their `with_tip` variants within the `PumpFun` struct.

    The functions now accept parameter objects (`BuyWithTipParams`, `SellParams`, `SellWithTipParams`) instead of a list of individual arguments. This change improves code modularity, readability, and allows for dynamic dispatch to the correct protocol implementation (PumpFun or PumpSwap) based on the provided protocol parameters.
2025-06-22 23:05:54 +08:00
wei d8643c8421 sniper_buy_with_tip add bonding_curve 2025-06-22 22:50:05 +08:00
ysq 41b0e8cbb5 Merge commit '7024e100b9a427adf4f0e70ac91d8e90927d7538' 2025-06-20 18:16:01 +08:00
ysq 7024e100b9 feat: Refactor pump.fun buy transaction creation
Removes the `dev_buy_token` and `dev_sol_cost` parameters from the buy process to simplify the interface and reduce redundancy.
2025-06-20 18:14:26 +08:00
wood 148cce8253 . 2025-06-20 00:55:40 +08:00
wei 24e26bc9c3 fix 2025-06-20 00:50:55 +08:00
wei 14f35e344f fix 2025-06-20 00:45:14 +08:00
ysq 29ce9d787f [Feature] Add smart tip fee functionality
1. Add smart_buy_tip_fee field to PriorityFee struct
2. Extend copy_buy_with_tip method with custom_buy_tip_fee parameter
3. Implement dynamic tip fee adjustment logic
2025-06-19 22:30:04 +08:00
ysq 3d987987b3 Merge commit '02ab5f5314cfcfe1b267289f3a9070db67add10a' 2025-06-18 23:23:37 +08:00
wei 02ab5f5314 fixd 2025-06-18 18:17:28 +08:00
wei bc05fdc7cb Revert "feat:check if the account exists before selling"
This reverts commit fa941174c2.
2025-06-18 17:39:43 +08:00
wei 2303a4c1e6 feat: bonding_curve is transmitted from the outside 2025-06-18 17:39:20 +08:00
wei fa941174c2 feat:check if the account exists before selling 2025-06-18 00:20:13 +08:00
sgxiang 27edd45fc4 Merge commit 'bac48044c0a98f202a37df8f560242b6d0c25eae' 2025-06-17 23:50:08 +08:00
sgxiang bac48044c0 docs: update README - add create_and_buy_with_tip feature and trading module 2025-06-17 23:49:57 +08:00
sgxiang 5d36b41a4d Merge commit 'aab37d59328fe1498aa7f80a3051ed7427129137' 2025-06-17 23:40:31 +08:00
sgxiang aab37d5932 Merge commit '428ece5d6a0ad4a495ce26bbe1952447e999a9c3' into dev 2025-06-17 23:32:47 +08:00
sgxiang 428ece5d6a feat: refactor trading architecture with unified framework
- Add unified TradeExecutor interface and protocol abstraction
- Refactor PumpFun/PumpSwap into adapter pattern
- Introduce TradeFactory for multi-protocol support
- Add parallel execution and unified parameter system
- Include Raydium protocol support and log parsing
- Simplify codebase structure and improve maintainability
2025-06-17 23:32:20 +08:00
sgxiang 768dc92156 Merge commit '602b310cf841be6e695fd01744bc4a510b59f962' 2025-06-16 21:11:35 +08:00
sgxiang 4a281b29b5 Merge commit 'f20dbbd7936f301be8996b4dcf2a3c6a1c999cf6' 2025-06-16 21:08:56 +08:00
sgxiang f20dbbd793 feat(pumpswap): improve nonce handling logic and transaction building flow 2025-06-16 21:08:46 +08:00
sgxiang 602b310cf8 feat: Add Raydium DEX integration support
Add Raydium logs processing, event parsing and GRPC stream handling functionality,
remove redundant PumpSwap subscription module, optimize project structure.
2025-06-16 18:30:54 +08:00
sgxiang 81a907a1a8 Merge commit '3a48e631fdab6ad52f73c663f60d5f9757968039' 2025-06-16 18:26:08 +08:00
sgxiang 1169d90fa4 feat: Refactor SDK documentation and add Chinese README 2025-06-16 18:21:23 +08:00
wood 3a48e631fd update readme 2025-06-16 17:12:58 +08:00
sgxiang e28394c549 Merge commit '5b3f3d86886dfb91bdae06f2154a93da45e1cc3c' 2025-06-16 11:21:41 +08:00
wood 5b3f3d8688 change project name 2025-06-16 10:22:55 +08:00
wood c21107d57c change project name 2025-06-16 10:20:30 +08:00
sgxiang 66d6d17996 fixed 2025-06-15 22:48:42 +08:00