Bitcoin Forum
December 04, 2016, 06:22:34 AM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1] 2 »  All
  Print  
Author Topic: Camp BX API is Live!  (Read 2209 times)
Keyur @ Camp BX
Sr. Member
****
Offline Offline

Activity: 300



View Profile WWW
July 20, 2011, 03:22:11 PM
 #1

Good morning everyone,
       Camp BX API is live and available for all the Bots and day-trading gurus!  We have exposed all standard functionality of the UI through API, including:

  • Full Market Data
  • Account Data
  • Quick Buy / Quick Sell Orders
  • Bitcoin Send-To

API documentation is available at: https://www.CampBX.com/api.php

We are also pressing forward with some additional API calls that will expose functionality for Dwolla Transfers and AON/FOK/Market Price/Custom Expiry, so please stay tuned for those announcements!

Thank you,
      Keyur




Activating API Access

    API access can be activated for an account by submitting a ticket to the Helpdesk. Your ticket must include your email, username, and latest transaction date for security reasons.


Data Format

        Inputs: All input parameters for the API (with the exception of passwords) must be alpha-numeric. Repeated violations of this policy may result in an account ban.
        Outputs: The output of the API is in JSON format.

Making API Calls

    Use POST, not GET. Any API call that requires authentication must be made over SSL connection. Market data calls (which do not require authentication) can be also made over HTTP.

Standard Return Codes

    There are two generic responses common across all API calls to simplify error handling.
    ­

        Error:
        When a fatal error occurs that does not allow the API call to proceed, an Error is returned as the result. In a vast majority of the cases, error can be traced back to improper API calls or malformed parameters.
        Info:
        Info is returned when a non-fatal error occurs during the API call. For example, if an API calls to obtain a list of open orders has zero results, an Info code along with description "No open orders" will be returned by the API call.


Depth Table

    Full market depth is available through the depth table API call. The API call can be made at:
    http://CampBX.com/api/xdepth.php

    Result is a JSON object with two arrays: Asks and Bids. Each element in these two arrays has two members: first member is Price and second member is Quantity available at that price. Both numbers are rounded to two decimal points.

Market Ticker

    The API call to obtain market ticket can be made at:
    http://CampBX.com/api/xticker.php

    Result is a JSON object with three members: Last Trade Price, Best Bid Price, and Best Ask Price.


Account Balances

    An API call to obtain latest account balances can be made in following format:
    https://CampBX.com/api/myfunds.php POST: user=USERNAME pass=PASSWORD

    Result is a JSON object with six members.

        First two members show Total USD and BTC balances for a given account, provided the login credentials are correct.
        Next two members show Liquid USD and BTC balances not tied up in open orders on the order book.
        Last two members show Margin Account USD and BTC balances. When you open or close a margin position, Camp BX transparently moves funds in and out of the Margin Account; hence, no explicit funds-transfer is required.

Orders List

    An API call to obtain list open orders for an account can be made in following format:
    https://CampBX.com/api/myorders.php POST: user=USERNAME pass=PASSWORD

    Result is a JSON object with two arrays: Buy and Sell. Each array includes a sub-array of open Buy or Sell orders.

Margin Positions List

    An API call to obtain list open Margin positions for an account can be made in following format:
    https://CampBX.com/api/mymargins.php POST user=USERNAME pass=PASSWORD

    Result is a JSON object with an array of Margin positions including Margin Call Price, and current profit/loss on open positions.

Canceling an Open Order

    An API call to cancel an open order can be made in following format:
    ­
    https://CampBX.com/api/tradecancel.php POST: user=USERNAME pass=PASSWORD Type=Buy OrderID=NUMERIC_ID
    ­
    OR
    ­
    https://CampBX.com/api/tradecancel.php POST: user=USERNAME pass=PASSWORD Type=Sell OrderID=NUMERIC_ID

    Please note that the parameters for this call are case-sensitive. Type and OrderID parameters must match the exact information provided by myorders.php call outlined in the previous section.

    The "Type" parameter refers to the type of order; permitted values are Buy or Sell.
    "OrderID" must be a numeric value corresponding to the order that you are attempting to cancel.

