diff --git a/tests/fixtures/crypto.json b/tests/fixtures/crypto.json index 7be35c90..2d10acdd 100644 --- a/tests/fixtures/crypto.json +++ b/tests/fixtures/crypto.json @@ -1,6 +1,6 @@ [ { - "scope": "https://uat-api.3ona.co:443", + "scope": "https://api.crypto.com:443", "method": "GET", "path": "/v2/public/get-ticker", "body": "", @@ -12,516 +12,549 @@ "data": [ { "i": "ICX_CRO", - "b": 3.8, - "k": 3.82, - "a": 3.7, - "t": 1594655444157, - "v": 14399, - "h": 3.82, - "l": 3.66, - "c": -0.09 + "b": 2.97, + "k": 2.98, + "a": 2.97, + "t": 1594663861615, + "v": 132213, + "h": 3.05, + "l": 2.69, + "c": 0.22 }, { - "i": "ADA_CRO", - "b": 0.833, - "k": 0.84, - "a": 0.696, - "t": 1594655444157, - "v": 0, - "h": 0.696, - "l": 0, - "c": 0.696 + "i": "XTZ_USDT", + "b": 2.9646, + "k": 2.9649, + "a": 2.9649, + "t": 1594663863360, + "v": 170667.74, + "h": 3.1469, + "l": 2.5861, + "c": 0.3338 }, { - "i": "EOS_BTC", - "b": 0, - "k": 0.0002712, - "a": 0.0002712, - "t": 1594655449497, - "v": 8458544.71, - "h": 0.0002712, - "l": 0.0002712, - "c": 0 + "i": "CRO_BTC", + "b": 0.00001542, + "k": 0.00001543, + "a": 0.00001542, + "t": 1594663864970, + "v": 25131653.8, + "h": 0.00001567, + "l": 0.00001542, + "c": -2.1e-7 }, { - "i": "VET_USDT", - "b": 0.006285, - "k": 0.01731, - "a": 0.006285, - "t": 1594655435156, - "v": 8064576, - "h": 0.006285, - "l": 0.006285, - "c": 0 + "i": "EOS_USDT", + "b": 2.6232, + "k": 2.624, + "a": 2.624, + "t": 1594663866276, + "v": 12700.97, + "h": 2.6475, + "l": 2.5735, + "c": 0.0316 }, { - "i": "XTZ_CRO", - "b": 32.417, - "k": 32.697, - "a": 32.947, - "t": 1594655440914, - "v": 14698, - "h": 33.807, - "l": 31.807, - "c": 0.09 + "i": "USDC_USDT", + "b": 1.0007, + "k": 1.0008, + "a": 1.0007, + "t": 1594663866192, + "v": 28534.08, + "h": 1.0033, + "l": 1.0002, + "c": -0.001 }, { - "i": "XTZ_USDT", - "b": 2.9141, - "k": 2.9341, - "a": 2.9341, - "t": 1594655441621, - "v": 14213.6, - "h": 2.9741, - "l": 2.8941, - "c": -0.01 + "i": "LINK_BTC", + "b": 0.000799, + "k": 0.0007992, + "a": 0.000799, + "t": 1594663865495, + "v": 71120.23, + "h": 0.000911, + "l": 0.0007304, + "c": 0.0000594 }, { - "i": "EOS_USDT", - "b": 2.7776, - "k": 2.7976, - "a": 2.7376, - "t": 1594655449617, - "v": 14336.52, - "h": 2.7976, - "l": 2.6976, - "c": -0.0299 + "i": "ICX_BTC", + "b": 0.00004583, + "k": 0.00004587, + "a": 0.0000459, + "t": 1594663865776, + "v": 151725.1, + "h": 0.00004683, + "l": 0.00004218, + "c": 0.00000284 }, { - "i": "CRO_BTC", - "b": 0.0000089, - "k": 0.00001547, - "a": 0.0000089, - "t": 1594655447367, - "v": 7934111.66, - "h": 0.0000089, - "l": 0.0000089, - "c": 0 + "i": "CRO_USDT", + "b": 0.1435, + "k": 0.1436, + "a": 0.1435, + "t": 1594663863780, + "v": 8791424.543, + "h": 0.1455, + "l": 0.1429, + "c": -0.0007 }, { - "i": "ETH_USDT", - "b": 235.55, - "k": 235.64, - "a": 235.64, - "t": 1594655443671, - "v": 16052.72779, - "h": 235.64, - "l": 235.55, - "c": 0 + "i": "VET_BTC", + "b": 0.00000208, + "k": 0.00000209, + "a": 0.00000209, + "t": 1594663859475, + "v": 14599921, + "h": 0.00000213, + "l": 0.0000019, + "c": 1.3e-7 }, { - "i": "BCH_USDT", - "b": 255.9, - "k": 255.96, - "a": 255.96, - "t": 1594655445923, - "v": 14232.38799, - "h": 257.82, - "l": 245.35, - "c": -0.71 + "i": "MCO_USDT", + "b": 4.217, + "k": 4.234, + "a": 4.235, + "t": 1594663860811, + "v": 37922.15, + "h": 4.273, + "l": 4.18, + "c": 0.035 }, { - "i": "USDC_USDT", - "b": 0.992, - "k": 1.002, - "a": 1.002, - "t": 1594655443672, - "v": 16253.24, - "h": 1.002, - "l": 0.992, - "c": 0 + "i": "LINK_CRO", + "b": 51.65, + "k": 51.82, + "a": 51.82, + "t": 1594663865067, + "v": 19313.08, + "h": 58.28, + "l": 46.74, + "c": 4.6 }, { - "i": "ATOM_USDT", - "b": 2.678, - "k": 2.718, - "a": 2.678, - "t": 1594655443790, - "v": 14200.92, - "h": 2.818, - "l": 2.648, - "c": -0.05 + "i": "LTC_BTC", + "b": 0.004807, + "k": 0.004813, + "a": 0.004812, + "t": 1594663866322, + "v": 970.26, + "h": 0.004902, + "l": 0.00477, + "c": 0.000024 }, { - "i": "XTZ_BTC", - "b": 0, - "k": 0.0002871, - "a": 0.0002871, - "t": 1594655440187, - "v": 7490948.31, - "h": 0.0002871, - "l": 0.0002871, - "c": 0 + "i": "ENJ_CRO", + "b": 1.314, + "k": 1.317, + "a": 1.319, + "t": 1594663865937, + "v": 94862.24, + "h": 1.327, + "l": 1.207, + "c": 0.093 }, { - "i": "LINK_BTC", - "b": 0.0004256, - "k": 0.0006566, - "a": 0.0004256, - "t": 1594655448038, - "v": 8018821.39, - "h": 0.0004256, - "l": 0.0004256, - "c": 0 + "i": "ATOM_BTC", + "b": 0.000434, + "k": 0.000435, + "a": 0.000435, + "t": 1594663864850, + "v": 25180.75, + "h": 0.0004684, + "l": 0.0004238, + "c": 0.000005 }, { - "i": "ICX_USDT", - "b": 0.3413, - "k": 0.4099, - "a": 0.3413, - "t": 1594655443673, - "v": 18599.91, - "h": 0.396, - "l": 0.3413, - "c": -0.0547 + "i": "BTC_USDT", + "b": 9309.01, + "k": 9309.47, + "a": 9309.01, + "t": 1594663866265, + "v": 619.371711, + "h": 9340, + "l": 9174.17, + "c": 80.72 }, { - "i": "BCH_BTC", - "b": 0.024653, - "k": 0.025697, - "a": 0.024653, - "t": 1594655444487, - "v": 7889452.87, - "h": 0.024653, - "l": 0.024653, - "c": 0 + "i": "XRP_BTC", + "b": 0.00002175, + "k": 0.00002178, + "a": 0.00002178, + "t": 1594663866373, + "v": 631103, + "h": 0.00002218, + "l": 0.00002145, + "c": 2.2e-7 }, { - "i": "ADA_BTC", - "b": 0.00001302, - "k": 0.00001315, - "a": 0.00000878, - "t": 1594655448038, - "v": 0, - "h": 0.00000878, - "l": 0, - "c": 0.00000878 + "i": "LTC_USDT", + "b": 44.76, + "k": 44.77, + "a": 44.76, + "t": 1594663864568, + "v": 2187.20397, + "h": 45.57, + "l": 43.89, + "c": 0.53 }, { - "i": "ICX_BTC", - "b": 0, - "k": 0.00003331, - "a": 0.00003331, - "t": 1594655448038, - "v": 8030425, - "h": 0.00003331, - "l": 0.00003331, - "c": 0 + "i": "LTC_CRO", + "b": 311.44, + "k": 311.89, + "a": 311.58, + "t": 1594663864815, + "v": 863.9, + "h": 317, + "l": 302.51, + "c": 4.95 }, { - "i": "CRO_USDT", - "b": 0.1167, - "k": 0, - "a": 0.1167, - "t": 1594655448792, - "v": 31403.49, - "h": 0.117, - "l": 0.1167, - "c": -0.0003 + "i": "XRP_CRO", + "b": 1.41, + "k": 1.42, + "a": 1.42, + "t": 1594663866190, + "v": 784279, + "h": 1.47, + "l": 1.33, + "c": 0.04 }, { - "i": "VET_BTC", - "b": 6.4e-7, - "k": 0.0000019, - "a": 6.4e-7, - "t": 1594655448039, - "v": 7872928, - "h": 6.4e-7, - "l": 6.4e-7, - "c": 0 + "i": "XRP_USDT", + "b": 0.20275, + "k": 0.20282, + "a": 0.20275, + "t": 1594663866236, + "v": 2064413, + "h": 0.20678, + "l": 0.19832, + "c": 0.00366 }, { - "i": "LINK_USDT", - "b": 4.41, - "k": 4.43, - "a": 4.41, - "t": 1594655443673, - "v": 14011.64, - "h": 4.48, - "l": 4.34, - "c": -0.059 + "i": "ATOM_CRO", + "b": 28.11, + "k": 28.25, + "a": 28.12, + "t": 1594663866158, + "v": 8083.79, + "h": 30.24, + "l": 27.14, + "c": 0.62 }, { - "i": "MCO_USDT", - "b": 5.582, - "k": 5.632, - "a": 5.582, - "t": 1594655443673, - "v": 13915.5, - "h": 5.682, - "l": 5.482, - "c": -0.08 + "i": "ADA_CRO", + "b": 0.921, + "k": 0.923, + "a": 0.923, + "t": 1594663863988, + "v": 1105700.51, + "h": 0.939, + "l": 0.846, + "c": 0.069 }, { - "i": "LINK_CRO", - "b": 47.58, - "k": 50.02, - "a": 50.02, - "t": 1594655444160, - "v": 14502, - "h": 51.32, - "l": 47.58, - "c": 1.71 + "i": "EOS_BTC", + "b": 0.0002821, + "k": 0.0002824, + "a": 0.0002821, + "t": 1594663866158, + "v": 13103.66, + "h": 0.0002848, + "l": 0.0002798, + "c": 0.0000011 }, { - "i": "XLM_USDT", - "b": 0.07263, - "k": 0.08263, - "a": 0.07263, - "t": 1594655437323, - "v": 1570115, - "h": 0.08263, - "l": 0.07263, - "c": 0 + "i": "VET_USDT", + "b": 0.019467, + "k": 0.019503, + "a": 0.019466, + "t": 1594663866338, + "v": 18290036, + "h": 0.0198, + "l": 0.017537, + "c": 0.00159 }, { - "i": "LTC_BTC", - "b": 0.004699, - "k": 0.004776, - "a": 0.004699, - "t": 1594655448038, - "v": 7911525.76, - "h": 0.004699, - "l": 0.004699, - "c": 0 + "i": "XTZ_CRO", + "b": 20.61, + "k": 20.743, + "a": 20.741, + "t": 1594663865654, + "v": 20593.19, + "h": 22, + "l": 17.88, + "c": 2.504 }, { - "i": "CRO_USDC", - "b": 0.1173, - "k": 0.1434, - "a": 0.1173, - "t": 1594655448064, - "v": 31310.873, - "h": 0.1176, - "l": 0.1173, - "c": -0.0002 + "i": "BCH_USDT", + "b": 235.47, + "k": 235.59, + "a": 235.56, + "t": 1594663866376, + "v": 524.244, + "h": 238.11, + "l": 233.31, + "c": 1 }, { - "i": "MCO_CRO", - "b": 50.56, - "k": 51.62, - "a": 49.62, - "t": 1594655444157, - "v": 13513.87, - "h": 53.57, - "l": 37.56, - "c": -3.74 + "i": "ETH_USDT", + "b": 242.79, + "k": 242.87, + "a": 242.79, + "t": 1594663865879, + "v": 1119.49707, + "h": 245.27, + "l": 237.11, + "c": 4.21 }, { - "i": "VET_CRO", - "b": 0.1197, - "k": 0.1216, - "a": 0.1197, - "t": 1594655434444, - "v": 32979, - "h": 0.1205, - "l": 0.1197, - "c": -0.0007 + "i": "ATOM_USDT", + "b": 4.047, + "k": 4.048, + "a": 4.048, + "t": 1594663864836, + "v": 24571.34, + "h": 4.354, + "l": 3.909, + "c": 0.08 }, { - "i": "ENJ_CRO", - "b": 0, - "k": 0, - "a": 0, - "t": 1594655449853, - "v": 0, - "h": 0, - "l": 0, - "c": 0 + "i": "XTZ_BTC", + "b": 0.0003184, + "k": 0.0003185, + "a": 0.0003185, + "t": 1594663864043, + "v": 62722.3, + "h": 0.0003379, + "l": 0.0002818, + "c": 0.0000329 }, { - "i": "XLM_CRO", - "b": 0.81, - "k": 0.84, - "a": 0.82, - "t": 1594655436593, - "v": 14181.63, - "h": 0.84, - "l": 0.8, - "c": 0 + "i": "BCH_BTC", + "b": 0.025263, + "k": 0.025335, + "a": 0.025336, + "t": 1594663866053, + "v": 312.086, + "h": 0.025592, + "l": 0.025272, + "c": -0.000078 }, { - "i": "ATOM_BTC", - "b": 0.0002647, - "k": 0.0002762, - "a": 0.0002762, - "t": 1594655442343, - "v": 7369583.35, - "h": 0.0002762, - "l": 0.0002762, - "c": 0 + "i": "ICX_USDT", + "b": 0.4269, + "k": 0.4275, + "a": 0.4278, + "t": 1594663865237, + "v": 163021.87, + "h": 0.436, + "l": 0.388, + "c": 0.0307 }, { - "i": "ENJ_USDT", - "b": 0, - "k": 0, - "a": 0, - "t": 1594655449853, - "v": 0, - "h": 0, - "l": 0, - "c": 0 + "i": "ADA_BTC", + "b": 0.00001425, + "k": 0.00001428, + "a": 0.00001425, + "t": 1594663865394, + "v": 1651348, + "h": 0.00001461, + "l": 0.00001324, + "c": 8.7e-7 }, { - "i": "BTC_USDT", - "b": 9099.84, - "k": 9484.41, - "a": 9484.41, - "t": 1594655446623, - "v": 3687.774841, - "h": 9849.26, - "l": 8783.34, - "c": -364.85 + "i": "LINK_USDT", + "b": 7.424, + "k": 7.436, + "a": 7.436, + "t": 1594663865412, + "v": 73762.13, + "h": 8.449, + "l": 6.69, + "c": 0.618 }, { - "i": "ETH_BTC", - "b": 0.024202, - "k": 0.024203, - "a": 0.024203, - "t": 1594655450296, - "v": 7729034.673, - "h": 0.024203, - "l": 0.024203, + "i": "XLM_USDT", + "b": 0.09345, + "k": 0.09346, + "a": 0.09345, + "t": 1594663865236, + "v": 822260.9, + "h": 0.09833, + "l": 0.09077, + "c": 0.00159 + }, + { + "i": "ALGO_USDT", + "b": 0.2816, + "k": 0.2828, + "a": 0.24, + "t": 1594663865564, + "v": 5, + "h": 0.24, + "l": 0.24, "c": 0 }, { - "i": "XRP_BTC", - "b": 0.0000204, - "k": 0.00002048, - "a": 0.00002048, - "t": 1594655448038, - "v": 7780378, - "h": 0.00002048, - "l": 0.00002048, - "c": 0 + "i": "MCO_CRO", + "b": 29.39, + "k": 29.4, + "a": 29.4, + "t": 1594663863880, + "v": 7540.51, + "h": 29.63, + "l": 28.8, + "c": 0.27 }, { - "i": "LTC_USDT", - "b": 46.62, - "k": 47.13, - "a": 46.62, - "t": 1594655443673, - "v": 13558.50062, - "h": 48.05, - "l": 46.35, - "c": -1.42 + "i": "CRO_USDC", + "b": 0.1435, + "k": 0.1436, + "a": 0.1436, + "t": 1594663865120, + "v": 476582.763, + "h": 0.1455, + "l": 0.1428, + "c": -0.0005 }, { - "i": "ADA_USDT", - "b": 0.07065, - "k": 0, - "a": 0.1214, - "t": 1594655443673, - "v": 41259.6, - "h": 0.12221, - "l": 0.1214, - "c": -0.00081 + "i": "VET_CRO", + "b": 0.1351, + "k": 0.1358, + "a": 0.1357, + "t": 1594663864973, + "v": 3111298, + "h": 0.138, + "l": 0.122, + "c": 0.0118 + }, + { + "i": "ALGO_CRO", + "b": 1.962, + "k": 1.984, + "a": 1.97, + "t": 1594663862093, + "v": 2000, + "h": 1.97, + "l": 1.97, + "c": 0 }, { - "i": "EOS_CRO", - "b": 30.946, - "k": 31.106, - "a": 30.556, - "t": 1594655450223, - "v": 14880, - "h": 31.726, - "l": 30.156, - "c": -0.55 + "i": "XLM_CRO", + "b": 0.648, + "k": 0.653, + "a": 0.648, + "t": 1594663866370, + "v": 573682.42, + "h": 0.686, + "l": 0.631, + "c": 0.013 }, { - "i": "LTC_CRO", - "b": 535.06, - "k": 537.27, - "a": 532.61, - "t": 1594655444159, - "v": 14772.93, - "h": 539.96, - "l": 515.04, - "c": 2.68 + "i": "ENJ_USDT", + "b": 0.18914, + "k": 0.18962, + "a": 0.18899, + "t": 1594663865747, + "v": 157039.4, + "h": 0.19, + "l": 0.17487, + "c": 0.01246 }, { - "i": "MCO_BTC", - "b": 0.000554, - "k": 0.0005604, - "a": 0.000554, - "t": 1594655448039, - "v": 7860860.2, - "h": 0.000554, - "l": 0.000554, - "c": 0 + "i": "ETH_BTC", + "b": 0.026083, + "k": 0.026084, + "a": 0.026084, + "t": 1594663866314, + "v": 817.544, + "h": 0.026316, + "l": 0.025761, + "c": 0.00024 }, { - "i": "XRP_CRO", - "b": 1.39, - "k": 1.5, - "a": 1.5, - "t": 1594655438741, - "v": 32953, - "h": 1.5, - "l": 1.47, - "c": 0.03 + "i": "ADA_USDT", + "b": 0.13259, + "k": 0.13274, + "a": 0.1326, + "t": 1594663865460, + "v": 2131671, + "h": 0.1364, + "l": 0.12187, + "c": 0.00918 }, { - "i": "XLM_BTC", - "b": 0.00000735, - "k": 0.00000737, - "a": 0.00000737, - "t": 1594655448039, - "v": 7622739, - "h": 0.00000737, - "l": 0.00000737, - "c": 0 + "i": "EOS_CRO", + "b": 18.182, + "k": 18.29, + "a": 18.289, + "t": 1594663865834, + "v": 5439.89, + "h": 18.599, + "l": 17.86, + "c": 0.315 }, { - "i": "BCH_CRO", - "b": 2756.96, - "k": 2783.85, - "a": 2823.01, - "t": 1594655445210, - "v": 14550.216, - "h": 2823.01, - "l": 2701.76, - "c": 51.61 + "i": "MCO_BTC", + "b": 0.0004537, + "k": 0.000454, + "a": 0.0004536, + "t": 1594663863822, + "v": 30991.92, + "h": 0.0004632, + "l": 0.0004503, + "c": -0.0000017 + }, + { + "i": "ALGO_BTC", + "b": 0.00003032, + "k": 0.00003041, + "a": 0.000031, + "t": 1594663862450, + "v": 12, + "h": 0.000031, + "l": 0.0000294, + "c": 0.0000016 }, { - "i": "XRP_USDT", - "b": 0.20253, - "k": 0.21253, - "a": 0.21253, - "t": 1594655439516, - "v": 1525821.7, - "h": 0.21253, - "l": 0.20253, - "c": 0.01 + "i": "XLM_BTC", + "b": 0.00001004, + "k": 0.00001005, + "a": 0.00001005, + "t": 1594663865852, + "v": 787684, + "h": 0.00001057, + "l": 0.00000987, + "c": 9e-8 }, { - "i": "ATOM_CRO", - "b": 31.51, - "k": 31.88, - "a": 32.19, - "t": 1594655443096, - "v": 14251, - "h": 32.29, - "l": 30.65, - "c": 0.14 + "i": "BCH_CRO", + "b": 1630.71, + "k": 1643.1, + "a": 1643.1, + "t": 1594663865269, + "v": 141.101, + "h": 1669.7, + "l": 1609.1, + "c": 17.69 }, { "i": "ETH_CRO", - "b": 2729.77, - "k": 2736.37, - "a": 2729.77, - "t": 1594655444160, - "v": 14107.008, - "h": 2792.96, - "l": 2657.88, - "c": 66.3 + "b": 1689.08, + "k": 1692.07, + "a": 1692.07, + "t": 1594663865572, + "v": 1065.179, + "h": 1710, + "l": 1642.18, + "c": 39.26 } ] } }, "rawHeaders": [ "Date", - "Mon, 13 Jul 2020 15:50:50 GMT", + "Mon, 13 Jul 2020 18:11:06 GMT", "Content-Type", "application/json", "Transfer-Encoding", @@ -529,15 +562,25 @@ "Connection", "keep-alive", "Set-Cookie", - "__cfduid=d29e6dbad6609361355eb7575b29de9f01594655449; expires=Wed, 12-Aug-20 15:50:49 GMT; path=/; domain=.3ona.co; HttpOnly; SameSite=Lax; Secure", + "__cfduid=d915fdefb1f7cd2f25bce475210322a581594663865; expires=Wed, 12-Aug-20 18:11:05 GMT; path=/; domain=.crypto.com; HttpOnly; SameSite=Lax; Secure", + "CF-Ray", + "5b24f6e75883e640-LHR", + "Strict-Transport-Security", + "max-age=31536000", "CF-Cache-Status", "DYNAMIC", "cf-request-id", - "03ea7839470000fc5950865200000001", + "03eaf8a4950000e640f63b3200000001", "Expect-CT", "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"", - "Server", - "cloudflare" + "Referrer-Policy", + "same-origin", + "X-Content-Type-Options", + "nosniff", + "X-Frame-Options", + "sameorigin", + "Vary", + "Accept-Encoding" ], "responseIsBinary": false }