# Pull Request Description
## Related Issue
Fixes # (issue number)
## Changes Made
This PR adds the following changes:
<!-- List the key changes made in this PR -->
- /utils/flashUtils.ts
- /tools/flash_open_trade.ts and /tools/flash_close_trade.ts -
/langchain/index.ts
## Implementation Details
<!-- Provide technical details about the implementation -->
- added /utils/flashUtils.ts - includes price fetching from Hermes,
loading for Beast NFT accounts and constants from the flash sdk
- added /tools/flash_open_trade.ts and flash_close_trade.ts to implement
opening and closing of leveraged trade orders using flash-idk - updated
/langchain/index.ts with prompts JSON extraction and validation
## Transaction executed by agent
<!-- If applicable, provide example usage, transactions, or screenshots
-->
Example transaction: open position:
https://solana.fm/tx/DvLKDvyTJFckhGQSLaJ7Dfj7djNj6UMbpBXXgNNdMFoHycuRcHZsgSGpAeLtTrfszSESFn3PEDQ3JKPb29KCGDT?cluster=mainnet-alpha
close position:
https://solana.fm/tx/dEKkBTzT5wbJSbYT8q2Vtc3G2cLzxSHheC8dZUFAAsxFEUXQES2amfvywkm8zGHu4Pe11dX4h1GbXMDkTwWvrL6?cluster=mainnet-alpha
## Prompt Used
<!-- If relevant, include the prompt or configuration used -->
```prompt to open a trade: open a 5x leveraged trade for SOL on long side using flash trade with 10 USD as collateral prompt to close an existing trade: Close an existing 10x leveraged trade for SOL on long side
```
## Additional Notes
<!-- Any additional information that reviewers should know -->
## Checklist
- [✅] I have tested these changes locally
- [✅] I have updated the documentation
- [✅] I have added a transaction link
- [✅] I have added the prompt used to test it
# Pull Request Description
## Related Issue
Fixes # (issue number)
## Changes Made
This PR adds the following changes:
<!-- List the key changes made in this PR -->
-
-
## Implementation Details
<!-- Provide technical details about the implementation -->
-
-
## Transaction executed by agent
<!-- If applicable, provide example usage, transactions, or screenshots
-->
Example transaction:
## Prompt Used
<!-- If relevant, include the prompt or configuration used -->
```
```
## Additional Notes
<!-- Any additional information that reviewers should know -->
## Checklist
- [ ] I have tested these changes locally
- [ ] I have updated the documentation
- [ ] I have added a transaction link
- [ ] I have added the prompt used to test it
### Title
Typo fix in `orca_open_centered_position_with_liquidity.ts`
### Description
This pull request fixes a typo in the
`orca_open_centered_position_with_liquidity.ts` file. The word "cuurent"
has been corrected to "current."
### Changes
- Corrected the typo in the description: "a basis point (bps) offset
from the cuurent price of the pool" to "a basis point (bps) offset from
the current price of the pool."
### Impact
This is a documentation fix and does not affect the functionality of the
code.
# Pull Request Description
## Changes Made
This PR adds the following changes:
<!-- List the key changes made in this PR -->
- Add husky, lint-staged for pre-commit hooks
- Add github actions workflow for lint, and build
## Additional Notes
<!-- Any additional information that reviewers should know -->
## Checklist
- [x] I have tested these changes locally
- [x] I have updated the documentation
- [ ] I have added a transaction link
- [ ] I have added the prompt used to test it
# Pull Request Description
## Related Issue
Fixes#19
## Changes Made
This PR adds the following changes:
<!-- List the key changes made in this PR -->
- Add method to fetch pyth price feed ID
- Move to using Pyth Hermes API v2
## Implementation Details
<!-- Provide technical details about the implementation -->
- Modify Pyth implementation to use hermes v2 api which is not supported
in the SDK yet
- Fetch price feed ID for given token symbol and then price
## Prompt Used
<!-- If relevant, include the prompt or configuration used -->
```
fetch pyth price for SOL
```
<img width="713" alt="image"
src="https://github.com/user-attachments/assets/2c59186f-f31f-4d56-a76b-4c8682a0ca96"
/>
## Additional Notes
<!-- Any additional information that reviewers should know -->
## Checklist
- [x] I have tested these changes locally
- [x] I have updated the documentation
- [ ] I have added a transaction link
- [x] I have added the prompt used to test it