Placing a New Order

    An API call to placing an order can be made in following format:
    ­
    https://CampBX.com/api/tradeenter.php POST: user=USERNAME pass=PASSWORD TradeMode=QuickBuy Quantity=DECIMAL Price=DECIMAL
    ­
    OR
    ­
    https://CampBX.com/api/tradeenter.php POST: user=USERNAME pass=PASSWORD TradeMode=QuickSell Quantity=DECIMAL Price=DECIMAL

    Please note that the parameters listed below are case-sensitive.

    The TradeMode parameter refers to the type of the order, and permitted values are QuickBuy or QuickSell.
    Quick orders are described in more detail on the FAQ page; essentially they are limit-price orders that stay open on Camp BX order book for up to 7 days.

    Quantity and Price are decimal values that must follow all rules / limits set by Camp BX. Minimum quantity to place an order is 0.5 Bitcoins.


Advanced Orders

    We are working on an API call to expose the Advanced Trading functionality afforded by the Camp BX platform. This call will allow the bots to request specific Fill-types like AON or FOK fill, Price types like Market or Limit price, and a custom Expiry date ranging from 1 hour to 31 days.

    This API call will be available on Friday July 22nd. In the meantime, we encourage you to explore and understand this functionality though the website interface prior to writing a bot around it.


Buy on Margin

    We are working on an API call to expose Margin trading functionality.

    This API call will be activated when market liquidity crosses 1,000 Bitcoins per day for a sustained period. In the meantime, we encourage you to explore and understand this functionality on testnet prior to writing a bot around it.

Short Sell

    We are working on an API call to expose Short Sell and Cover functionality.

    This API call will be activated when market liquidity crosses 1,000 Bitcoins per day for a sustained period. In the meantime, we encourage you to explore and understand this functionality on testnet prior to writing a bot around it.



Please stay tuned to our news and announcements feeds at:
Twitter: https://twitter.com/CampBX
Facebook: https://facebook.com/CampBX
1480832554
Hero Member
*
Offline Offline

Posts: 1480832554

View Profile Personal Message (Offline)

Ignore
1480832554
Reply with quote  #2

1480832554
Report to moderator
1480832554
Hero Member
*
Offline Offline

Posts: 1480832554

View Profile Personal Message (Offline)

Ignore
1480832554
Reply with quote  #2

1480832554
Report to moderator
1480832554
Hero Member
*
Offline Offline

Posts: 1480832554

View Profile Personal Message (Offline)

Ignore
1480832554
Reply with quote  #2

1480832554
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
error
Hero Member
*****
Offline Offline

Activity: 574



View Profile
July 20, 2011, 06:11:48 PM
 #2

Great work!

How about an API call to get a Bitcoin address for depositing BTC?

15UFyv6kfWgq83Pp3yhXPr8rknv9m6581W
Keyur @ Camp BX
Sr. Member
****
Offline Offline

Activity: 300



View Profile WWW
July 21, 2011, 01:10:46 AM
 #3

Great work!

How about an API call to get a Bitcoin address for depositing BTC?

Error,
     We are already working on this call - the objective is to prevent attack similar to what Mt.Gox experienced few weeks back: someone brute-forced this call and filled up the wallet with empty addresses. 

We are trying to find a solution that gives you a fresh addresses, but at the same time cannot be brute-forced.

Thank you,
      Keyur



Please stay tuned to our news and announcements feeds at:
Twitter: https://twitter.com/CampBX
Facebook: https://facebook.com/CampBX
error
Hero Member
*****
Offline Offline

Activity: 574



View Profile
July 21, 2011, 01:47:40 AM
 #4

Great work!

How about an API call to get a Bitcoin address for depositing BTC?

