Package: vexbi
Python library forVexbiAPI. Please read
ourdocumentationfor instructions on how to start using the
API.RequirementsPython 2.7.0+Git 1.7.0+Getting startedinstall dependencies:pip install -r requirements.txtUsage#create_order/v2/orders*POST*Summary:Create a Sell/Buy order.Description:Create a Sell/Buy
order.ParametersNameLocated inDescriptionRequiredSchem
amarke
tformDataUnique
market id.
It’s always
in the form
of xxxyyy,
where xxx is
the base
currency
code, yyy is
the quote
currency
code, e.g.
‘btcusd’.
All
available
markets can
be found at
/api/v2/mark
ets.Yesstrin
gsideformDataEither
‘sell’ or
‘buy’.Yesstrin
gvolum
eformDataThe amount
user want to
sell/buy. An
order could
be partially
executed,
e.g. an
order sell 5
btc can be
matched with
a buy 3 btc
order, left
2 btc to be
sold; in
this case
the order’s
volume would
be ‘5.0’,
its
remaining_v
olume
would be
‘2.0’, its
executed
volume is
‘3.0’.Yesstrin
gpriceformDataPrice for
each unit.
e.g. If you
want to
sell/buy 1
btc at 3000
usd, the
price is
‘3000.0’Nostrin
gord_
typeformDataThe type of
order, can
bemarketorlimitNo
(defaults
tolimitstrin
gResponsesCodeDescription201Create a Sell/Buy order.#delete_order/v2/order/delete*POST*Summary:Cancel an order.Description:Cancel an order.ParametersNameLocated inDescriptionRequiredSchemaidformDataUnique order id.YesintegerResponsesCodeDescription201Cancel an order.#clear_all/v2/orders/clear*POST*Summary:Cancel all my orders.Description:Cancel all my
orders.ParametersNameLocated inDescriptionRequiredSchem
asideformDataIf present,
only sell
orders
(asks) or
buy orders
(bids) will
be
canncelled.Nostrin
gResponsesCodeDescription201Cancel all my orders.#get_orders/v2/orders*GET*Summary:Get your orders, results is paginated.Description:Get
your orders, results is paginated.ParametersNameLocated inDescriptionRequiredSchem
amarke
tqueryUnique
market id.
It’s always
in the form
of xxxyyy,
where xxx is
the base
currency
code, yyy is
the quote
currency
code, e.g.
‘btcusd’.
All
available
markets can
be found at
/api/v2/mark
ets.Yesstrin
gstatequeryFilter order
by state,
default to
‘wait’
(active
orders).Nostrin
glimitqueryLimit the
number of
returned
orders,
default to
100.Nointeg
erpagequerySpecify the
page of
paginated
results.Nointeg
erorder
_byqueryIf set,
returned
orders will
be sorted in
specific
order,
default to
‘asc’.Nostrin
gResponsesCodeDescription200Get your orders, results is paginated.#get_order/v2/order*GET*Summary:Get information of specified order.Description:Get
information of specified order.ParametersNameLocated inDescriptionRequiredSchemaidqueryUnique order id.Yesinteger#get_account_info/v2/members/me*GET*Summary:Get your profile and accounts info.Description:Get
your profile and accounts info.ResponsesCodeDescription200Get your profile and accounts info.#get_available_markets/v2/markets*GET*Summary:Get all available markets.Description:Get all available markets.ResponsesCodeDescription200Get all available markets.#tickers/v2/tickers*GET*Summary:Get ticker of all markets.Description:Get ticker of
all markets.ResponsesCodeDescription200Get ticker of all markets.#trades/v2/trades*GET*Summary:Get recent trades on market, each trade is included only
once. Trades are sorted in reverse creation order.Description:Get
recent trades on market, each trade is included only once. Trades are
sorted in reverse creation order.ParametersNameLocated inDescriptionRequiredSchem
amarke
tqueryUnique
market id.
It’s always
in the form
of xxxyyy,
where xxx is
the base
currency
code, yyy is
the quote
currency
code, e.g.
‘btcusd’.
All
available
markets can
be found at
/api/v2/mark
ets.Yesstrin
glimitqueryLimit the
number of
returned
trades.
Default to
50.Nointeg
ertimes
tampqueryAn integer
represents
the seconds
elapsed
since Unix
epoch. If
set, only
trades
executed
before the
time will be
returned.Nointeg
erfromqueryTrade id. If
set, only
trades
created
after the
trade will
be returned.Nointeg
ertoqueryTrade id. If
set, only
trades
created
before the
trade will
be returned.Nointeg
erorder
_byqueryIf set,
returned
trades will
be sorted in
specific
order,
default to
‘desc’.Nostrin
gResponsesCodeDescription200Get recent
trades on
market, each
trade is
included
only once.
Trades are
sorted in
reverse
creation
order.#my_trades/v2/trades/my*GET*Summary:Get your executed trades. Trades are sorted in reverse
creation order.Description:Get your executed trades. Trades are
sorted in reverse creation order.ParametersNameLocated inDescriptionRequiredSchem
amarke
tqueryUnique
market id.
It’s always
in the form
of xxxyyy,
where xxx is
the base
currency
code, yyy is
the quote
currency
code, e.g.
‘btcusd’.
All
available
markets can
be found at
/api/v2/mark
ets.Yesstrin
glimitqueryLimit the
number of
returned
trades.
Default to
50.Nointeg
ertimes
tampqueryAn integer
represents
the seconds
elapsed
since Unix
epoch. If
set, only
trades
executed
before the
time will be
returned.Nointeg
erfromqueryTrade id. If
set, only
trades
created
after the
trade will
be returned.Nointeg
ertoqueryTrade id. If
set, only
trades
created
before the
trade will
be returned.Nointeg
erorder
_byqueryIf set,
returned
trades will
be sorted in
specific
order,
default to
‘desc’.Nostrin
gResponsesCodeDescription200Get your
executed
trades.
Trades are
sorted in
reverse
creation
order.TestJust clone the repo, install dependencies as you would in development
and runnose2orpython setup.py testContributingFork it (https://github.com/vexbiexchange/python-api-client/fork)Create your feature branch (git checkout-bmy-new-feature)Commit your changes (git commit-am'Add some feature')Push to the branch (git push originmy-new-feature)Create a new Pull Request