Git Product home page Git Product logo

space-station's Introduction

Jupiter Space Station

Welcome to the space station โ€” home for cats curious about Jupiter.

Setting up in local machine

This website is built using Docusaurus 2, a modern static website generator.

To install:

pnpm install

To build and start local development:

pnpm build && pnpm start

Send us a PR to improve our documentation!

Here are some things you can help with:

  • Write a user guide about a product feature or something you think people should know.
  • Update developer docs if you noticed something that's missing or that could help other folks.

Jupiter Space Station Partner Page

station-partner

If your protocol has integrated Jupiter and is not featured here, please submit a PR to us with the following:

  1. Add your logo into /static/img/(category) depending on the category of your product.
  2. Link that image in /src/pages/partners.tsx following the rest of the examples in there.
  3. Add title, logo, and link for your protocol.

Here's an example of PR to add a new protocol into the partners page: Samoyed

Please fill up your PR description with the same format as shown in the example PR. example-PR

space-station's People

Contributors

0xsoju2 avatar 9yoi avatar arihantbansal avatar arrowana avatar aur42 avatar benlvb avatar boulderuphillroller avatar coffiasd avatar dongnguyen9186 avatar eggpanned avatar goonmachine avatar hjchan avatar iceinsidefire avatar iliyazelenko avatar joshteng avatar julianhzhu avatar melvinzhang avatar siong1987 avatar st-muel avatar thimerosa avatar timoon21 avatar unstableantimatter avatar vicovictor avatar whereismeow avatar wkitsin avatar worlddlckgh avatar wrexgem avatar xrzhuang avatar zer0cache avatar zhengyutay avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

space-station's Issues

jupiter SDK limit orders going below quoted price .

+-----------------------------------------------------------------------------------------------------+

| Transaction Type: Buy                                                                               |
| sellAmount: 0.135241916                                                                             |
| buyAmount: 18.749259                                                                                |
| sellAddress: So11111111111111111111111111111111111111112                                            |
| buyAddress: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v                                            |
| buy price: 138.634973736                                                                            |
| Signature: 4tnsKHFNZU5Nxw3aG4D1M7SC7DkZtG5CvgB7CdzP7WL6KXsiHtTSgGWYXwbTkX39pDUugeGuEuMRiUPhA1qC6Bp3 |

+-----------------------------------------------------------------------------------------------------+

I created a limit order using jupiter SDK in solana with the above parameters .

const { tx, orderPubKey } = await limitOrder.createOrder({
  owner: walletKeyPair.publicKey,
  inAmount:  new anchor.BN(sellAmount.toString()), 
  outAmount: new anchor.BN(buyAmount.toString()),
  inputMint: new PublicKey(sellAddress),
  outputMint: new PublicKey(buyAddress),
  expiredAt: transactionExpiry, // Example: new BN(new Date().valueOf() / 1000)
  base: base.publicKey,
});

My outAmount was 18749259 USDC but what I received was 18730510 USDC which is less than my outAmount . Does jupiter SDK automatically apply a slippage internally ? If yes how do I set it to 0%

Quoting the docs
Limit orders ensure that you get what you quote with no slippage, which is especially useful during volatile periods.
This is not happening .
https://docs.jup.ag/guides/limit-order/how-lo-work

https://docs.jup.ag/docs/limit-order/limit-order-with-sdk

[Documentation] Price API examples no longer accurate

Hello,

Some of the examples documented for the Price API are no longer accurate. Reference: https://station.jup.ag/docs/apis/price-api

https://price.jup.ag/v4/price?ids=BTC&vsToken=ETH
--
{
  "data": {
    "BTC": {
      "id": "9n4nbM75f5Ui33ZbPYXn59EwSgE8CGsHtAeTH5YFeJ9E",
      "mintSymbol": "BTC",
      "vsToken": "7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs",
      "vsTokenSymbol": "ETH",
      "price": 14.689248
    }
  },
  "timeTaken": 0.019405270000788732
}

Actual response:

{"data":{},"timeTaken":0.00009890699993775343}

Am I using it incorrectly or do you only support SOL when comparing?

https://price.jup.ag/v4/price?ids=SOL&vsToken=ETH
---
{
  "data": {
    "SOL": {
      "id": "So11111111111111111111111111111111111111112",
      "mintSymbol": "SOL",
      "vsToken": "7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs",
      "vsTokenSymbol": "ETH",
      "price": 0.04079799
    }
  },
  "timeTaken": 0.00032465999993291916
}

Comma missing within the "4. Get the serialized transactions to perform the swap" step

I noticed that the comma for the "expiredAt" value is missing, leading to issues. Easy to spot on an IDE, but thought I'd mention this.

If you look within the JSON.stringify({}) body, the "expiredAt: null" line does not contain a comma at the end before the new line "base: base.publicKey.toString(),".

The page with the error:
https://github.com/jup-ag/space-station/blob/main/docs/3-limit-order/1-limit-order-api.md

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.