Error,
     We are already working on this call - the objective is to prevent attack similar to what Mt.Gox experienced few weeks back: someone brute-forced this call and filled up the wallet with empty addresses. 

We are trying to find a solution that gives you a fresh addresses, but at the same time cannot be brute-forced.

Thank you,
      Keyur

Return the same address, until a payment is received at that address. Then use a new one.

15UFyv6kfWgq83Pp3yhXPr8rknv9m6581W
nmat
Hero Member
*****
Offline Offline

Activity: 602


View Profile
July 21, 2011, 02:30:16 AM
 #5

On an unrelated note, what's the deal with the rounding? I had 5.99 BTC in my account, but you wouldn't let me trade that. I had to dig up a bitcent somewhere... Tongue
Keyur @ Camp BX
Sr. Member
****
Offline Offline

Activity: 300



View Profile WWW
July 21, 2011, 02:43:54 AM
 #6

On an unrelated note, what's the deal with the rounding? I had 5.99 BTC in my account, but you wouldn't let me trade that. I had to dig up a bitcent somewhere... Tongue

Rounding was an attempt at keeping the order book clean of strange fractions.  If one more user points it out, we will have to get rid of the rounding ;-)

- Keyur


Please stay tuned to our news and announcements feeds at:
Twitter: https://twitter.com/CampBX
Facebook: https://facebook.com/CampBX
nmat
Hero Member
*****
Offline Offline

Activity: 602


View Profile
July 21, 2011, 03:05:58 AM
 #7

Rounding was an attempt at keeping the order book clean of strange fractions.  If one more user points it out, we will have to get rid of the rounding ;-)

- Keyur

It doesn't bother me much and you're right, the order book sure looks clean... Still, I would round it to 0.01 Wink
newMeat1
Full Member
***
Offline Offline

Activity: 210



View Profile
July 21, 2011, 06:19:18 AM
 #8

Yeah, I also think the rounding is annoying. I'm an all-or-nothing kind of trader   Smiley

On a related note, I still don't see the account balance displayed everywhere when I'm logged in. That's crucial. Shouldn't be a hard change to make.

I'll be coming back to CampBX as soon as my free trades on Mt Gox expire...

Zem
Member
**
Offline Offline

Activity: 70


View Profile
July 21, 2011, 06:40:02 AM
 #9

I want free trades Sad
jimbobway
Legendary
*
Offline Offline

Activity: 1380



View Profile
July 21, 2011, 04:14:35 PM
 #10

Keyur,

Can you make the send btc api call instant?  If a campbx user sends coins to another campbx user can you make it so the receiver gets them instantly?  This is important for buying things so the buyer and seller doesn't have to wait for the next block.

Jim

░░░░░░░░░██████░░░░░░░░░░░░▄▄▄
░░███░░██████░░░░░▄▄▄▄▄░░██
░░███░░█████████████
░░░░░░░░██████▀▀██████████
░░░░░░░░██████░░░░░██████████
░░░░░░▄▄▄▄▄▄░░░▄▄▄░░░░███████
░░░░░██████░░░███░░░░███████
░░░░░██████░░░███
░░░░░███████▄▄▄▄▄████████
░░░░░████████████████████
░░▄▄▄▄▄░░█████░░░░█████████
█████░░█████░░░░█████████
█████░░░░░░░░░░░░█████████
█████░░░░░░░░░░░░░█████████

START GETTING PAID FOR YOUR ATTENTION!
███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
JUSTICE IN THE WORLD OF ONLINE ADVERTISING!

BUY MASS COIN 】【 ICO PROSPECTUS
VISIT OUR WEBSITE
TWITTER 】【 FACEBOOK 】【 TELEGRAM

Keyur @ Camp BX
Sr. Member
****
Offline Offline

Activity: 300



View Profile WWW
July 21, 2011, 04:25:27 PM
 #11

Keyur,

