Bitrota (1.0.0)

Download OpenAPI specification:Download

API GUIDE

Login

Login APIs

chkUser

Request Body schema: multipart/form-data
username
string

Responses

login

Request Body schema: multipart/form-data
username
string

email,username,cellphone

password
string

password

gacode
integer

Send Ga code if any or leave blank

Responses

Response samples

Content type
application/json
{
  • "status": 1,
  • "data": {
    }
}

submit

header Parameters
Content-Type
string
Example: application/x-www-form-urlencoded
Request Body schema: application/json
object

Responses

Request samples

Content type
application/json
{
  • "username": "amber",
  • "password": "password1"
}

Response samples

Content type
application/json
{
  • "status": 1,
  • "data": {
    }
}

check2fa

Request Body schema: multipart/form-data
ga
integer

Enter 2fa from Google Authenticator

Responses

Response samples

Content type
application/json
{
  • "status": 1,
  • "data": {
    }
}

emailcode

header Parameters
Content-Type
string
Example: application/x-www-form-urlencoded
content
string
Example: application/json
Request Body schema: application/json
object

Responses

Request samples

Content type
application/json
{
  • "email": "turndealer@gmail.com"
}

Response samples

Content type
application/json
{
  • "status": 0,
  • "data": "EMAIL ALREADY EXISTS, PLEASE LOGIN INSTEAD!"
}

emailregister

Request Body schema: multipart/form-data
username
string
email
string
verify
integer

code received from emailcode api

password
string
invit
string

optional invite id

Responses

Response samples

Content type
application/json
{
  • "status": 1,
  • "data": "SUCCESSFULLY_REGISTERED"
}

forgotcode

When user is not logged in

Person can request a code on email for password reset

Which can later be confirmed using confirmcode api

Request Body schema: multipart/form-data
email
string

Responses

Response samples

Content type
application/json
{
  • "status": 1,
  • "data": {
    }
}

confirmcode

When user is not logged in

Code requested in forgotcode api can be send to this api with email and new password to reset the password.

Request Body schema: multipart/form-data
email
string
verify_code
integer
password
string

Responses

Response samples

Content type
application/json
{
  • "status": 1,
  • "data": {
    }
}

loginout

header Parameters
ID
integer
Example: 38
TOKEN
string
Example: b31247c632693b7e4448566c625fac3b

Responses

findpwd

Request Body schema: multipart/form-data
username
integer
cellphone
string
cellphone_verify
string

Responses

findpaypwd

Request Body schema: multipart/form-data
username
string
cellphone
string
cellphone_verify
string
password
string

New Fund password

repassword
string

Repeat Fund password

Responses

check_reg

Request Body schema: multipart/form-data
username
string
mobile
integer
verify
string
password
string

New Fund password

invit
string

Repeat Fund password

Responses

sendCellphone

Request Body schema: multipart/form-data
cellphone
integer

cellphone number along with country code example 441245454545

Responses

sendForgetCode

Request Body schema: multipart/form-data
cellphone
integer

cellphone number along with country code example 441245454545

Responses

forgetSave

Request Body schema: multipart/form-data
cellphone
integer

cellphone number along with country code example 441245454545

verify_code
integer
password
string
paypassword
string

Responses

Articles

index

Responses

ArtList

Request Body schema: multipart/form-data
pid
string

Show articles where id >pid

Responses

ArtShow

Request Body schema: multipart/form-data
id
integer

Enter article id to show

Responses

Affiliates

info

header Parameters
id
string
Example: {{id}}
TOKEN
string
Example: {{token}}

Responses

Exchange

lasttrades

Responses

activeorders

Responses

MyOpenOrders

header Parameters
id
string
Example: {{id}}
TOKEN
string
Example: {{token}}

Responses

upTrade

header Parameters
id
string
Example: {{id}}
TOKEN
string
Example: {{token}}
Request Body schema: multipart/form-data
price
integer

price

