Categorygithub.com/Halimao/jupiter-sdk-go
modulepackage
0.0.3
Repository: https://github.com/halimao/jupiter-sdk-go.git
Documentation: pkg.go.dev

# README

Go API client for Jupiter

Initially generated by: Swagger Codegen

Last updated by @Halimao

The core of jup.ag. Easily get a quote and swap through Jupiter API.

  • Rate Limit We update our rate limit from time to time depending on the load of our servers. We recommend running your own instance of the API if you want to have high rate limit, here to learn how to run the self-hosted API.

  • API Wrapper - Typescript @jup-ag/api

  • Data types - Public keys are base58 encoded strings - raw data such as Vec<u8> are base64 encoded strings

Overview

This API client was generated by the swagger-codegen project. By using the swagger-spec from a remote server, you can easily generate an API client.

  • API version: 6.0.0
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.v3.generators.go.GoClientCodegen

Installation

import "github.com/Halimao/jupiter-sdk-go"

Documentation for API Endpoints

All URIs are relative to https://quote-api.jup.ag/v6

ClassMethodHTTP requestDescription
DefaultApiIndexedRouteMapGetGet /indexed-route-mapGET /indexed-route-map
DefaultApiProgramIdToLabelGetGet /program-id-to-labelGET /program-id-to-label
DefaultApiQuoteGetGet /quoteGET /quote
DefaultApiSwapInstructionsPostPost /swap-instructionsPOST /swap-instructions
DefaultApiSwapPostPost /swapPOST /swap
DefaultApiTokensGetGet /tokensGET /tokens

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Author

@Halimao

# Functions

CacheExpires helper function to determine remaining time before repeating a request.
NewAPIClient creates a new API client.
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

List of SwapMode.
List of SwapMode.

# Variables

ContextAccessToken takes a string oauth2 access token as authentication for the request.
ContextAPIKey takes an APIKey as authentication for the request.
ContextBasicAuth takes BasicAuth as authentication for the request.
ContextOAuth2 takes a oauth2.TokenSource as authentication for the request.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
APIClient manages communication with the Jupiter API v6 API v6.0.0 In most cases there should be only one, shared, APIClient.
APIKey provides API key based authentication to a request passed via context using ContextAPIKey.
No description provided by the author
BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth.
No description provided by the author
No description provided by the author
No description provided by the author
GenericSwaggerError Provides access to the body, error and model on returned errors.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author