Can you make the send btc api call instant?  If a campbx user sends coins to another campbx user can you make it so the receiver gets them instantly?  This is important for buying things so the buyer and seller doesn't have to wait for the next block.

Jim


Jim,
     CampBX user-to-user trades have instant BTC transfers.  You will have the BTC available in your account as soon as the Buy trade is executed, without the need to wait for confirmations.  

Thank you,
     Keyur

PS: Does this answer your question?  Please elaborate if it doesn't - I can run it by our devs.

Please stay tuned to our news and announcements feeds at:
Twitter: https://twitter.com/CampBX
Facebook: https://facebook.com/CampBX
Keyur @ Camp BX
Sr. Member
****
Offline Offline

Activity: 300



View Profile WWW
July 21, 2011, 04:26:57 PM
 #12

Yeah, I also think the rounding is annoying. I'm an all-or-nothing kind of trader   Smiley

On a related note, I still don't see the account balance displayed everywhere when I'm logged in. That's crucial. Shouldn't be a hard change to make.

I'll be coming back to CampBX as soon as my free trades on Mt Gox expire...

Thank you NM - we will make the change to display balance on every page alongside the ticker.  Should be pushed out to production server in a day or two.

Look forward to having you back!
     Keyur


Please stay tuned to our news and announcements feeds at:
Twitter: https://twitter.com/CampBX
Facebook: https://facebook.com/CampBX
datguywhowanders
Member
**
Offline Offline

Activity: 112



View Profile
July 21, 2011, 04:35:08 PM
 #13

Keyur,

I know you've been asked this question before, but I was wondering if we could get an update. Has CampBX been working with Bitcoin Watch to get the ticker and charts up on their site? I think doing so would certainly drive more traffic to your exchange.

Keep up all the good work, and love the quick response to community feedback!

Donations Welcome: 163id7T8KZ6MevqT86DjrBF2kfCPrQsfZE
Serge
Legendary
*
Offline Offline

Activity: 1050


View Profile
July 21, 2011, 04:41:44 PM
 #14

Keyur,

I know you've been asked this question before, but I was wondering if we could get an update. Has CampBX been working with Bitcoin Watch to get the ticker and charts up on their site? I think doing so would certainly drive more traffic to your exchange.

Keep up all the good work, and love the quick response to community feedback!

They are on both sites as cbxUSD

http://bitcoincharts.com/markets/cbxUSD.html

been up there at least few days
Keyur @ Camp BX
Sr. Member
****
Offline Offline

Activity: 300



View Profile WWW
July 21, 2011, 04:44:30 PM
 #15

Keyur,

I know you've been asked this question before, but I was wondering if we could get an update. Has CampBX been working with Bitcoin Watch to get the ticker and charts up on their site? I think doing so would certainly drive more traffic to your exchange.

Keep up all the good work, and love the quick response to community feedback!

Yes DGWW - we were able to get listed on Bitcoin Watch and Bitcoin Charts ahead of schedule!  Our symbol there is cbxUSD.

We are also reaching out a few other community websites and exploring opportunities for integration.

Thank you again,
     Keyur

Please stay tuned to our news and announcements feeds at:
Twitter: https://twitter.com/CampBX
Facebook: https://facebook.com/CampBX
jimbobway
Legendary
*
Offline Offline

Activity: 1380



View Profile
July 21, 2011, 05:21:53 PM
 #16

Keyur,

Can you make the send btc api call instant?  If a campbx user sends coins to another campbx user can you make it so the receiver gets them instantly?  This is important for buying things so the buyer and seller doesn't have to wait for the next block.

Jim


Jim,
     CampBX user-to-user trades have instant BTC transfers.  You will have the BTC available in your account as soon as the Buy trade is executed, without the need to wait for confirmations.  

Thank you,
     Keyur

PS: Does this answer your question?  Please elaborate if it doesn't - I can run it by our devs.



I didn't see user-to-user trades in the API:  https://www.campbx.com/api.php
Can you point them out to me?

