logo

CREATE ASTONISHING PRODUCTS WITH US

Automatize work in exchange mode for crypto-crypto and other pairs
CREATE ASTONISHING PRODUCTS WITH US
API appliance

API appliance

Traders are able to connect their services to Chatex and use our developments. The functionality of our API is similar and compatible with the API of other exchanges, so your strategies can be quickly and easily integrated with Chatex. The developer will be able to quickly figure out our system and create robots for it.

API opportunities

Account information
Account information
View profile, balance, current limits
System references obtaining
System references obtaining
Coins, fiat currencies, payment systems, etc.
Crypto-Crypto trading automatization
Crypto-Crypto trading automatization
Viewing, creation and management orders and deals
Chatex Pay integration for  goods and services payments
Chatex Pay integration for goods and services payments
Capability to issue payment invoices
Account management
Account management
Phone number and e-mail verification, setting up 2FA, coins and fiat currencies
Cryptocurrency rates
Cryptocurrency rates
Budding currencies rates
Wallet management
Wallet management
Withdrawal / transfer, history, address, depending on what rights were given while creating the key
Automatization of Crypto-Fiat trading
Automatization of Crypto-Fiat trading
View, create and manage ads and trades for crypto-fiat pairs

Simple and safe management

  • Stay in touch with the situation. Figure out what ads are displayed by competitors, what are the conditions in them, etc.;
  • Adjust the exchange rate in ads depending on the market situation and the behavior of other merchants;
  • Make exchanges on ads that are profitable for you;
  • Manage your wallet. You can withdraw and transfer funds;
  • Integrate with other programs, including CRM, accounting systems, payments, other exchange platforms and trading robots.
Technical documentation
Simple and safe management

Code examples

Tested and reliable stable APIs.
			              package main

import (
	"context"
	"fmt"

	"github.com/chatex-com/sdk-go"
	"github.com/shopspring/decimal"
	log "github.com/sirupsen/logrus"
)

func main() {
	client := chatexsdk.NewClient("https://api.chatex.com/v1/", YourRefreshToken)

	// Example order:
	// ID: #123
	// Selling TON_CRYSTALS for USDT
	// Rate: 0.8 (1 TON_CRYSTAL = 0.8 USDT)

	trade, err := client.CreateTrade(context.Background(), 123, chatexsdk.TradeRequest{
		Amount: decimal.RequireFromString("10.0"), // buy 10 TON_CRYSTAL
		Rate:   decimal.RequireFromString("0.8"),  // with rate 1 TON_CRYSTAL = 0.8 USDT
	})
	if err != nil {
		log.WithError(err).Error("unable to execute order trade")
	}

	fmt.Printf(
		"Trade #%d was successfully executed.\nYour got %s TON_CRYSTAL for %s USDT. Fee: %s TON_CRYSTAL",
		trade.ID,
		trade.ReceivedAmount,
		trade.Amount,
		trade.Fee,
	)

	// Trade #1234 was successfully executed.
	// Your got 10 TON_CRYSTAL for 8 USDT. Fee: 0 TON_CRYSTAL
}
			            
			              package main

import (
	"context"
	"fmt"

	"github.com/chatex-com/sdk-go"
	"github.com/shopspring/decimal"
	log "github.com/sirupsen/logrus"
)

func main() {
	client := chatexsdk.NewClient("https://api.chatex.com/v1/", YourRefreshToken)

	order, err := client.CreateOrder(context.Background(), chatexsdk.CreateOrderRequest{
		Amount: decimal.RequireFromString("10.0"), // amount of ton_crystal coins
		Pair:   "ton_crystal/usdt",                // pair sell_coin/buy_coin
		Rate:   decimal.RequireFromString("0.8"),  // rate sell_coin / buy_coin
	})
	if err != nil {
		log.WithError(err).Error("unable to create order")
	}

	fmt.Printf("Order #%d was created (%s)", order.ID, order.Status)
}
			            
			              package main

import (
	"context"
	"fmt"

	"github.com/chatex-com/sdk-go"
	log "github.com/sirupsen/logrus"
)

func main() {
	client := chatexsdk.NewClient("https://api.chatex.com/v1/", YourRefreshToken)

	order, err := client.CancelOrder(context.Background(), 245290)
	if err != nil {
		log.WithError(err).Error("unable to cancel order")
	}

	fmt.Printf("Order #%d was successfully cancelled", order.ID)
}
			            
			              package main

import (
	"context"
	"fmt"

	"github.com/chatex-com/sdk-go"
	log "github.com/sirupsen/logrus"
)

func main() {
	client := chatexsdk.NewClient("https://api.chatex.com/v1/", YourRefreshToken)

	balance, err := client.GetMyBalance(context.Background())
	if err != nil {
		log.WithError(err).Error("unable to get balance")
	}

	fmt.Println("My balance:")
	for _, b := range balance {
		fmt.Printf("%s: %s", b.Coin, b.Amount)
		if b.Held != "0" {
			fmt.Printf(" (%s held)", b.Held)
		}
		fmt.Println()
	}
}
			            
			              package main

import (
	"context"
	"fmt"

	"github.com/chatex-com/sdk-go"
	log "github.com/sirupsen/logrus"
)

func main() {
	client := chatexsdk.NewClient("https://api.chatex.com/v1/", YourRefreshToken)

	// Example: get 10 better orders for buying TON_CRYSTAL for USDT (pair ton_crystal/usdt)
	orders, err := client.GetOrders(context.Background(), "ton_crystal/usdt", 0, 10)
	if err != nil {
		log.WithError(err).Error("unable to get orders")
	}

	fmt.Println("Found orders:")
	for _, order := range orders {
		fmt.Printf("#%d up to %s TON_CRYSTAL. 1 TON_CRYSTAL = %s USDT\n", order.ID, order.Amount, order.Rate)
	}
}
			            
			              package main

import (
	"context"
	"fmt"

	"github.com/chatex-com/sdk-go"
	"github.com/shopspring/decimal"
	log "github.com/sirupsen/logrus"
)

func main() {
	client := chatexsdk.NewClient("https://api.chatex.com/v1/", YourRefreshToken)

	transfer, err := client.TransferMoney(context.Background(), chatexsdk.TransferRequest{
		Coin:         "ton_crystal",
		Amount:       decimal.RequireFromString("10"),
		Recipient:    "+79001234567",
		SecondFactor: &chatexsdk.SecondFactor{
			Mode: chatexsdk.SecondFactorPIN,
			Code: "123456",
		},
	})
	if err != nil {
		log.WithError(err).Error("unable to transfer money")
	}

	fmt.Printf("You successfully sent %s TON_CRYSTAL to %s", transfer.Amount.String(), transfer.User)
}
			            

changelog

Technical documentation

SIMPLE, SECURE AND RELIABLE CRYPTOBANK

receive, exchange and store
cryptocurrency in your smartphone
Download app for instant exchanges
Download app for instant exchanges

✨ Chatex has launched Token Sale