market
string

market

num
integer

quantity

type
integer

1=buy 2= sell

Responses

reject

header Parameters
id
string
Example: {{id}}
TOKEN
string
Example: {{token}}

Responses

Chart

index

Responses

getChart

Request Body schema: multipart/form-data
marketid
integer

Enter ID of market

Responses

depth

Request Body schema: multipart/form-data
marketid
integer

marketid for depth

Responses

showP

Request Body schema: multipart/form-data
market_id
integer

Stats line by market id

Responses

Index

index

Responses

initinfo

Responses

marketInfo

All Market Stats in one

Responses

Response samples

Content type
application/json
{}

ticker

All Market Stats in one

Responses

Response samples

Content type
application/json
{}

singlemarketInfo

All Market Stats in one

Responses

Response samples

Content type
application/json
{}

up

header Parameters
ID
integer
Example: 30
TOKEN
string
Example: 0922d72c312539b0a522ac572c283550

Responses

Trade

matchingTrade

Request Body schema: multipart/form-data
market
string

btc_ltc

Responses

mywt

header Parameters
TOKEN
string
Example: 9a0fce26945b38afd05b42cfb2f3803c

Set token from login api

ID
integer
Example: 30

Set id from login api

Request Body schema: multipart/form-data
id
integer

Enter trade id

Responses

User

getTradedata

Request Body schema: multipart/form-data
marketid
integer

enter marketid example 7,8

Responses

Response samples

Content type
application/json
{
  • "status": 1,
  • "data": {
    }
}

changeFundPassword

When there is no fund exising password, Send oldpaypassword as empty or NEW

header Parameters
ID
string
Example: {{id}}
TOKEN
string
Example: {{token}}
Request Body schema: multipart/form-data
oldpaypassword
string

Your exiting Password

newpaypassword
string

New fund password

repaypassword
string

Repeat Fund password

Responses

GetSet2FA

GetSet2FA

header Parameters
TOKEN
string
Example: {{token}}
ID
string
Example: {{id}}

Responses

Response samples

Content type
application/json
{
  • "status": 1,
  • "data": {
    }
}

GetSet2FA Post

GetSet2FA

header Parameters
TOKEN
string
Example: {{token}}
ID
string
Example: {{id}}
Request Body schema: multipart/form-data
ga
integer

2FA code Generated using Secret

type
string

add/update/delete

ga_transfer
integer

1=2fa required for withdrawal, 0=2fa not required for withdrawal

ga_login
integer

1=2fa Required at login, 0 =2fa Not required at login

Responses

Response samples

Content type
application/json
{
  • "status": 1,
  • "data": {
    }
}

userinfo

header Parameters
TOKEN
string
Example: {{token}}

Set token from login api

ID
string
Example: {{id}}

Set id from login api

Responses

Response samples

Content type
application/json
{
  • "status": 1,
  • "data": {
    }
}

profile

header Parameters
TOKEN
string
Example: a8e8227fec29f7b9b1436a12d02c2903

Set token from login api

ID
integer
Example: 38

Set id from login api

Responses

Response samples

Content type
application/json
{
  • "status": 1,
  • "data": {
    }
}

updatepass

header Parameters
TOKEN
string
Example: 0922d72c312539b0a522ac572c283550

Set token from login api

ID
integer
Example: 30

Set id from login api

Request Body schema: application/json
object

Responses

Request samples

Content type
application/json
{
  • "curpass": "password",
  • "newpass": "password1",
  • "repass": "password1"
}

Response samples

Content type
application/json
{
  • "status": 1,
  • "data": {
    }
}

wallet

header Parameters
TOKEN
string
Example: {{token}}

Set token from login api

ID
string
Example: {{id}}

Set id from login api

Responses

Response samples

Content type
application/json
{
  • "status": 1,
  • "data": {
    }
}

FiatBalance

header Parameters
TOKEN
string
Example: 1a1f3578724db2f6f3e068136dee46b6