░░░░░░░░░██████░░░░░░░░░░░░▄▄▄
░░███░░██████░░░░░▄▄▄▄▄░░██
░░███░░█████████████
░░░░░░░░██████▀▀██████████
░░░░░░░░██████░░░░░██████████
░░░░░░▄▄▄▄▄▄░░░▄▄▄░░░░███████
░░░░░██████░░░███░░░░███████
░░░░░██████░░░███
░░░░░███████▄▄▄▄▄████████
░░░░░████████████████████
░░▄▄▄▄▄░░█████░░░░█████████
█████░░█████░░░░█████████
█████░░░░░░░░░░░░█████████
█████░░░░░░░░░░░░░█████████

START GETTING PAID FOR YOUR ATTENTION!
███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
JUSTICE IN THE WORLD OF ONLINE ADVERTISING!

BUY MASS COIN 】【 ICO PROSPECTUS
VISIT OUR WEBSITE
TWITTER 】【 FACEBOOK 】【 TELEGRAM

dserrano5
Legendary
*
Offline Offline

Activity: 1638



View Profile
July 21, 2011, 05:46:37 PM
 #17

Great work!

How about an API call to get a Bitcoin address for depositing BTC?

Error,
     We are already working on this call - the objective is to prevent attack similar to what Mt.Gox experienced few weeks back: someone brute-forced this call and filled up the wallet with empty addresses. 

We are trying to find a solution that gives you a fresh addresses, but at the same time cannot be brute-forced.

Thank you,
      Keyur

Return the same address, until a payment is received at that address. Then use a new one.

That's racy:

- Person A gets an address.
- Person B gets the same address.
- Both persons send money at the same time.

Since getting an address isn't a time-critical operation, I'd make this API call deliberately slow to thwart that kind of attacks.

Serge
Legendary
*
Offline Offline

Activity: 1050


View Profile
July 21, 2011, 06:09:38 PM
 #18

..nm
Keyur @ Camp BX
Sr. Member
****
Offline Offline

Activity: 300



View Profile WWW
July 21, 2011, 07:13:09 PM
 #19

I didn't see user-to-user trades in the API:  https://www.campbx.com/api.php
Can you point them out to me?

Jim,
    The trades can be executed through this API call:

https://CampBX.com/api/tradeenter.php POST: user=USERNAME pass=PASSWORD TradeMode=QuickBuy Quantity=DECIMAL Price=DECIMAL

OR

https://CampBX.com/api/tradeenter.php POST: user=USERNAME pass=PASSWORD TradeMode=QuickSell Quantity=DECIMAL Price=DECIMAL


Details available at:
https://campbx.com/api.php

If you have a specific idea to build a service or business, PM me with details.  We will be happy to work with you to make additional API calls available for interfacing with Camp BX.

Thank you,
      Keyur


Please stay tuned to our news and announcements feeds at:
Twitter: https://twitter.com/CampBX
Facebook: https://facebook.com/CampBX
error
Hero Member
*****
Offline Offline

Activity: 574



View Profile
July 21, 2011, 07:22:08 PM
 #20

Great work!

How about an API call to get a Bitcoin address for depositing BTC?

Error,
     We are already working on this call - the objective is to prevent attack similar to what Mt.Gox experienced few weeks back: someone brute-forced this call and filled up the wallet with empty addresses. 

We are trying to find a solution that gives you a fresh addresses, but at the same time cannot be brute-forced.

Thank you,
      Keyur

Return the same address, until a payment is received at that address. Then use a new one.

That's racy:

- Person A gets an address.
- Person B gets the same address.
- Both persons send money at the same time.

Since getting an address isn't a time-critical operation, I'd make this API call deliberately slow to thwart that kind of attacks.

Um, no. You don't give the same address to different people!

15UFyv6kfWgq83Pp3yhXPr8rknv9m6581W
Pages: [1] 2 »  All
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!