# YellowChanger API > REST API for building a crypto exchange and accepting crypto payments. Authenticate every request with the Y_API_KEY header and a Signature header (HMAC SHA256 of the request body). Base URL: https://api.yellowchanger.com ## Info - [Introduction](https://docs.yellowchanger.com/introduction.md): Build your own crypto exchange or accept crypto payments with the YellowChanger REST API. Authentication, endpoints, examples in JavaScript and Python. - [Signature](https://docs.yellowchanger.com/signature.md): How to sign YellowChanger API requests: build the Signature header as HMAC SHA256 of the request body with your private key. Code examples in JavaScript and Python. - [Status info](https://docs.yellowchanger.com/statusInfo.md): Reference of trade status codes returned by createTrade and getInfo in the YellowChanger API: pending payment, confirmation, success, cancelled and more. - [Validate address](https://docs.yellowchanger.com/validateAddress.md): Regular expressions and code to validate crypto wallet addresses per network (BTC, ERC20, TRC20, SOL, TON and others) before creating a trade with the YellowChanger API. ## Methods - [allRates](https://docs.yellowchanger.com/allRates.md): GET /trades/allRates returns every available crypto exchange rate. Headers, response format and JavaScript and Python examples. - [createTrade](https://docs.yellowchanger.com/createTrade.md): POST /trades/createTrade creates a new crypto exchange and returns the deposit address and trade info. Parameters, SBP and RUB options, test mode, examples. - [destinationsList](https://docs.yellowchanger.com/destinationsList.md): GET /trades/destinationsList returns all currencies and networks available as exchange destinations. Request format, response and code examples. - [ratesInDirection](https://docs.yellowchanger.com/ratesInDirection.md): GET /trades/ratesInDirection returns exchange rates for a single currency direction such as USDT. Parameters, response and examples. - [getInfo](https://docs.yellowchanger.com/getInfo.md): GET /trades/getInfo returns full trade information by uniq_id: status, payment wallet, partner commission and the needChangeAddress flag. Examples included. - [cancelTrade](https://docs.yellowchanger.com/cancelTrade.md): POST /trades/cancelTrade cancels an exchange created through the YellowChanger API. Required headers, body parameters and code examples. - [changeAddress](https://docs.yellowchanger.com/changeAddress.md): POST /trades/changeAddress sets a new payout address when a trade has needChangeAddress = true. Parameters, response and examples. - [calculateTrade](https://docs.yellowchanger.com/calculateTrade.md): POST /trades/calculateTrade returns the rate and amounts for a currency pair, with optional send_value to get the receive amount and availability. ## Optional - [Full documentation in one file](https://docs.yellowchanger.com/llms-full.txt): every page concatenated as Markdown - [Python library](https://pypi.org/project/yellowchangerapi/): official client - [GitHub](https://github.com/yellowfluf/YellowChangerAPI/tree/main): client source code