Set token from login api

ID
integer
Example: 38

Set id from login api

Responses

Response samples

Content type
application/json
{
  • "status": 1,
  • "data": {
    }
}

bank

header Parameters
TOKEN
string
Example: db71481613b62b96b1e56cd3f6ead6ec

Set token from login api

ID
integer
Example: 30

Set id from login api

Responses

mybank

header Parameters
TOKEN
string
Example: db71481613b62b96b1e56cd3f6ead6ec

Set token from login api

ID
integer
Example: 30

Set id from login api

Responses

sendCellphone

header Parameters
TOKEN
string
Example: 0922d72c312539b0a522ac572c283550

Set token from login api

ID
integer
Example: 30

Set id from login api

Responses

mytx_log

header Parameters
TOKEN
string
Example: beb3a8d46d1919149912e48378978450

Set token from login api

ID
integer
Example: 38

Set id from login api

Responses

mycz_log

header Parameters
TOKEN
string
Example: 9a0fce26945b38afd05b42cfb2f3803c

Set token from login api

ID
integer
Example: 30

Set id from login api

Request Body schema: multipart/form-data
pid
integer

pageid or record id after which records need to be fetched

Responses

auth_check

header Parameters
TOKEN
string
Example: 9a0fce26945b38afd05b42cfb2f3803c

Set token from login api

ID
integer
Example: 30

Set id from login api

Responses

Otc

index

Show OTP Plans Returns all infomation

Responses

Response samples

Content type
application/json
{
  • "status": 1,
  • "data": {
    }
}

getquote

GetSet2FA

header Parameters
TOKEN
string
Example: {{token}}
ID
string
Example: {{id}}
Request Body schema: multipart/form-data
trade_coin
string

coin you need to buy sell [1st option]

base_coin
string

coin you need to use [2nd option]

input1
integer

trade coin you need to buy sell

input2
string

