diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 0c4a54c7ef..2a6eb23fb6 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -4,7 +4,7 @@ change is, and why it is being made, with enough context for anyone to understan
PR Checklist - + ### PR Structure * [ ] This PR has reasonably narrow scope (if not, break it down into smaller PRs). @@ -17,7 +17,7 @@ change is, and why it is being made, with enough context for anyone to understan ### Thoroughness * [ ] This PR adds tests for the most critical parts of the new functionality or fixes. -* [ ] I've updated any docs ([developer docs](https://developers.stellar.org/api/), `.md` +* [ ] I've updated any docs ([developer docs](https://developers.stellar.org/docs/data/horizon), `.md` files, etc... affected by this change). Take a look in the `docs` folder for a given service, like [this one](https://github.com/stellar/go/tree/master/services/horizon/internal/docs). diff --git a/address/main.go b/address/main.go index 7791cb509e..fd957c1c6d 100644 --- a/address/main.go +++ b/address/main.go @@ -1,5 +1,5 @@ // Package address provides utility functions for working with stellar -// addresses. See https://developers.stellar.org/docs/glossary/federation/ +// addresses. See https://developers.stellar.org/docs/learn/encyclopedia/network-configuration/federation // html#stellar-addresses for more on addresses. package address diff --git a/clients/horizonclient/README.md b/clients/horizonclient/README.md index aceb0a5be4..15f760496f 100644 --- a/clients/horizonclient/README.md +++ b/clients/horizonclient/README.md @@ -1,7 +1,7 @@ # horizonclient -`horizonclient` is a [Stellar Go SDK](https://developers.stellar.org/api/) package that provides client access to a horizon server. It supports all endpoints exposed by the [horizon API](https://developers.stellar.org/api/introduction/). +`horizonclient` is a [Stellar Go SDK](https://developers.stellar.org/docs/data/horizon) package that provides client access to a horizon server. It supports all endpoints exposed by the [horizon API](https://developers.stellar.org/docs/data/horizon/api-reference). This project is maintained by the Stellar Development Foundation. diff --git a/clients/horizonclient/client.go b/clients/horizonclient/client.go index 0c580de771..b34aedac76 100644 --- a/clients/horizonclient/client.go +++ b/clients/horizonclient/client.go @@ -296,14 +296,14 @@ func (c *Client) HorizonTimeout() time.Duration { // Accounts returns accounts who have a given signer or // have a trustline to an asset. -// See https://developers.stellar.org/api/resources/accounts/ +// See https://developers.stellar.org/docs/data/horizon/api-reference/resources/accounts func (c *Client) Accounts(request AccountsRequest) (accounts hProtocol.AccountsPage, err error) { err = c.sendRequest(request, &accounts) return } // AccountDetail returns information for a single account. -// See https://developers.stellar.org/api/resources/accounts/single/ +// See https://developers.stellar.org/docs/data/horizon/api-reference/resources/retrieve-an-account func (c *Client) AccountDetail(request AccountRequest) (account hProtocol.Account, err error) { if request.AccountID == "" { err = errors.New("no account ID provided") @@ -318,7 +318,7 @@ func (c *Client) AccountDetail(request AccountRequest) (account hProtocol.Accoun } // AccountData returns a single data associated with a given account -// See https://developers.stellar.org/api/resources/accounts/data/ +// See https://developers.stellar.org/docs/data/horizon/api-reference/resources/get-data-by-account-id func (c *Client) AccountData(request AccountRequest) (accountData hProtocol.AccountData, err error) { if request.AccountID == "" || request.DataKey == "" { err = errors.New("too few parameters") @@ -332,7 +332,7 @@ func (c *Client) AccountData(request AccountRequest) (accountData hProtocol.Acco return } -// Effects returns effects (https://developers.stellar.org/api/resources/effects/) +// Effects returns effects (https://developers.stellar.org/docs/data/horizon/api-reference/resources/effects) // It can be used to return effects for an account, a ledger, an operation, a transaction and all effects on the network. func (c *Client) Effects(request EffectRequest) (effects effects.EffectsPage, err error) { err = c.sendRequest(request, &effects) @@ -340,21 +340,21 @@ func (c *Client) Effects(request EffectRequest) (effects effects.EffectsPage, er } // Assets returns asset information. -// See https://developers.stellar.org/api/resources/assets/list/ +// See https://developers.stellar.org/docs/data/horizon/api-reference/resources/list-all-assets func (c *Client) Assets(request AssetRequest) (assets hProtocol.AssetsPage, err error) { err = c.sendRequest(request, &assets) return } // Ledgers returns information about all ledgers. -// See https://developers.stellar.org/api/resources/ledgers/list/ +// See https://developers.stellar.org/docs/data/horizon/api-reference/resources/list-all-ledgers func (c *Client) Ledgers(request LedgerRequest) (ledgers hProtocol.LedgersPage, err error) { err = c.sendRequest(request, &ledgers) return } // LedgerDetail returns information about a particular ledger for a given sequence number -// See https://developers.stellar.org/api/resources/ledgers/single/ +// See https://developers.stellar.org/docs/data/horizon/api-reference/resources/retrieve-a-ledger func (c *Client) LedgerDetail(sequence uint32) (ledger hProtocol.Ledger, err error) { if sequence == 0 { err = errors.New("invalid sequence number provided") @@ -370,7 +370,7 @@ func (c *Client) LedgerDetail(sequence uint32) (ledger hProtocol.Ledger, err err } // FeeStats returns information about fees in the last 5 ledgers. -// See https://developers.stellar.org/api/aggregations/fee-stats/ +// See https://developers.stellar.org/docs/data/horizon/api-reference/aggregations/fee-stats func (c *Client) FeeStats() (feestats hProtocol.FeeStats, err error) { request := feeStatsRequest{endpoint: "fee_stats"} err = c.sendRequest(request, &feestats) @@ -378,14 +378,14 @@ func (c *Client) FeeStats() (feestats hProtocol.FeeStats, err error) { } // Offers returns information about offers made on the SDEX. -// See https://developers.stellar.org/api/resources/offers/list/ +// See https://developers.stellar.org/docs/data/horizon/api-reference/resources/get-all-offers func (c *Client) Offers(request OfferRequest) (offers hProtocol.OffersPage, err error) { err = c.sendRequest(request, &offers) return } // OfferDetails returns information for a single offer. -// See https://developers.stellar.org/api/resources/offers/single/ +// See https://developers.stellar.org/docs/data/horizon/api-reference/resources/get-offer-by-offer-id func (c *Client) OfferDetails(offerID string) (offer hProtocol.Offer, err error) { if len(offerID) == 0 { err = errors.New("no offer ID provided") @@ -401,7 +401,7 @@ func (c *Client) OfferDetails(offerID string) (offer hProtocol.Offer, err error) return } -// Operations returns stellar operations (https://developers.stellar.org/api/resources/operations/list/) +// Operations returns stellar operations (https://developers.stellar.org/docs/data/horizon/api-reference/resources/list-all-operations) // It can be used to return operations for an account, a ledger, a transaction and all operations on the network. func (c *Client) Operations(request OperationRequest) (ops operations.OperationsPage, err error) { err = c.sendRequest(request.SetOperationsEndpoint(), &ops) @@ -409,7 +409,7 @@ func (c *Client) Operations(request OperationRequest) (ops operations.Operations } // OperationDetail returns a single stellar operation for a given operation id -// See https://developers.stellar.org/api/resources/operations/single/ +// See https://developers.stellar.org/docs/data/horizon/api-reference/resources/retrieve-an-operation func (c *Client) OperationDetail(id string) (ops operations.Operation, err error) { if id == "" { return ops, errors.New("invalid operation id provided") @@ -479,7 +479,7 @@ func (c *Client) validateTx(transaction *txnbuild.Transaction, opts SubmitTxOpts } // SubmitTransactionXDR submits a transaction represented as a base64 XDR string to the network. err can be either error object or horizon.Error object. -// See https://developers.stellar.org/api/resources/transactions/post/ +// See https://developers.stellar.org/docs/data/horizon/api-reference/resources/submit-a-transaction func (c *Client) SubmitTransactionXDR(transactionXdr string) (tx hProtocol.Transaction, err error) { request := submitRequest{endpoint: "transactions", transactionXdr: transactionXdr} @@ -495,7 +495,7 @@ func (c *Client) SubmitTransactionXDR(transactionXdr string) (tx hProtocol.Trans // // If you want to skip this check, use SubmitTransactionWithOptions. // -// See https://developers.stellar.org/api/resources/transactions/post/ +// See https://developers.stellar.org/docs/data/horizon/api-reference/resources/submit-a-transaction func (c *Client) SubmitFeeBumpTransaction(transaction *txnbuild.FeeBumpTransaction) (tx hProtocol.Transaction, err error) { return c.SubmitFeeBumpTransactionWithOptions(transaction, SubmitTxOpts{}) } @@ -503,7 +503,7 @@ func (c *Client) SubmitFeeBumpTransaction(transaction *txnbuild.FeeBumpTransacti // SubmitFeeBumpTransactionWithOptions submits a fee bump transaction to the network, allowing // you to pass SubmitTxOpts. err can be either an error object or a horizon.Error object. // -// See https://developers.stellar.org/api/resources/transactions/post/ +// See https://developers.stellar.org/docs/data/horizon/api-reference/resources/submit-a-transaction func (c *Client) SubmitFeeBumpTransactionWithOptions(transaction *txnbuild.FeeBumpTransaction, opts SubmitTxOpts) (tx hProtocol.Transaction, err error) { // only check if memo is required if skip is false and the inner transaction // doesn't have a memo. @@ -523,7 +523,7 @@ func (c *Client) SubmitFeeBumpTransactionWithOptions(transaction *txnbuild.FeeBu // // If you want to skip this check, use SubmitTransactionWithOptions. // -// See https://developers.stellar.org/api/resources/transactions/post/ +// See https://developers.stellar.org/docs/data/horizon/api-reference/resources/submit-a-transaction func (c *Client) SubmitTransaction(transaction *txnbuild.Transaction) (tx hProtocol.Transaction, err error) { return c.SubmitTransactionWithOptions(transaction, SubmitTxOpts{}) } @@ -531,7 +531,7 @@ func (c *Client) SubmitTransaction(transaction *txnbuild.Transaction) (tx hProto // SubmitTransactionWithOptions submits a transaction to the network, allowing // you to pass SubmitTxOpts. err can be either an error object or a horizon.Error object. // -// See https://developers.stellar.org/api/resources/transactions/post/ +// See https://developers.stellar.org/docs/data/horizon/api-reference/resources/submit-a-transaction func (c *Client) SubmitTransactionWithOptions(transaction *txnbuild.Transaction, opts SubmitTxOpts) (tx hProtocol.Transaction, err error) { // only check if memo is required if skip is false and the transaction // doesn't have a memo. @@ -599,7 +599,7 @@ func (c *Client) AsyncSubmitTransactionWithOptions(transaction *txnbuild.Transac return c.AsyncSubmitTransactionXDR(txeBase64) } -// Transactions returns stellar transactions (https://developers.stellar.org/api/resources/transactions/list/) +// Transactions returns stellar transactions (https://developers.stellar.org/docs/data/horizon/api-reference/resources/list-all-transactions) // It can be used to return transactions for an account, a ledger,and all transactions on the network. func (c *Client) Transactions(request TransactionRequest) (txs hProtocol.TransactionsPage, err error) { err = c.sendRequest(request, &txs) @@ -607,7 +607,7 @@ func (c *Client) Transactions(request TransactionRequest) (txs hProtocol.Transac } // TransactionDetail returns information about a particular transaction for a given transaction hash -// See https://developers.stellar.org/api/resources/transactions/single/ +// See https://developers.stellar.org/docs/data/horizon/api-reference/resources/retrieve-a-transaction func (c *Client) TransactionDetail(txHash string) (tx hProtocol.Transaction, err error) { if txHash == "" { return tx, errors.New("no transaction hash provided") @@ -618,26 +618,26 @@ func (c *Client) TransactionDetail(txHash string) (tx hProtocol.Transaction, err return } -// OrderBook returns the orderbook for an asset pair (https://developers.stellar.org/api/aggregations/order-books/single/) +// OrderBook returns the orderbook for an asset pair (https://developers.stellar.org/docs/data/horizon/api-reference/aggregations/order-books/single) func (c *Client) OrderBook(request OrderBookRequest) (obs hProtocol.OrderBookSummary, err error) { err = c.sendRequest(request, &obs) return } -// Paths returns the available paths to make a strict receive path payment. See https://developers.stellar.org/api/aggregations/paths/strict-receive/ +// Paths returns the available paths to make a strict receive path payment. See https://developers.stellar.org/docs/data/horizon/api-reference/aggregations/paths/strict-receive // This function is an alias for `client.StrictReceivePaths` and will be deprecated, use `client.StrictReceivePaths` instead. func (c *Client) Paths(request PathsRequest) (paths hProtocol.PathsPage, err error) { paths, err = c.StrictReceivePaths(request) return } -// StrictReceivePaths returns the available paths to make a strict receive path payment. See https://developers.stellar.org/api/aggregations/paths/strict-receive/ +// StrictReceivePaths returns the available paths to make a strict receive path payment. See https://developers.stellar.org/docs/data/horizon/api-reference/aggregations/paths/strict-receive func (c *Client) StrictReceivePaths(request PathsRequest) (paths hProtocol.PathsPage, err error) { err = c.sendRequest(request, &paths) return } -// StrictSendPaths returns the available paths to make a strict send path payment. See https://developers.stellar.org/api/aggregations/paths/strict-send/ +// StrictSendPaths returns the available paths to make a strict send path payment. See https://developers.stellar.org/docs/data/horizon/api-reference/aggregations/paths/strict-send func (c *Client) StrictSendPaths(request StrictSendPathsRequest) (paths hProtocol.PathsPage, err error) { err = c.sendRequest(request, &paths) return @@ -650,7 +650,7 @@ func (c *Client) Payments(request OperationRequest) (ops operations.OperationsPa return } -// Trades returns stellar trades (https://developers.stellar.org/api/resources/trades/list/) +// Trades returns stellar trades (https://developers.stellar.org/docs/data/horizon/api-reference/resources/get-all-trades) // It can be used to return trades for an account, an offer and all trades on the network. func (c *Client) Trades(request TradeRequest) (tds hProtocol.TradesPage, err error) { err = c.sendRequest(request, &tds) @@ -658,7 +658,7 @@ func (c *Client) Trades(request TradeRequest) (tds hProtocol.TradesPage, err err } // Fund creates a new account funded from friendbot. It only works on test networks. See -// https://developers.stellar.org/docs/tutorials/create-account/ for more information. +// https://developers.stellar.org/docs/build/guides/basics/create-account for more information. func (c *Client) Fund(addr string) (tx hProtocol.Transaction, err error) { friendbotURL := fmt.Sprintf("%sfriendbot?addr=%s", c.fixHorizonURL(), addr) err = c.sendGetRequest(friendbotURL, &tx) @@ -676,7 +676,7 @@ func (c *Client) StreamTrades(ctx context.Context, request TradeRequest, handler return } -// TradeAggregations returns stellar trade aggregations (https://developers.stellar.org/api/aggregations/trade-aggregations/list/) +// TradeAggregations returns stellar trade aggregations (https://developers.stellar.org/docs/data/horizon/api-reference/aggregations/trade-aggregations/list) func (c *Client) TradeAggregations(request TradeAggregationRequest) (tds hProtocol.TradeAggregationsPage, err error) { err = c.sendRequest(request, &tds) return diff --git a/clients/horizonclient/main.go b/clients/horizonclient/main.go index a7bf923ac9..a7645c5b26 100644 --- a/clients/horizonclient/main.go +++ b/clients/horizonclient/main.go @@ -391,7 +391,7 @@ type OrderBookRequest struct { // PathsRequest struct contains data for getting available strict receive path payments from a horizon server. // All the Destination related parameters are required and you need to include either // SourceAccount or SourceAssets. -// See https://developers.stellar.org/api/aggregations/paths/strict-receive/ +// See https://developers.stellar.org/docs/data/horizon/api-reference/aggregations/paths/strict-receive type PathsRequest struct { DestinationAccount string DestinationAssetType AssetType @@ -405,7 +405,7 @@ type PathsRequest struct { // StrictSendPathsRequest struct contains data for getting available strict send path payments from a horizon server. // All the Source related parameters are required and you need to include either // DestinationAccount or DestinationAssets. -// See https://developers.stellar.org/api/aggregations/paths/strict-send/ +// See https://developers.stellar.org/docs/data/horizon/api-reference/aggregations/paths/strict-send type StrictSendPathsRequest struct { DestinationAccount string DestinationAssets string diff --git a/protocols/horizon/README.md b/protocols/horizon/README.md index 54b9ed1449..a35d5d77eb 100644 --- a/protocols/horizon/README.md +++ b/protocols/horizon/README.md @@ -17,7 +17,7 @@ For each new version we will only track changes from the previous version. #### Changes -* In ["Transaction"](https://developers.stellar.org/api/horizon/resources/transactions/object), +* In ["Transaction"](https://developers.stellar.org/docs/data/horizon/api-reference/resources/transactions/object), `result_meta_xdr` field is [now nullable](https://github.com/stellar/go/pull/5228), and will be `null` when Horizon has `SKIP_TXMETA=true` set, otherwise if Horizon is configured with `SKIP_TXMETA=false` which is default, then `result_meta_xdr` will be the same value of base64 encoded xdr. * Operations responses may include a `transaction` field which represents the transaction that created the operation. @@ -32,14 +32,14 @@ For each new version we will only track changes from the previous version. * Assets stats are disabled by default. This can be changed using an environment variable (`ENABLE_ASSET_STATS=true`) or CLI parameter (`--enable-asset-stats=true`). Please note that it has a negative impact on a DB and ingestion time. -* In ["Offers for Account"](https://developers.stellar.org/api/resources/accounts/offers/), +* In ["Offers for Account"](https://developers.stellar.org/docs/data/horizon/api-reference/resources/get-offers-by-account-id), `last_modified_time` field endpoint can be `null` when ledger data is not available (has not been ingested yet). -* ["Trades for Offer"](https://developers.stellar.org/api/resources/offers/trades/) endpoint +* ["Trades for Offer"](https://developers.stellar.org/docs/data/horizon/api-reference/resources/get-trades-by-offer-id) endpoint will query for trades that match the given offer on either side of trades, rather than just the "sell" offer. -Offer IDs are now [synthetic](https://developers.stellar.org/api/resources/trades/). +Offer IDs are now [synthetic](https://developers.stellar.org/docs/data/horizon/api-reference/resources/trades). * New `/operation_fee_stats` endpoint includes fee stats for the last 5 ledgers. -* ["Trades"](https://developers.stellar.org/api/resources/trades/list/) endpoint can now be streamed. -* In ["Trade Aggregations"](https://developers.stellar.org/api/aggregations/trade-aggregations/list/) endpoint, +* ["Trades"](https://developers.stellar.org/docs/data/horizon/api-reference/resources/get-all-trades) endpoint can now be streamed. +* In ["Trade Aggregations"](https://developers.stellar.org/docs/data/horizon/api-reference/aggregations/trade-aggregations/list) endpoint, `offset` parameter has been added. * Account flags now display `auth_immutable` value. * Rate limiting in streams has been changed to be more fair. Now 1 *credit* has to be *paid* every time there's a new ledger diff --git a/services/horizon/internal/actions/submit_transaction.go b/services/horizon/internal/actions/submit_transaction.go index 703e7a554d..2f9f233e92 100644 --- a/services/horizon/internal/actions/submit_transaction.go +++ b/services/horizon/internal/actions/submit_transaction.go @@ -142,7 +142,7 @@ func (handler SubmitTransactionHandler) response(r *http.Request, info envelopeI Detail: "The transaction failed when submitted to the stellar network. " + "The `extras.result_codes` field on this response contains further " + "details. Descriptions of each code can be found at: " + - "https://developers.stellar.org/api/errors/http-status-codes/horizon-specific/transaction-failed/", + "https://developers.stellar.org/docs/data/horizon/api-reference/errors/http-status-codes/horizon-specific/transaction-failed", Extras: extras, } } diff --git a/services/horizon/internal/actions/submit_transaction_async.go b/services/horizon/internal/actions/submit_transaction_async.go index 0cce31b5f6..20733b4844 100644 --- a/services/horizon/internal/actions/submit_transaction_async.go +++ b/services/horizon/internal/actions/submit_transaction_async.go @@ -81,7 +81,7 @@ func (handler AsyncSubmitTransactionHandler) GetResource(_ HeaderWriter, r *http Detail: "Could not submit transaction to stellar-core. " + "The `extras.error` field on this response contains further " + "details. Descriptions of each code can be found at: " + - "https://developers.stellar.org/api/errors/http-status-codes/horizon-specific/transaction-submission-async/transaction_submission_failed", + "https://developers.stellar.org/docs/data/horizon/api-reference/errors/http-status-codes/horizon-specific/transaction-failed", Extras: map[string]interface{}{ "envelope_xdr": raw, "error": err, @@ -98,7 +98,7 @@ func (handler AsyncSubmitTransactionHandler) GetResource(_ HeaderWriter, r *http Detail: "Received exception from stellar-core." + "The `extras.error` field on this response contains further " + "details. Descriptions of each code can be found at: " + - "https://developers.stellar.org/api/errors/http-status-codes/horizon-specific/transaction-submission-async/transaction_submission_exception", + "https://developers.stellar.org/docs/data/horizon/api-reference/errors/http-status-codes/horizon-specific/transaction-malformed", Extras: map[string]interface{}{ "envelope_xdr": raw, "error": resp.Exception, @@ -127,7 +127,7 @@ func (handler AsyncSubmitTransactionHandler) GetResource(_ HeaderWriter, r *http Detail: "Received invalid status from stellar-core." + "The `extras.error` field on this response contains further " + "details. Descriptions of each code can be found at: " + - "https://developers.stellar.org/api/errors/http-status-codes/horizon-specific/transaction-submission-async/transaction_submission_invalid_status", + "https://developers.stellar.org/docs/data/horizon/api-reference/errors/http-status-codes/horizon-specific/timeout", Extras: map[string]interface{}{ "envelope_xdr": raw, "error": resp.Error, diff --git a/services/horizon/internal/httpx/static/txsub_async_oapi.yaml b/services/horizon/internal/httpx/static/txsub_async_oapi.yaml index f889cf4ec8..98ff14d485 100644 --- a/services/horizon/internal/httpx/static/txsub_async_oapi.yaml +++ b/services/horizon/internal/httpx/static/txsub_async_oapi.yaml @@ -27,7 +27,7 @@ paths: application/json: schema: $ref: '#/components/schemas/AsyncTransactionSubmissionResponse' - example: + example: tx_status: "PENDING" hash: "6cbb7f714bd08cea7c30cab7818a35c510cbbfc0a6aa06172a1e94146ecf0165" @@ -36,7 +36,7 @@ paths: content: application/json: schema: - oneOf: + oneOf: - $ref: '#/components/schemas/AsyncTransactionSubmissionResponse' - $ref: '#/components/schemas/Problem' examples: @@ -77,7 +77,7 @@ paths: application/json: schema: $ref: '#/components/schemas/AsyncTransactionSubmissionResponse' - example: + example: errorResultXdr: "" tx_status: "DUPLICATE" hash: "6cbb7f714bd08cea7c30cab7818a35c510cbbfc0a6aa06172a1e94146ecf0165" @@ -94,7 +94,7 @@ paths: type: "transaction_submission_failed" title: "Transaction Submission Failed" status: 500 - detail: "Could not submit transaction to stellar-core. The `extras.error` field on this response contains further details. Descriptions of each code can be found at: https://developers.stellar.org/api/errors/http-status-codes/horizon-specific/transaction-submission-async/transaction_submission_failed" + detail: "Could not submit transaction to stellar-core. The `extras.error` field on this response contains further details. Descriptions of each code can be found at: https://developers.stellar.org/docs/data/horizon/api-reference/errors/http-status-codes/horizon-specific/transaction-failed" extras: envelope_xdr: "" error: "Error details here" @@ -104,7 +104,7 @@ paths: type: "transaction_submission_exception" title: "Transaction Submission Exception" status: 500 - detail: "Received exception from stellar-core. The `extras.error` field on this response contains further details. Descriptions of each code can be found at: https://developers.stellar.org/api/errors/http-status-codes/horizon-specific/transaction-submission-async/transaction_submission_exception" + detail: "Received exception from stellar-core. The `extras.error` field on this response contains further details. Descriptions of each code can be found at: https://developers.stellar.org/docs/data/horizon/api-reference/errors/http-status-codes/horizon-specific/transaction-malformed" extras: envelope_xdr: "" error: "Exception details here" @@ -130,7 +130,7 @@ paths: tx_status: "TRY_AGAIN_LATER" hash: "6cbb7f714bd08cea7c30cab7818a35c510cbbfc0a6aa06172a1e94146ecf0165" - + components: schemas: AsyncTransactionSubmissionResponse: diff --git a/services/ticker/docs/API.md b/services/ticker/docs/API.md index 456017da0f..cb10bae987 100644 --- a/services/ticker/docs/API.md +++ b/services/ticker/docs/API.md @@ -118,7 +118,7 @@ GET `https://ticker.stellar.org/markets.json` } ``` ## Asset (Currency) Data -Lists all the valid assets within the Stellar network. The provided fields are based on the [Currency Documentation of SEP-0001](https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0001.md#currency-documentation) and the [Asset fields from Horizon](https://developers.stellar.org/api/resources/assets/). +Lists all the valid assets within the Stellar network. The provided fields are based on the [Currency Documentation of SEP-0001](https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0001.md#currency-documentation) and the [Asset fields from Horizon](https://developers.stellar.org/docs/data/horizon/api-reference/resources/assets). ### Response Fields * `generated_at`: UNIX timestamp of when data was generated @@ -234,7 +234,7 @@ Apart from the orderbook data provided by `markets.json`, orderbook data can be The `type`, `code` and `issuer` parameters for any given asset can be found in the Ticker's `assets.json` endpoint described in the previous section. -Full documentation on Horizon's Orderbook endpoint can be found [here](https://developers.stellar.org/api/aggregations/order-books/). +Full documentation on Horizon's Orderbook endpoint can be found [here](https://developers.stellar.org/docs/data/horizon/api-reference/aggregations/order-books). ### Example #### Endpoint diff --git a/services/ticker/internal/scraper/orderbook_scraper.go b/services/ticker/internal/scraper/orderbook_scraper.go index 9433414cdf..1960d46b13 100644 --- a/services/ticker/internal/scraper/orderbook_scraper.go +++ b/services/ticker/internal/scraper/orderbook_scraper.go @@ -121,7 +121,7 @@ func createOrderbookRequest(bType, bCode, bIssuer, cType, cCode, cIssuer string) // when an Asset is native. As we store "XLM" as the asset code for native, // we should only add Code and Issuer info in case we're dealing with // non-native assets. - // See: https://developers.stellar.org/api/aggregations/order-books/single/ + // See: https://developers.stellar.org/docs/data/horizon/api-reference/aggregations/order-books/single if bType != string(horizonclient.AssetTypeNative) { r.SellingAssetCode = bCode r.SellingAssetIssuer = bIssuer