base coin you need to spend/get [choose either input 1 or input2

tradetype
string

buy/sell

Responses

Response samples

Content type
application/json
{
  • "status": 1,
  • "data": {
    }
}

approvequote

header Parameters
TOKEN
string
Example: {{token}}

Set token from login api

ID
string
Example: {{id}}

Set id from login api

Request Body schema: multipart/form-data
qid
integer

quote id [int]

Responses

Response samples

Content type
application/json
{
  • "status": 1,
  • "data": {
    }
}

log

Request Body schema: multipart/form-data
id
integer

id for log view [int]

Responses

Response samples

Content type
application/json
{
  • "status": 1,
  • "data": {
    }
}

records

query Parameters
ls
integer
Example: ls=15

optional last record [int]

header Parameters
TOKEN
string
Example: a8e8227fec29f7b9b1436a12d02c2903

Set token from login api

ID
integer
Example: 38

Set id from login api

Request Body schema: multipart/form-data
object

Responses

Response samples

Content type
application/json
{
  • "status": 1,
  • "data": {
    }
}

Crypto

https://bitrota.com/Api/Crypto/depositaddress

MyWithdrawals

header Parameters
TOKEN
string
Example: 5649c7f17db8343a5159473f548f4594

Set token from login api

ID
integer
Example: 39

Set id from login api

Responses

https://bitrota.com/Api/Crypto/coinbalance

MyWithdrawals

header Parameters
TOKEN
string
Example: 5649c7f17db8343a5159473f548f4594

Set token from login api

ID
integer
Example: 39

Set id from login api

Responses

https://bitrota.com/Api/Crypto/doWithdraw

MyWithdrawals

header Parameters
TOKEN
string
Example: 5649c7f17db8343a5159473f548f4594

Set token from login api

ID
integer
Example: 39

Set id from login api

Content-Type
string
Example: application/x-www-form-urlencoded
Request Body schema: application/json
object

Responses

Request samples

Content type
application/json
{
  • "coin": "tbtc",
  • "num": "0.001",
  • "addr": "1123423423423525353453456346534645645745746747475",
  • "paypassword": "funding"
}

https://bitrota.com/Api/Crypto/MyDeposits

MyWithdrawals

header Parameters
TOKEN
string
Example: {{token}}

Set token from login api

ID
string
Example: {{id}}

Set id from login api

Responses

Response samples

Content type
application/json
{
  • "status": 1,
  • "data": [
    ]
}

CoinGecko Submission Apis

HTTP API should cover the following:

  1. Ticker (last done, bid, ask, 24h volume, 24h high, 24h low).
  2. OrderBook (list of asks and list of bids at least 100 levels).
  3. Trades (X number of trades executed)

pairs

Responses

tickers

Responses

orderbook

query Parameters
ticker_id
string
Example: ticker_id=BTC_ETH

market name

depth
integer
Example: depth=100

max 100

Responses

historical_trades

query Parameters
ticker_id
string
Example: ticker_id=BTC_USD

required

depth
integer
Example: depth=100

optional

type
string
Example: type=buy

required:buy or sell

Responses

Fiat

https://bitrota.com/Api/Crypto/MyWithdrawals

MyFiat

header Parameters
TOKEN
string
Example: {{token}}

Set token from login api

ID
string
Example: {{id}}

Set id from login api

Responses

Response samples

Content type
application/json
{
  • "status": 1,
  • "data": [
    ]
}

https://bitrota.com/Api/Crypto/fiatDeposit

MyFiat

header Parameters
TOKEN
string
Example: {{token}}

Set token from login api

ID
string
Example: {{id}}

Set id from login api

Responses

Response samples

Content type
application/json
{
  • "status": 1,
  • "data": [
    ]
}

https://bitrota.com/Api/Crypto/fiatDepositHistory

MyFiat

header Parameters
TOKEN
string
Example: {{TOKEN}}

Set token from login api

ID
string
Example: {{ID}}

Set id from login api

Responses

Response samples

Content type
application/json
{
  • "status": 1,
  • "data": [
    ]
}

https://bitrota.com/Api/Crypto/fiatoutlog

MyFiat

header Parameters
TOKEN
string
Example: {{token}}

Set token from login api

ID
string
Example: {{id}}

Set id from login api

Responses

Response samples

Content type
application/json
{
  • "status": 1,
  • "data": [
    ]
}

https://bitrota.com/Api/Crypto/markAsPaid

MyFiat

header Parameters
TOKEN
string
Example: {{token}}

Set token from login api

ID
string
Example: {{id}}

Set id from login api

Responses

Response samples

Content type
application/json
{
  • "status": 1,
  • "data": [
    ]
}

https://bitrota.com/Api/Crypto/cancelFiatOut

MyFiat

header Parameters
TOKEN
string
Example: {{token}}

Set token from login api

ID
string
Example: {{id}}

Set id from login api

Responses

Response samples

Content type
application/json
{
  • "status": 1,
  • "data": [
    ]
}

https://bitrota.com/Api/Crypto/viewFiatOrder

MyFiat

header Parameters
TOKEN
string
Example: {{token}}

Set token from login api

ID
string
Example: {{id}}

Set id from login api

Responses

Response samples

Content type
application/json
{
  • "status": 1,
  • "data": [
    ]
}

https://bitrota.com/Api/Crypto/doFiatWithdrawal

MyFiat

query Parameters
num
integer
Example: num=6400
paypassword
string
Example: paypassword=funding
type
integer
Example: type=13
coinname
string
Example: coinname=usd
header Parameters
TOKEN
string
Example: {{token}}

Set token from login api

ID
string
Example: {{id}}

Set id from login api

Responses

Response samples

Content type
application/json
{
  • "status": 1,
  • "data": [
    ]
}

Internal

makeUpdate

Deposit or withdraw from User account

header Parameters
TOKEN
string
Example: 5f2b5cdbe5194f10b3241568fe4e2b24

In simple auth pass secret , in advance pass generated token

APIKEY
string
Example: bf55fcff5d1cbeebf5f00e08e23357fb
Request Body schema: multipart/form-data
member_id
integer

mapping userid

wallet_item_id
integer

coin_id

coin_amount
integer

amount

Transaction_type
string

deposit/withdrawal

TXID
integer

Transaction id from other system

TXID_datetime
integer

timestamp else it will use unix timestamp

Responses

tradelog

Receive Trade logs

header Parameters
TOKEN
string
Example: 5f2b5cdbe5194f10b3241568fe4e2b24

In simple auth pass secret , in advance pass generated token

APIKEY
string
Example: bf55fcff5d1cbeebf5f00e08e23357fb
Request Body schema: multipart/form-data
MY_ID
integer

For own record

CODONO_TXID
integer

id for trade_log

Datetime
integer

timestamp

Responses

simulateTrade

Create Trade orders [First buy then sell or viceversa]

header Parameters
TOKEN
string
Example: 5f2b5cdbe5194f10b3241568fe4e2b24

In simple auth pass secret , in advance pass generated token

APIKEY
string
Example: bf55fcff5d1cbeebf5f00e08e23357fb
Request Body schema: multipart/form-data
orderid
integer

External orderid

market
string

market name on exchange

num
number

quantity

price
integer

price

type
integer

buy=1, sell=2

ordertime
integer

external timestamp

delay
integer

mili secs [10^6]

Responses

multipleOrders

Method when called Creates Multiple orders, and if there are pending orders and amount isnt sufficient then it cancels also

header Parameters
TOKEN
string
Example: 5f2b5cdbe5194f10b3241568fe4e2b24

In simple auth pass secret , in advance pass generated token

APIKEY
string
Example: bf55fcff5d1cbeebf5f00e08e23357fb
Request Body schema: multipart/form-data
market
string

system market pair

type
integer

buy=1, sell=2

Datetime
integer

external timestamp

orders_json
number

[["price,"qty],["price,"qty],["price,"qty]]

TXID
integer

externalid

uid
integer

Responses

user

Deposit or withdraw from User account

header Parameters
TOKEN
string
Example: 5f2b5cdbe5194f10b3241568fe4e2b24

In simple auth pass secret , in advance pass generated token

APIKEY
string
Example: bf55fcff5d1cbeebf5f00e08e23357fb
Request Body schema: multipart/form-data
user_id
integer

userid to update or add

username
string

username

email
string

add only

idcardauth
integer

update or add

last_update
integer

add/update

password
string

password [md5]

paypassword
string

paypassword [md5]

truename
string

full name

Responses

Response samples

Content type
text/plain
Example
{"status":1,"action":"add","last_update":"1617897112","token":"c4dd6bc4362fdd9ae8de188e6fc7318f","data":{"user_id":"380","username":"blackhawk","email":"someone@black.hawk","idcardauth":"1","last_update":"1617897112","password":"5f4dcc3b5aa765d61d8327deb882cf99","truename":"steve jobs"}}

index

Connection Check

header Parameters
TOKEN
string
Example: zyx321
ID
string
Example: abc123

Responses

CMC

Spot Exchanges API endpoints

Summary

The summary endpoint is to provide an overview of market data for all tickers and all market pairs on the exchange.

Responses

assets

The assets endpoint is to provide a detailed summary for each currency available on the exchange.

Responses

ticker

The ticker endpoint is to provide a 24-hour pricing and volume summary for each market pair available on the exchange.

Responses

orderbook

The order book endpoint is to provide a complete level 2 order book (arranged by best asks/bids) with full depth returned for a given market pair.

query Parameters
market_pair
string
Example: market_pair=btc_usdt

Responses

trades

The trades endpoint is to return data on all recently completed trades for a given market pair.

query Parameters
market_pair
string
Example: market_pair=btc_usdt

Responses